Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2004 21:20:40 +0000
From:      Eric Kjeldergaard <kjelderg@gmail.com>
To:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   cc_tools compilations problems on 5.3
Message-ID:  <d9175cad0412021320221e2a08@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I've got my lousy server (200mhz cyrix) running FreeBSD 5.3 finally. 
I ended up having to boot from the 5.1 installation media because it
panics on both 5.2.1 and 5.3.  So, happy as a clam, I figured I could
probably keep up with RELENG_5_3.  Much to my dismay, I'm having no
luck getting kernel or world to compile.  kernel seems to error out in
an awk command (which I'll address after I get world figured out.  I
find it easier/faster to buildkernel remotely and installkernel
locally.)  Here is the end of the output from buildworld:

cc -O -pipe -DIN_GCC -DHAVE_CONFIG_H
-DPREFIX=\"/usr/obj/usr/src/i386/usr\"
-I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc
-I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config
-DHAVE_CONFIG_H -DTARGET_NAME=\"i386-fbsdproj-freebsd\" -DIN_GCC 
-I/usr/obj/usr/src/i386/legacy/usr/include -c
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/optabs.c
cc -O -pipe -DIN_GCC -DHAVE_CONFIG_H
-DPREFIX=\"/usr/obj/usr/src/i386/usr\"
-I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
-I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc
-I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config
-DHAVE_CONFIG_H -DTARGET_NAME=\"i386-fbsdproj-freebsd\" -DIN_GCC 
-I/usr/obj/usr/src/i386/legacy/usr/include -c ../cc_tools/options.c
../cc_tools/options.c:53: error: syntax error before ',' token
../cc_tools/options.c:53: warning: large integer implicitly truncated
to unsigned type
../cc_tools/options.c:83: error: syntax error before ',' token
../cc_tools/options.c:83: warning: large integer implicitly truncated
to unsigned type
../cc_tools/options.c:89: error: syntax error before ',' token
../cc_tools/options.c:89: warning: large integer implicitly truncated
to unsigned type
../cc_tools/options.c:110: error: syntax error before ',' token
../cc_tools/options.c:113: error: syntax error before ',' token
../cc_tools/options.c:131: error: syntax error before ',' token
../cc_tools/options.c:143: error: syntax error before ',' token
../cc_tools/options.c:155: error: syntax error before ',' token
../cc_tools/options.c:170: error: syntax error before ',' token
../cc_tools/options.c:176: error: syntax error before ',' token
../cc_tools/options.c:179: error: syntax error before ',' token
../cc_tools/options.c:218: error: syntax error before ',' token
../cc_tools/options.c:224: error: syntax error before ',' token
../cc_tools/options.c:245: error: syntax error before ',' token
../cc_tools/options.c:254: error: syntax error before ',' token
../cc_tools/options.c:257: error: syntax error before ',' token
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc/cc_int.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/cc.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
sponge#           

now, this syntax error is pretty obvious once I start looking at the
source file.  A lot of lines like this:

  { "-G",
    N_("-G<number>   Put global and static data smaller than <number>
bytes into a special section (on some targets)"),
    , 1, CL_COMMON | CL_JOINED | CL_SEPARATE | CL_UINTEGER },

Occur in an array declaration.  Thus it seems that at some point that
file is being generated incorrectly.  Anyone know what might be to
blame?  I'm currently compiling using binary world that I got from 5.3
binary install and a custom (very minimal) kernel from a slightly
fresher RELENG_5_3 cvsup.  I have my make.conf entirely commented out
at this point, making sure nothing there is to blame.  It's not a
particularly important box, so I'm willing to try pretty much anything
you guys (and the occasional gals) can come up with.  Thank you for
your time.

-- 
If I write a signature, my emails will appear more personalised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d9175cad0412021320221e2a08>