http://bugs.freedesktop.org/show_bug.cgi?id=25663





--- Comment #10 from Ben Matthews <mbe...@gmail.com>  2009-12-16 09:42:25 PST 
---
The gcc build is still tripping up on sys/endian.h not being found (I have no
idea why):

/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc -c
-I../../include -I../../src/mesa -I../../src/gallium/include
-I../../src/gallium/auxiliary -O3 -ansi -pedantic -fPIC -ffast-math
-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
-fno-strict-aliasing main/accum.c -o main/accum.o
/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc -c
-I../../include -I../../src/mesa -I../../src/gallium/include
-I../../src/gallium/auxiliary -O3 -ansi -pedantic -fPIC -ffast-math
-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
-fno-strict-aliasing main/attrib.c -o main/attrib.o
/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc -c
-I../../include -I../../src/mesa -I../../src/gallium/include
-I../../src/gallium/auxiliary -O3 -ansi -pedantic -fPIC -ffast-math
-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
-fno-strict-aliasing main/arrayobj.c -o main/arrayobj.o
In file included from main/imports.h:39,
                 from main/arrayobj.c:44:
main/compiler.h:244:24: sys/endian.h: No such file or directory
In file included from main/imports.h:39In file included from main/mtypes.h:39In
file included from main/mtypes.h:39,
                 from main/accum.h:41,
                 from main/accum.h:41,
                 from main/api_exec.c:34,
                 from main/accum.c:26In file included from main/mtypes.h:39:
,
                 from
main/api_noop.h:28../../src/mesa/main/compiler.h:244:24:In file included from
main/mtypes.h:39,
                 from main/api_noop.c:27In file included from main/mtypes.h:39:
,
                 from main/api_validate.h:31In file included from
main/imports.h:39 :
sys/endian.h: No such file or directory../../src/mesa/main/compiler.h:244:24:,
                 from
main/api_arrayelt.h:30../../src/mesa/main/compiler.h:244:24:,
                 from main/api_arrayelt.c:30,
                 from main/api_validate.c:26,
                 from main/macros.h:34
,
                 from main/api_loopback.c:33 :
sys/endian.h: No such file or directorymain/compiler.h:244:24:
 :
sys/endian.h: No such file or directory
../../src/mesa/main/compiler.h:244:24: :
sys/endian.h: No such file or directory../../src/mesa/main/compiler.h:244:24: 
sys/endian.h: No such file or directory
 sys/endian.h: No such file or directory
,
                 from main/attrib.c:27:
main/compiler.h:244:24: sys/endian.h: No such file or directory
In file included from ../../src/mesa/glapi/glapi.h:51,
                 from main/mtypes.h:41,
                 from main/api_noop.h:28,
                 from main/api_noop.c:27:
../../src/mesa/glapi/glthread.h:144:6: '#' is not followed by a macro parameter
In file included from ../../src/mesa/glapi/glapi.h:51In file included from
../../src/mesa/glapi/glapi.h:51In file included from
../../src/mesa/glapi/glapi.h:51,
                 from main/mtypes.h:41,
                 from main/mtypes.h:41,
                 from main/mtypes.h:41,
                 from main/accum.h:41,
                 from main/accum.h:41,
                 from main/api_exec.c:34,
                 from main/accum.c:26:
,
                 from main/api_arrayelt.h:30:
,
                 from main/api_arrayelt.c:30:
../../src/mesa/glapi/glthread.h:144:6:../../src/mesa/glapi/glthread.h:144:6:
../../src/mesa/glapi/glthread.h:144:6:  '#' is not followed by a macro
parameter
'#' is not followed by a macro parameter
'#' is not followed by a macro parameter
In file included from ../../src/mesa/glapi/glapi.h:51,
                 from main/mtypes.h:41,
                 from main/api_validate.h:31,
                 from main/api_validate.c:26:
../../src/mesa/glapi/glthread.h:144:6: '#' is not followed by a macro parameter
In file included from ../../src/mesa/glapi/glapi.h:51,
                 from main/mtypes.h:41,
                 from main/context.h:53,
                 from main/arrayobj.c:45:
In file included from
../../src/mesa/glapi/glapi.h:51../../src/mesa/glapi/glthread.h:144:6:,
                 from main/mtypes.h:41,
                 from main/accum.h:41,
                 from main/attrib.c:28:
../../src/mesa/glapi/glthread.h:144:6: '#' is not followed by a macro parameter
 '#' is not followed by a macro parameter
In file included from ../../src/mesa/glapi/glapi.h:51,
                 from main/mtypes.h:41,
                 from main/api_loopback.c:35:
../../src/mesa/glapi/glthread.h:144:6: '#' is not followed by a macro parameter
In file included from main/api_arrayelt.h:30,
                 from main/api_arrayelt.c:30:
main/mtypes.h:3129: warning: comma at end of enumerator listIn file included
from main/api_noop.h:28,
                 from main/api_noop.c:27:
main/mtypes.h:3129: warning: comma at end of enumerator list

In file included from main/accum.h:41,
                 from main/api_exec.c:34:
main/mtypes.h:3129: warning: comma at end of enumerator listIn file included
from main/accum.h:41,
                 from main/accum.c:26:
main/mtypes.h:3129: warning: comma at end of enumerator list

In file included from main/api_validate.h:31,
                 from main/api_validate.c:26:
main/mtypes.h:3129: warning: comma at end of enumerator list
In file included from main/accum.h:41,
                 from main/attrib.c:28:
main/mtypes.h:3129: warning: comma at end of enumerator list
In file included from main/context.h:53,
                 from main/arrayobj.c:45:
main/mtypes.h:3129: warning: comma at end of enumerator list
In file included from main/api_loopback.c:35:
main/mtypes.h:3129: warning: comma at end of enumerator list
make[3]: *** [main/accum.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [main/api_validate.o] Error 1
make[3]: *** [main/arrayobj.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/gpfs/gpfs0/home/matthb2/mesa_git/mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/gpfs/gpfs0/home/matthb2/mesa_git/mesa'
make: *** [bluegene-osmesa] Error 2



That said, if I manually feed this code to the same gcc that mesa is using I
get the expected results:
> cat test.c
#if defined(__blrts__)
#error __blrts__
#endif
#if (defined(__blrts) && !defined(blah) && !defined(_GNU_SOURCE)) 
#error defined
#else
#if defined(_GNU_SOURCE)
#warning _GNU_SOURCE
#endif
#endif
#ifdef __blrts
#error __blrts
#endif

/bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc test.c 
test.c:2:2: #error __blrts__
test.c:8:2: warning: #warning _GNU_SOURCE
test.c:12:2: #error __blrts

I can ask around with a few of the other Bluegene users later if you don't see
some obvious reason why this should be. 

Thanks for looking into this so quickly!


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to