Re: 5.1 current make buildworld fails consistently on crtstuff.c- Help?

2003-10-17 Thread Kris Kennaway
On Mon, Oct 13, 2003 at 07:52:34PM -0400, Scott W wrote:

> cc -O -pipe -DSMP -DAPIC_IO -march=pentiumpro -W -Wall -ansi -pedantic 
> -Wbad-function-cast -Wcast-align  -Wcast-qual -Wchar-subscripts 
> -Winline  -Wmissing-prototypes -Wnested-externs -Wpointer-arith  
> -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings 
> -march=pentiumpro -DIN_GCC -DHAVE_LD_EH_FRAME_HDR 
> -finhibit-size-directive -fno-inline-functions  -fno-exceptions 
> -fno-zero-initialized-in-bss  -fno-omit-frame-pointer 

It looks like you have highly non-standard CFLAGS.

Kris


pgp0.pgp
Description: PGP signature


5.1 current make buildworld fails consistently on crtstuff.c- Help?

2003-10-15 Thread Scott W
Hey all.  I've been unsuccessful at performing a 'make buildworld' for 
the past week based on a cvsup of 5.1-current.  This is a fresh install 
as of ~10 days ago on a Dual Celeron BP-6 system, 784M RAM.  To say this 
is getting frustrating at this point is an understatementanyone else 
seeing this problem or have a suggestion on how to resolve this?

Failed buildlog follows, have seen this consistently break in the same 
place for the past week of attempting 'make buildworld'.  Some debugging 
seems to point it's actually in the definition of 
CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC), likely in the definition of 
one of the parameters themsevles, as removing the rest of the #defined 
macro 'function' still results in the same compile error.

cc -O -pipe -DSMP -DAPIC_IO -march=pentiumpro -W -Wall -ansi -pedantic 
-Wbad-function-cast -Wcast-align  -Wcast-qual -Wchar-subscripts 
-Winline  -Wmissing-prototypes -Wnested-externs -Wpointer-arith  
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings 
-march=pentiumpro -DIN_GCC -DHAVE_LD_EH_FRAME_HDR 
-finhibit-size-directive -fno-inline-functions  -fno-exceptions 
-fno-zero-initialized-in-bss  -fno-omit-frame-pointer 
-I/usr/src/gnu/lib/csu/../../../contrib/gcc/config 
-I/usr/src/gnu/lib/csu/../../../contrib/gcc -I.  
-I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools  -g0 -DCRT_BEGIN  -c -o 
crtbegin.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
In file included from /usr/src/contrib/gcc/crtstuff.c:63:
/usr/src/contrib/gcc/unwind-dw2-fde.h:37: warning: ISO C90 does not 
support flexible array members
/usr/src/contrib/gcc/unwind-dw2-fde.h:53: warning: bit-field `sorted' 
type invalid in ISO C
/usr/src/contrib/gcc/unwind-dw2-fde.h:54: warning: bit-field 
`from_array' type invalid in ISO C
/usr/src/contrib/gcc/unwind-dw2-fde.h:55: warning: bit-field 
`mixed_encoding' type invalid in ISO C
/usr/src/contrib/gcc/unwind-dw2-fde.h:56: warning: bit-field `encoding' 
type invalid in ISO C
/usr/src/contrib/gcc/unwind-dw2-fde.h:59: warning: bit-field `count' 
type invalid in ISO C
/usr/src/contrib/gcc/unwind-dw2-fde.h:139: warning: ISO C90 does not 
support flexible array members
/usr/src/contrib/gcc/unwind-dw2-fde.h:147: warning: ISO C90 does not 
support flexible array members
/usr/src/contrib/gcc/unwind-dw2-fde.h: In function `get_cie':
/usr/src/contrib/gcc/unwind-dw2-fde.h:157: warning: pointer of type 
`void *' used in arithmetic
/usr/src/contrib/gcc/crtstuff.c: At top level:
/usr/src/contrib/gcc/crtstuff.c:122: warning: redundant redeclaration of 
`__register_frame_info' in same scope
/usr/src/contrib/gcc/unwind-dw2-fde.h:95: warning: previous declaration 
of `__register_frame_info'
/usr/src/contrib/gcc/crtstuff.c:125: warning: redundant redeclaration of 
`__register_frame_info_bases' in same scope
/usr/src/contrib/gcc/unwind-dw2-fde.h:94: warning: previous declaration 
of `__register_frame_info_bases'
/usr/src/contrib/gcc/crtstuff.c:127: warning: redundant redeclaration of 
`__deregister_frame_info' in same scope
/usr/src/contrib/gcc/unwind-dw2-fde.h:101: warning: previous declaration 
of `__deregister_frame_info'
/usr/src/contrib/gcc/crtstuff.c:129: warning: redundant redeclaration of 
`__deregister_frame_info_bases' in same scope
/usr/src/contrib/gcc/unwind-dw2-fde.h:102: warning: previous declaration 
of `__deregister_frame_info_bases'
/usr/src/contrib/gcc/crtstuff.c:198: warning: ISO C forbids empty 
initializer braces
/usr/src/contrib/gcc/crtstuff.c:206: warning: ISO C forbids empty 
initializer braces
/usr/src/contrib/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/usr/src/contrib/gcc/crtstuff.c:280: warning: passing arg 1 of 
`__deregister_frame_info' discards qualifiers from pointer target type
/usr/src/contrib/gcc/crtstuff.c: At top level:
/usr/src/contrib/gcc/crtstuff.c:288: error: syntax error before string 
constant
/usr/src/contrib/gcc/crtstuff.c:288: warning: ISO C does not allow extra 
`;' outside of a function
/usr/src/contrib/gcc/crtstuff.c: In function `frame_dummy':
/usr/src/contrib/gcc/crtstuff.c:316: warning: passing arg 1 of 
`__register_frame_info' discards qualifiers from pointer target type
/usr/src/contrib/gcc/crtstuff.c: At top level:
/usr/src/contrib/gcc/crtstuff.c:325: error: syntax error before string 
constant
/usr/src/contrib/gcc/crtstuff.c:325: warning: ISO C does not allow extra 
`;' outside of a function
*** Error code 1

Stop in /usr/src/gnu/lib/csu.
*** Error code 1
This particular section of code in crtstuff.c is as follows:

CRT_CALL_STATIC_FUNCTION (INIT_SECTION_ASM_OP, frame_dummy)

which is defined as:
#ifndef CRT_CALL_STATIC_FUNCTION
# define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
static void __attribute__((__used__))   \
call_ ## FUNC (void)\
{   \
asm (SECTION_OP); \
FUNC ();  \
FORCE_CODE_SECTION_ALIG