On 11/25/14, Barry Kauler <[email protected]> wrote:
> Rene,
> I checked out rev 43395 yesterday, and I am doing a i686 compile.
>
> At stage 0, gcc fails with this in ERROR-LOG:
>
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/gcc/xgcc-wrapper
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/./gcc/xgcc
> -B/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/./gcc/
> -B/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/bin/
> -B/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/lib/
> -isystem
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/include
> -isystem
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/sys-include
>    -g -O2 -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
> -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -g
> -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fpic
> -mlong-double-80 -I. -I. -I../.././gcc -I../../../libgcc
> -I../../../libgcc/. -I../../../libgcc/../gcc
> -I../../../libgcc/../include  -DHAVE_CC_TLS  -DUSE_TLS -o
> unwind-sjlj.o -MT unwind-sjlj.o -MD -MP -MF unwind-sjlj.dep
> -fexceptions -c ../../../libgcc/unwind-sjlj.c -fvisibility=hidden
> -DHIDE_EXPORTS
> In file included from ./gthr-default.h:35:0,
>                  from ../../../libgcc/gthr.h:148,
>                  from ../../../libgcc/unwind-dw2-fde-dip.c:47:
> ./gthr-default.h:59:30: error: '__PTHREAD_SPINS' undeclared here (not
> in a function)
>  #define __GTHREAD_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER
>                               ^
> ../../../libgcc/unwind-dw2-fde.c:48:41: note: in expansion of macro
> '__GTHREAD_MUTEX_INIT'
>  static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
>                                          ^
> In file included from ../../../libgcc/unwind-dw2-fde-dip.c:89:0:
> ../../../libgcc/unwind-dw2-fde.c:48:1: warning: missing initializer
> for field '({anonymous})' of 'struct __pthread_mutex_s'
> [-Wmissing-field-initializers]
>  static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT;
>  ^
> In file included from /usr/include/i386-linux-gnu/sys/types.h:270:0,
>                  from ../../../libgcc/../gcc/tsystem.h:90,
>                  from ../../../libgcc/unwind-dw2-fde-dip.c:34:
> /usr/include/i386-linux-gnu/bits/pthreadtypes.h:122:5: note:
> '({anonymous})' declared here
>      };
>      ^
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/gcc/xgcc-wrapper
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/./gcc/xgcc
> -B/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/./gcc/
> -B/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/bin/
> -B/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/lib/
> -isystem
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/include
> -isystem
> /mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/build/wary6-9.0-trunk-wary6-x86-i686-linux/TOOLCHAIN/tools.cross/usr/i686-t2-linux-gnu/sys-include
>    -g -O2 -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
> -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -g
> -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fpic
> -mlong-double-80 -I. -I. -I../.././gcc -I../../../libgcc
> -I../../../libgcc/. -I../../../libgcc/../gcc
> -I../../../libgcc/../include  -DHAVE_CC_TLS  -DUSE_TLS -o unwind-c.o
> -MT unwind-c.o -MD -MP -MF unwind-c.dep -fexceptions -c
> ../../../libgcc/unwind-c.c -fvisibility=hidden -DHIDE_EXPORTS
> ../../../libgcc/static-object.mk:17: recipe for target
> 'unwind-dw2-fde-dip.o' failed
> make[2]: *** [unwind-dw2-fde-dip.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory
> '/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir/i686-t2-linux-gnu/libgcc'
> Makefile:10153: recipe for target 'all-target-libgcc' failed
> make[1]: *** [all-target-libgcc] Error 2
> make[1]: Leaving directory
> '/mnt/sda10/t2-project/t2-2015/t2-trunk-svn43395-24nov2014/src.gcc.wary6.20141125.092938.9624.puppypc29778/gcc-4.9.2/objdir'
> Makefile:840: recipe for target 'all' failed
> make: *** [all] Error 2
>
> I don't understand it. Do you know what the cause might be?
>

> Regards,
> Barry
>

Ha ha, I did something without any understanding whatsover, and gcc compiled!

>From the above, the file with the error, gthr-default.h, is a symlink
to gcc-4.9.2/libgcc/gthr-posix.h
The offending line is line 59:

#define __GTHREAD_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER

...well, I took a blind stab at it, just commented that line out.

gcc has now compiled, and T2 is racing ahead compiling more pkgs in stage 0.

The problem is, I don't understand what I have done. What is the best
permanent solution here? Should there be a patch to comment that line
out?
But this problem has presumably only happened with me on my system.

Regards,
Barry



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to