gcc41 build errors ...

Kiffin Gish kiffin.gish at planet.nl
Sun Jan 28 13:15:20 UTC 2007


Hi there. For some reason I cannot upgrade gcc and keep getting build
errors. Hopefully someone can help me by reviewing the output below.
Thanks alot in advance!

# pkg_version -vIL=
gcc-4.1.2_20070108  <   needs updating (index has 4.1.2_20070122)

# portupgarde -arR
[...]
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:31:27: gengtype-yacc.h: No
such fil
e or directory
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l: In function `yylex':
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:222: error: `yylval'
undeclared (fi
rst use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:222: error: (Each
undeclared identi
fier is reported only once
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:222: error: for each
function it ap
pears in.)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:227: error:
`ENT_TYPEDEF_STRUCT' un
declared (first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:227: error: `ENT_STRUCT'
undeclared
 (first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:233: error:
`ENT_EXTERNSTATIC' unde
clared (first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:239: error: `ENT_YACCUNION'
undecla
red (first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:287: error: `GTY_TOKEN'
undeclared 

(first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:288: error: `UNION'
undeclared (fir
st use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:289: error: `STRUCT'
undeclared (fi
rst use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:290: error: `ENUM'
undeclared (firs
t use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:291: error: `ALIAS'
undeclared (fir
st use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:292: error: `NESTED_PTR'
undeclared
 (first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:293: error: `NUM'
undeclared (first
 use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:296: error: `PARAM_IS'
undeclared (
first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:308: error: `SCALAR'
undeclared (fi
rst use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:329: error: `ID' undeclared
(first 
use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:339: error: `STRING'
undeclared (fi
rst use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:343: error: `ARRAY'
undeclared (fir
st use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:347: error: `PERCENT_ID'
undeclared
 (first use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:351: error: `CHAR'
undeclared (firs
t use in this function)
.././..//gcc-4.1-20070122/gcc/gengtype-lex.l:367: error:
`PERCENTPERCENT' undecl
ared (first use in this function)
gengtype-lex.c: In function `yy_get_next_buffer':
gengtype-lex.c:2665: warning: old-style parameter declaration
gengtype-lex.c: In function `yy_get_previous_state':
gengtype-lex.c:2797: warning: old-style parameter declaration
gengtype-lex.c: In function `input':
gengtype-lex.c:2910: warning: old-style parameter declaration
gmake[2]: *** [build/gengtype-lex.o] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc41/work/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc41/work/build/gcc'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gcc41.
** Command failed [exit code 1]: /usr/bin/script
-qa /tmp/portupgrade.26806.114 
env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gcc-4.1.2_20070108
UPGRADE_PORT_VER=4.
1.2_20070108 make
** Fix the problem and try again.



-- 
Kiffin Gish <kiffin.gish at planet.nl>



More information about the freebsd-questions mailing list