gcc -pipe -fwritable-strings -DVOL=volatile -I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -o raw_gcl ../o/main.o ../o/alloc.o ../o/gbc.o ../o/bitop.o ../o/typespec.o ../o/eval.o ../o/macros.o ../o/lex.o ../o/bds.o ../o/frame.o ../o/predicate.o ../o/reference.o ../o/assignment.o ../o/bind.o ../o/let.o ../o/conditional.o ../o/block.o ../o/iteration.o ../o/mapfun.o ../o/prog.o ../o/multival.o ../o/catch.o ../o/symbol.o ../o/cfun.o ../o/cmpaux.o ../o/package.o ../o/big.o ../o/number.o ../o/num_pred.o ../o/num_comp.o ../o/num_arith.o ../o/num_sfun.o ../o/num_co.o ../o/num_log.o ../o/num_rand.o ../o/earith.o ../o/character.o ../o/sequence.o ../o/list.o ../o/hash.o ../o/array.o ../o/string.o ../o/regexpr.o ../o/structure.o ../o/toplevel.o ../o/file.o ../o/read.o ../o/backq.o ../o/print.o ../o/format.o ../o/pathname.o ../o/unixfsys.o ../o/unixfasl.o ../o/error.o ../o/unixtime.o ../o/unixsys.o ../o/unixsave.o ../o/funlink.o ../o/fat_string.o ../o/run_process.o ../o/nfunlink.o ../o/usig.o ../o/usig2.o ../o/utils.o ../o/makefun.o ../o/sockets.o ../o/clxsocket.o ../o/init_pari.o ../o/nsocket.o ../o/new_init.o ../gmp/libgmp.a ../o/sfasl.o ../o/readline.o ../lsp/defmacro.o ../lsp/evalmacros.o ../lsp/top.o ../lsp/module.o ../lsp/predlib.o ../lsp/setf.o ../lsp/arraylib.o ../lsp/assert.o ../lsp/defstruct.o ../lsp/describe.o ../lsp/iolib.o ../lsp/listlib.o ../lsp/mislib.o ../lsp/numlib.o ../lsp/packlib.o ../lsp/seq.o ../lsp/seqlib.o ../lsp/trace.o ../lsp/sloop.o ../lsp/debug.o ../lsp/serror.o ../lsp/info.o ../lsp/destructuring_bind.o ../lsp/defpackage.o ../lsp/make_defpackage.o ../lsp/loop.o ../lsp/readline.o ../cmpnew/cmpinline.o ../cmpnew/cmputil.o ../cmpnew/cmptype.o ../cmpnew/cmpbind.o ../cmpnew/cmpblock.o ../cmpnew/cmpcall.o ../cmpnew/cmpcatch.o ../cmpnew/cmpenv.o ../cmpnew/cmpeval.o ../cmpnew/cmpflet.o ../cmpnew/cmpfun.o ../cmpnew/cmpif.o ../cmpnew/cmplabel.o ../cmpnew/cmplam.o ../cmpnew/cmplet.o ../cmpnew/cmploc.o ../cmpnew/cmpmap.o ../cmpnew/cmpmulti.o ../cmpnew/cmpspecial.o ../cmpnew/cmptag.o ../cmpnew/cmptop.o ../cmpnew/cmpvar.o ../cmpnew/cmpvs.o ../cmpnew/cmpwt.o sys_gcl.o -lc -lm -lreadline -lncurses /usr/lib/libbfd.a /usr/lib/libiberty.a ../o/gcllib.a ../o/file.o: In function `open_stream': ../o/file.o(.text+0x1e4): the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/libbfd.a(srec.o): In function `srec_scan': srec.o(.text+0xc5): undefined reference to `_sch_istable' srec.o(.text+0x2ec): undefined reference to `_sch_istable' srec.o(.text+0x511): undefined reference to `_sch_istable' srec.o(.text+0x5ec): undefined reference to `_sch_istable' /usr/lib/libbfd.a(binary.o): In function `binary_get_symtab': binary.o(.text+0x1f8): undefined reference to `_sch_istable' /usr/lib/libbfd.a(binary.o)(.text+0x306): more undefined references to `_sch_istable' follow /usr/lib/libbfd.a(syms.o): In function `bfd_decode_symclass': syms.o(.text+0x256): undefined reference to `_sch_toupper' /usr/lib/libbfd.a(stabs.o): In function `_bfd_link_section_stabs': stabs.o(.text+0x402): undefined reference to `_sch_istable' collect2: ld returned 1 exit status make[1]: *** [raw_gcl] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/unixport' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 31, Exitcode 2 !!! (no error message)
I get this similar compile-time error gcc -pipe -fwritable-strings -DVOL=volatile -I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -O -c -O -I../h cmpwt.c ../xbin/append cmpwt.data cmpwt.o make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/cmpnew' (cd unixport; make saved_gcl) make[1]: Entering directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/unixport' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gcc -pipe -fwritable-strings -DVOL=volatile -I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -c -I../h sys_gcl.c gcc -pipe -fwritable-strings -DVOL=volatile -I/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/o -fsigned-char -o raw_gcl ../o/main.o ../o/alloc.o ../o/gbc.o ../o/bitop.o ../o/typespec.o ../o/eval.o ../o/macros.o ../o/lex.o ../o/bds.o ../o/frame.o ../o/predicate.o ../o/reference.o ../o/assignment.o ../o/bind.o ../o/let.o ../o/conditional.o ../o/block.o ../o/iteration.o ../o/mapfun.o ../o/prog.o ../o/multival.o ../o/catch.o ../o/symbol.o ../o/cfun.o ../o/cmpaux.o ../o/package.o ../o/big.o ../o/number.o ../o/num_pred.o ../o/num_comp.o ../o/num_arith.o ../o/num_sfun.o ../o/num_co.o ../o/num_log.o ../o/num_rand.o ../o/earith.o ../o/character.o ../o/sequence.o ../o/list.o ../o/hash.o ../o/array.o ../o/string.o ../o/regexpr.o ../o/structure.o ../o/toplevel.o ../o/file.o ../o/read.o ../o/backq.o ../o/print.o ../o/format.o ../o/pathname.o ../o/unixfsys.o ../o/unixfasl.o ../o/error.o ../o/unixtime.o ../o/unixsys.o ../o/unixsave.o ../o/funlink.o ../o/fat_string.o ../o/run_process.o ../o/nfunlink.o ../o/usig.o ../o/usig2.o ../o/utils.o ../o/makefun.o ../o/sockets.o ../o/clxsocket.o ../o/init_pari.o ../o/nsocket.o ../o/new_init.o ../gmp/libgmp.a ../o/sfasl.o ../o/readline.o ../lsp/defmacro.o ../lsp/evalmacros.o ../lsp/top.o ../lsp/module.o ../lsp/predlib.o ../lsp/setf.o ../lsp/arraylib.o ../lsp/assert.o ../lsp/defstruct.o ../lsp/describe.o ../lsp/iolib.o ../lsp/listlib.o ../lsp/mislib.o ../lsp/numlib.o ../lsp/packlib.o ../lsp/seq.o ../lsp/seqlib.o ../lsp/trace.o ../lsp/sloop.o ../lsp/debug.o ../lsp/serror.o ../lsp/info.o ../lsp/destructuring_bind.o ../lsp/defpackage.o ../lsp/make_defpackage.o ../lsp/loop.o ../lsp/readline.o ../cmpnew/cmpinline.o ../cmpnew/cmputil.o ../cmpnew/cmptype.o ../cmpnew/cmpbind.o ../cmpnew/cmpblock.o ../cmpnew/cmpcall.o ../cmpnew/cmpcatch.o ../cmpnew/cmpenv.o ../cmpnew/cmpeval.o ../cmpnew/cmpflet.o ../cmpnew/cmpfun.o ../cmpnew/cmpif.o ../cmpnew/cmplabel.o ../cmpnew/cmplam.o ../cmpnew/cmplet.o ../cmpnew/cmploc.o ../cmpnew/cmpmap.o ../cmpnew/cmpmulti.o ../cmpnew/cmpspecial.o ../cmpnew/cmptag.o ../cmpnew/cmptop.o ../cmpnew/cmpvar.o ../cmpnew/cmpvs.o ../cmpnew/cmpwt.o sys_gcl.o -lc -lm -lreadline -lncurses /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a ../o/gcllib.a ../o/file.o: In function `open_stream': ../o/file.o(.text+0x59c): the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a(elf-strtab.o): In function `_bfd_elf_strtab_finalize': elf-strtab.o(.text+0x3eb): undefined reference to `htab_create_alloc' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a(merge.o): In function `merge_strings': merge.o(.text+0xf72): undefined reference to `htab_create_alloc' merge.o(.text+0xfb1): undefined reference to `htab_create_alloc' collect2: ld returned 1 exit status make[1]: *** [raw_gcl] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3/unixport' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 12, Exitcode 2 !!! (no error message)
The second of the linker errors is resolved by linking agains /usr/lib/libiberty.a instead of /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a . How do I modify the ebuild to have make do it this way?
Adding the following to src_compile of gcl-2.4.3.ebuild is (a rather ugly) way to make gcl compile: for i in */makefile makedefs makedefc makefile config.status ; do mv $i $i.orig.2 ; cat $i.orig.2 | \ sed -e 's|/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a|/usr/lib/libiberty.a|g' > $i done However the ebuild still fails, as the make install step produces the following error: if [ -d "/usr/lib" ] ; then \ (cd /var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk/demos ; \ echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ../../unixport/saved_gcl) ; fi GCL (GNU Common Lisp) Version(2.5.0) Sun Oct 13 17:31:05 CEST 2002 Licensed under GNU Library General Public License Contains Enhancements by W. Schelter > Loading ../tkl.o Not enough space in bfd_buf 80 16 make[1]: *** [install1] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3' make: *** [install] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_install, Line 14, Exitcode 2 !!! (no error message) This error does *not* occur when I do make install manually!
*** Bug 9175 has been marked as a duplicate of this bug. ***
Maybe mask 2.4.3, as 2.4.0 works for me and 2.4.3 does not.
Hi guys. Sorry for a long lag in responce - I just got back to my bugs after a long trip. I masked gcl-2.4.3 for now, will try Felix'es suggestions shortly. Thanks for reports and some problem tracing! George
well, i added into src_compile() (ebuild 2.4.3): for i in makedefs makedefc ; do mv $i $i.libs.orig ; cat $i.libs.orig | \ sed -e 's|/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbfd.a /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/libiberty.a|-liberty -lbfd|g' > $i done and it works
Thanks Michal and everybody for tracing this! I made a few changes to 2.4.3.ebuild, please unmask and test. Especially pcc and gcc-3.2 people? George
I still get this error during make install: if [ -d "/usr/lib" ] ; then \ (cd /var/tmp/portage/gcl-2.4.3/image//usr/lib/gcl-2.5.0/gcl-tk/demos ; \ echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ../../unixport/saved_gcl) ; fi GCL (GNU Common Lisp) Version(2.5.0) Wed Oct 23 18:18:53 CEST 2002 Licensed under GNU Library General Public License Contains Enhancements by W. Schelter > Loading ../tkl.o Not enough space in bfd_buf 80 16 make[1]: *** [install1] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcl-2.4.3/work/gcl-2.4.3' make: *** [install] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_install, Line 8, Exitcode 2 !!! (no error message)
felix make sure /var/tmp/portage has enough space george: the latest one works for me.