gcc problems with glibc-2.3

John Nielsen da02043 at mail.ikasths.dk
Wed Oct 16 00:40:13 PDT 2002


Hi all...

I am trying to build lfs with glibc-2.3 using the LD_LIBERRY_PATH hack and i 
have managed to install every package except gcc without problems. Gcc 
however is giving me problems. I am using gcc-20021010 and the static one 
installed without a hitch...

I have installed bison, perl, autoconf, automake, m4 and i dont remember which 
other packages the gcc manual said was neseserry to build a cvs gcc, so i 
dont think its a dependency problem.

Has anyone had similar problems?

Here is the last of the output:

gcc   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common  
-DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengtype \
 gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a
gengtype.o: In function `adjust_field_rtx_def':
/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:430: undefined 
reference to `lexer_line'
/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:473: undefined 
reference to `lexer_line'
/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:530: undefined 
reference to `lexer_line'
/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:573: undefined 
reference to `lexer_line'
/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:620: undefined 
reference to `lexer_line'
gengtype.o:/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:633: 
more undefined references to `lexer_line' follow
gengtype.o: In function `main':
/usr/src/source/gcc-build/gcc/../../gcc-20021010/gcc/gengtype.c:2609: 
undefined reference to `parse_file'
gengtype-yacc.o: In function `yyparse':
/usr/share/bison/bison.simple:573: undefined reference to `yylex'
gengtype-yacc.o: In function `yyparse':
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:70: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:72: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:73: undefined reference to 
`lexer_toplevel_done'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:79: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:81: undefined reference to 
`lexer_toplevel_done'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:89: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:94: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:99: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:107: undefined reference to 
`lexer_toplevel_done'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:119: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:162: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:162: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:173: undefined reference to 
`lexer_line'
/usr/src/source/gcc-build/gcc/gengtype-yacc.y:173: undefined reference to 
`lexer_line'
gengtype-yacc.o:/usr/src/source/gcc-build/gcc/gengtype-yacc.y:190: more 
undefined references to `lexer_line' follow
gengtype-yacc.o: In function `yyparse':
/usr/share/bison/bison.simple:791: undefined reference to `yyerror'
/usr/share/bison/bison.simple:795: undefined reference to `yyerror'
/usr/share/bison/bison.simple:799: undefined reference to `yyerror'
/usr/share/bison/bison.simple:924: undefined reference to `yyerror'
collect2: ld returned 1 exit status
make[2]: *** [gengtype] Error 1
make[2]: Leaving directory `/usr/src/source/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/source/gcc-build/gcc'
make: *** [bootstrap] Error 2

This is the last problem i need to solve to be running the new glibc.

John Nielsen
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list