egcs-1.0.1 does not make
Peter Dyballa
pete@riese.thi.informatik.uni-frankfurt.de
Thu Feb 19 04:43:00 GMT 1998
Hello!
On a Sun Ultrastation 1/170E with Solaris 2.6 and gcc-2.8.0 I configured in a
new directory:
../configure --srcdir=.. --enable-shared --with-gcc --with-elf --enable-threads=pthreads --enable-c-cpplib --enable-haifa
Compilation went fine until:
gmake[2]: Entering directory `/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/cp'
.
.
.
gcc -DIN_GCC -DUSE_CPPLIB=1 -DSVR4 -H -fPIC -O3 -fomit-frame-pointer -fexpensive-optimizations -ffunction-sections -mcpu=v8 -m32 -o ../cc1plus \
call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o class.o decl2.o error.o lex.o parse.o ptree.o rtti.o spew.o typeck.o cvt.o except.o friend.o init.o method.o search.o tree.o xref.o repo.o `cat ../stamp-objlist` ../c-common.o ../c-pragma.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` `case "gcc" in "cc") if [ xalloca.o != x ]; then echo ../alloca.o; else true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi`
Undefined first referenced
symbol in file
finish_parse ../toplev.o
finput lex.o
ld: fatal: Symbol referencing errors. No output written to ../cc1plus
gmake[2]: *** [../cc1plus] Error 1
gmake[2]: Leaving directory `/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/cp'
gmake[1]: *** [cc1plus] Error 2
gmake -f f/Makefile "AR_FLAGS=rc" "AR_FOR_TARGET=ar" "BISON=bison" "BISONFLAGS=" "CC=gcc" "CFLAGS=-H -fPIC -O3 -fomit-frame-pointer -fexpensive-optimizations -ffunction-sections -mcpu=v8 -m32" "CLIB=" "GCC_FOR_TARGET=/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/xgcc -B/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/" "LDFLAGS=" "LEX=flex" "LEXFLAGS=" "LN=ln" "LN_S=ln -s" "MAKEINFO=/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/texinfo/makeinfo/makeinfo " "MAKEINFOFLAGS=" "RANLIB_FOR_TARGET=true" "RANLIB_TEST_FOR_TARGET=[ -f /usr/local/sparc-sun-solaris2.6/bin/ranlib ]" "SHELL=/bin/sh" "STAGE_PREFIX=" "exeext=" "objext=.o" "exec_prefix=/usr/local" "prefix=/usr/local" "tooldir=/usr/local/sparc-sun-solaris2.6" "bindir=/usr/local/bin" "libsubdir=/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.23" VPATH=../../gcc srcdir=../../gcc f771
gmake[2]: Entering directory `/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc'
.
.
.
rm -f f771
gcc -DIN_GCC -DSVR4 -H -fPIC -O3 -fomit-frame-pointer -fexpensive-optimizations -ffunction-sections -mcpu=v8 -m32 -W -Wall `case "sparc-sun-solaris2.6" in m68k-next-nextstep*) echo -segaddr __DATA 6000000;; *-*-aix[4-9]*) \`gcc --print-prog-name=ld\` -v 2>&1 | grep BFD >/dev/null || echo -Wl,-bbigtoc;; esac` -o f771 \
f/bad.o f/bit.o f/bld.o f/com.o f/data.o f/equiv.o f/expr.o f/global.o f/implic.o f/info.o f/intrin.o f/lab.o f/lex.o f/malloc.o f/name.o f/parse.o f/proj.o f/src.o f/st.o f/sta.o f/stb.o f/stc.o f/std.o f/ste.o f/storag.o f/stp.o f/str.o f/sts.o f/stt.o f/stu.o f/stv.o f/stw.o f/symbol.o f/target.o f/top.o f/type.o f/version.o f/where.o `cat stamp-objlist | sed -e "s: : :g" -e "s: : f/:g"` `if [ xobstack.o != x ]; then echo obstack.o; else true; fi` `case "gcc" in "cc") if [ xalloca.o != x ]; then echo alloca.o; else true; fi ;; esac` `if [ x != x ]; then echo ; else true; fi`
Undefined first referenced
symbol in file
finish_parse f/../toplev.o
init_parse f/../toplev.o
ld: fatal: Symbol referencing errors. No output written to f771
gmake[2]: *** [f771] Error 1
gmake[2]: Leaving directory `/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc'
gmake[1]: *** [f771] Error 2
and again:
gmake[2]: Entering directory `/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/objc'
rm -fr ../include/objc
mkdir ../include/objc
for file in hash.h objc-list.h sarray.h objc.h objc-api.h NXConstStr.h Object.h Protocol.h encoding.h typedstream.h thr.h; do \
realfile=../../../gcc/objc/${file}; \
cp ${realfile} ../include/objc; \
chmod a+r ../include/objc/${file}; \
done
gmake[2]: Leaving directory `/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/objc'
touch objc-headers
.
.
.
..../egcs-1.0.1/Objekte/gcc/xgcc -B/home/lovelace/thi/dumpf/GNU/egcs-1.0.1/Objekte/gcc/ -DIN_GCC -DUSE_CPPLIB=1 -DSVR4 -H -fPIC -O3 -fomit-frame-pointer -fexpensive-optimizations -ffunction-sections -mcpu=v8 -m32 -I./include -I. -I../../gcc -I../../gcc/config \
-c ../../gcc/objc/thr-pthreads.c -o objc/thr-pthreads.o
../../gcc/objc/thr-pthreads.c:28: pcthread.h: No such file or directory
include/objc/thr.h
include/objc/objc.h
include/stddef.h
../../gcc/objc/runtime.h
include/stdarg.h
include/va-sparc.h
include/stdio.h
include/sys/feature_tests.h
/usr/include/sys/va_list.h
include/ctype.h
include/stddef.h
../../gcc/assert.h
include/objc/objc-api.h
include/objc/hash.h
include/stddef.h
include/objc/objc-list.h
gmake[1]: *** [objc/thr-pthreads.o] Error 1
.
.
.
gcc -DIN_GCC -DUSE_CPPLIB=1 -DSVR4 -H -fPIC -O3 -fomit-frame-pointer -fexpensive-optimizations -ffunction-sections -mcpu=v8 -m32 -DHAVE_CONFIG_H -DHAIFA -I. -I../../gcc -I../../gcc/config \
-DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-lib/\" -DDEFAULT_TARGET_VERSION=\"egcs-2.90.23\" -DDEFAULT_TARGET_MACHINE=\"sparc-sun-solaris2.6\" -DTOOLDIR_BASE_PREFIX=\"/usr/local/\" \
-DLANG_SPECIFIC_DRIVER -c g77.c
gcc: g77.c: No such file or directory
gcc: No input files
gmake[1]: *** [g77.o] Error 1
The trouble seems to come from egcs-1.0.1/gcc/configure which checks for
ac_lib_var which is set to `echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'
i.e. fl_yywrap.
Our libfl.so.2.5.4a contains only yywrap ... ?
In that stage configure invokes
gcc -o conftest -H -fPIC -O3 -fomit-frame-pointer -fexpensive-optimizations -ffunction-sections -mcpu=v8 -m32 -L. -R/usr/local/lib conftest.c -lfl 1>&5
Doing the same by hand I yield:
ld: Software Generation Utilities - Solaris/ELF (3.0)
Undefined first referenced
symbol in file
yylex /usr/local/lib/libfl.so
ld: fatal: Symbol referencing errors. No output written to conftest
What should I do now?
Greetings
Pete
(Peter Dyballa)
Johann Wolfgang Goethe-Universit\"at Robert-Mayer-Str. 11-15
Fachbereich 20 - Theoretische Informatik D 60325 Frankfurt am Main
(Department for Computer Science) (Federal Republic of Germany)
More information about the Gcc-bugs
mailing list