This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Tree-SSA failure on FreeBSD 4.8-STABLE


I don't know if this has been reported already...

I updated tree-ssa from CVS today and during building:

/stuff/gcc.obj/gcc/xgcc -B/stuff/gcc.obj/gcc/ -B/stuff/gcc.install/i386-unknown-freebsd4.8/bin/ -B/stuff/gcc.install/i386-unknown-freebsd4.8/lib/ -isystem /stuff/gcc.install/i386-unknown-freebsd4.8/include -isystem /stuff/gcc.install/i386-unknown-freebsd4.8/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libmudflap -I. -O2 -g -O2 -Wall -O2 -g -O2 -DWRAP_recv -c ../../../gcc/libmudflap/mf-hooks.c  -fPIC -DPIC -o .libs/recv-hook.o
In file included from ../../../gcc/libmudflap/mf-hooks.c:1834:
/usr/include/sys/socket.h:52: error: parse error before "sa_family_t"
/usr/include/sys/socket.h:163: error: parse error before "u_char"
/usr/include/sys/socket.h:166: error: parse error before '}' token
/usr/include/sys/socket.h:174: error: parse error before "u_short"
/usr/include/sys/socket.h:188: error: parse error before "u_char"
/usr/include/sys/socket.h:190: error: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:193: error: parse error before '}' token
/usr/include/sys/socket.h:399: error: parse error before "u_short"
/usr/include/sys/socket.h:401: error: parse error before '}' token
gmake[3]: *** [recv-hook.lo] Fel 1
gmake[3]: Leaving directory `/stuff/gcc.obj/i386-unknown-freebsd4.8/libmudflap'
gmake[2]: *** [all-recursive] Fel 1
gmake[2]: Leaving directory `/stuff/gcc.obj/i386-unknown-freebsd4.8/libmudflap'
gmake[1]: *** [all-recursive-am] Fel 2
gmake[1]: Leaving directory `/stuff/gcc.obj/i386-unknown-freebsd4.8/libmudflap'
gmake: *** [all-target-libmudflap] Fel 2
[linus@hal9000 /stuff/gcc.obj]$ 

>From sys/socket.h:
#ifndef _POSIX_SOURCE
typedef unsigned char   u_char;
typedef unsigned short  u_short;
typedef unsigned int    u_int;
typedef unsigned long   u_long;
typedef unsigned short  ushort;         /* Sys V compatibility */
typedef unsigned int    uint;           /* Sys V compatibility */
#endif

By commenting out #define _POSIX_SOURCE on line 14 in mf-hooks.c the code
compiles.


However I get another error:

/stuff/gcc.obj/gcc/xgcc -B/stuff/gcc.obj/gcc/ -B/stuff/gcc.install/i386-unknown-fr
eebsd4.8/bin/ -B/stuff/gcc.install/i386-unknown-freebsd4.8/lib/ -isystem /stuff/gc
c.install/i386-unknown-freebsd4.8/include -isystem /stuff/gcc.install/i386-unknown
-freebsd4.8/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libmudflap -I. -O2 -g -
O2 -Wall -O2 -g -O2 -DWRAP_stat64 -c ../../../gcc/libmudflap/mf-hooks.c  -fPIC -DP
IC -o .libs/stat64-hook.o
../../../gcc/libmudflap/mf-hooks.c:1709: warning: `struct stat64' declared inside 
parameter list
../../../gcc/libmudflap/mf-hooks.c:1709: warning: its scope is only this definitio
n or declaration, which is probably not what you want
../../../gcc/libmudflap/mf-hooks.c: In function `__mfwrap_stat64':
../../../gcc/libmudflap/mf-hooks.c:1715: error: dereferencing pointer to incomplet
e type
../../../gcc/libmudflap/mf-hooks.c:1715: error: dereferencing pointer to incomplet
e type
../../../gcc/libmudflap/mf-hooks.c:1715: error: dereferencing pointer to incomplet
e type
../../../gcc/libmudflap/mf-hooks.c:1715: error: dereferencing pointer to incomplet
e type
../../../gcc/libmudflap/mf-hooks.c:1715: error: dereferencing pointer to incomplet
e type
../../../gcc/libmudflap/mf-hooks.c:1715: error: dereferencing pointer to incomplet
e type
../../../gcc/libmudflap/mf-hooks.c:1716: warning: implicit declaration of function
 `stat64'
gmake[3]: *** [stat64-hook.lo] Fel 1


/LS


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]