Bc segmentation fault.

Ag Hatzim zkom.xl at gmail.com
Fri Mar 17 10:48:32 PST 2006


Sory attached is the right log.
-------------- next part --------------
#===================================================================
#           Date=Mon Mar 13 20:42:39 EET 2006
#           From=tms
#           Hostname=A.H
#           GCC_version=4.0.3
#           GLIBC_version=GNUlibc 2.3.6
#           BINUTILS_version=GNU ld version 2.16.1
#           HOST=SVN-20060311
#           HOST_partition=/dev/sda10
#           kernel=Linux 2.6.14.5 #1 Wed Dec 28 15:07:35 EET 2005 i686 athlon-4 GNU/Linux
#           CFLAGS=-O2 -march=athlon64  -pipe -fomit-frame-pointer
#           CXXFLAGS=-O2 -march=athlon64  -pipe -fomit-frame-pointer
#           CHOST=i686-pc-linux-gnu
#===================================================================
#                STARTING BUILT OF bc-1.06
#===================================================================
md5sum for bc-1.06
d44b5dddebd8a7a7309aea6c36fda117  bc-1.06.tar.gz
#===================================================================
patching file configure
patching file bc/scan.l
#=========================  CONFIFURE  =============================

creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=athlon64  -pipe -fomit-frame-pointer ) works... yes
checking whether the C compiler (gcc -O2 -march=athlon64  -pipe -fomit-frame-pointer ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for minix/config.h... no
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets ${MAKE}... (cached) yes
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for limits.h... yes
checking for unistd.h... yes
checking for lib.h... no
checking for working const... yes
checking for ANSI C header files... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking for vprintf... yes
checking for isgraph... yes
checking for setvbuf... yes
checking for tparm in -lncurses... yes
checking for readline in -lreadline... yes
checking for readline/readline.h... yes
Using the readline library.
updating cache ./config.cache
creating ./config.status
creating Makefile
creating bc/Makefile
creating dc/Makefile
creating doc/Makefile
creating lib/Makefile
creating config.h
#===================================================================
#===========================  MAKE  ================================

make  all-recursive
make[1]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06'
Making all in lib
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/lib'
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c getopt.c
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c getopt1.c
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c vfprintf.c
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c number.c
number.c: In function 'bc_new_num':
number.c:76: warning: implicit declaration of function 'memset'
number.c:76: warning: incompatible implicit declaration of built-in function 'memset'
number.c: In function 'bc_sub':
number.c:558: warning: incompatible implicit declaration of built-in function 'memset'
number.c: In function 'bc_add':
number.c:607: warning: incompatible implicit declaration of built-in function 'memset'
number.c: In function '_one_mult':
number.c:901: warning: incompatible implicit declaration of built-in function 'memset'
number.c:905: warning: implicit declaration of function 'memcpy'
number.c:905: warning: incompatible implicit declaration of built-in function 'memcpy'
number.c: In function 'bc_divide':
number.c:956: warning: incompatible implicit declaration of built-in function 'memset'
number.c:957: warning: incompatible implicit declaration of built-in function 'memcpy'
number.c:978: warning: incompatible implicit declaration of built-in function 'memset'
number.c:979: warning: incompatible implicit declaration of built-in function 'memcpy'
number.c: In function 'bc_out_long':
number.c:1442: warning: implicit declaration of function 'strlen'
number.c:1442: warning: incompatible implicit declaration of built-in function 'strlen'
rm -f libbc.a
ar cru libbc.a getopt.o getopt1.o vfprintf.o number.o 
ranlib libbc.a
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/lib'
Making all in bc
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/bc'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c bc.c
flex -I   scan.l && mv lex.yy.c scan.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c scan.c
scan.l: In function 'yylex':
scan.l:318: warning: pointer targets in assignment differ in signedness
scan.l:334: warning: pointer targets in assignment differ in signedness
scan.l:335: warning: pointer targets in assignment differ in signedness
scan.l: At top level:
lex.yy.c:1765: warning: 'yyunput' defined but not used
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c execute.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c load.c
load.c: In function 'load_code':
load.c:159: warning: 'save_adr.pc_addr' may be used uninitialized in this function
load.c:159: warning: 'save_adr.pc_func' may be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c storage.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c util.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c global.c
gcc  -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char  -o bc  main.o bc.o scan.o execute.o load.o storage.o util.o global.o ../lib/libbc.a -lfl -lreadline -lncurses 
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/bc'
Making all in dc
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/dc'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c dc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c misc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c eval.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c stack.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c array.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c numeric.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h    -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char -c string.c
gcc  -O2 -march=athlon64  -pipe -fomit-frame-pointer -Wall -funsigned-char  -o dc  dc.o misc.o eval.o stack.o array.o numeric.o string.o ../lib/libbc.a 
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/dc'
Making all in doc
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06'
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06'
make[1]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06'
#===================================================================
#===========================  INSTALL ==============================

Making install in lib
make[1]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/lib'
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/lib'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/lib'
make[1]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/lib'
Making install in bc
make[1]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/bc'
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/bc'
/bin/sh ../mkinstalldirs /usr/local/bin
  /usr/bin/install -c  bc /usr/local/bin/bc
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/bc'
make[1]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/bc'
Making install in dc
make[1]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/dc'
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/dc'
/bin/sh ../mkinstalldirs /usr/local/bin
  /usr/bin/install -c  dc /usr/local/bin/dc
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/dc'
make[1]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/dc'
Making install in doc
make[1]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/info
 /usr/bin/install -c -m 644 ./bc.info /usr/local/info/bc.info
 /usr/bin/install -c -m 644 ./dc.info /usr/local/info/dc.info
 install-info --info-dir=/usr/local/info /usr/local/info/bc.info
install-info: warning: no info dir entry in `/usr/local/info/bc.info'
 install-info --info-dir=/usr/local/info /usr/local/info/dc.info
make  install-man1
make[3]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
/bin/sh ../mkinstalldirs /usr/local/man/man1
 /usr/bin/install -c -m 644 ./bc.1 /usr/local/man/man1/bc.1
 /usr/bin/install -c -m 644 ./dc.1 /usr/local/man/man1/dc.1
make[3]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[1]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06/doc'
make[1]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06'
make[2]: Entering directory `/home/tms/LBFS/build_dir/bc-1.06'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06'
make[1]: Leaving directory `/home/tms/LBFS/build_dir/bc-1.06'

real	0m5.735s
user	0m3.607s
sys	0m0.645s
#===================================================================
76336 /usr/local/bin/bc
39133 /usr/local/bin/dc
34397 /usr/local/share/man/man1/bc.1
13075 /usr/local/share/man/man1/dc.1
37674 /usr/local/share/info/bc.info
15365 /usr/local/share/info/dc.info
#========================= DISK SPACE ==============================
bc 1.06 224 kbytes disk space required
bc 1.06 1740 Estimated disk space required

#===================================================================
#====================== Standard Build Unit (SBU) ==================

SBU= 0.0413223140495868
Mon Mar 13 20:42:46 EET 2006
#=========================  Build done  ============================


More information about the blfs-support mailing list