http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50386

             Bug #: 50386
           Summary: libgomp.h:87:5: error: unnamed struct/union that
                    defines no instances
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dang...@gcc.gnu.org
              Host: armv5tejl-unknown-linux-gnueabi
            Target: armv5tejl-unknown-linux-gnueabi
             Build: armv5tejl-unknown-linux-gnueabi


libtool: compile:  /home/dave/gnu/gcc/objdir/./gcc/xgcc
-B/home/dave/gnu/gcc/obj
dir/./gcc/
-B/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/bin/
 -B/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/sys-include
-DHAV
E_CONFIG_H -I. -I../../../gcc/libgomp -I../../../gcc/libgomp/config/linux/arm
-I
../../../gcc/libgomp/config/linux -I../../../gcc/libgomp/config/posix
-I../../..
/gcc/libgomp -Wall -Werror -pthread -ftls-model=initial-exec -g -O2 -MT
alloc.lo
 -MD -MP -MF .deps/alloc.Tpo -c ../../../gcc/libgomp/alloc.c  -fPIC -DPIC -o
.li
bs/alloc.o
In file included from ../../../gcc/libgomp/alloc.c:29:0:
../../../gcc/libgomp/libgomp.h:87:5: error: unnamed struct/union that defines
no
 instances [-Werror]
../../../gcc/libgomp/libgomp.h:94:5: error: unnamed struct/union that defines
no
 instances [-Werror]
../../../gcc/libgomp/libgomp.h:95:3: error: unnamed struct/union that defines
no
 instances [-Werror]
../../../gcc/libgomp/libgomp.h:146:3: error: unnamed struct/union that defines
n
o instances [-Werror]
../../../gcc/libgomp/libgomp.h:156:3: error: unnamed struct/union that defines
no instances [-Werror]
../../../gcc/libgomp/libgomp.h: In function 'gomp_work_share_init_done':
../../../gcc/libgomp/libgomp.h: In function 'gomp_work_share_init_done':
../../../gcc/libgomp/libgomp.h:502:47: error: 'struct gomp_work_share' has no
member named 'next_ws'
cc1: all warnings being treated as errors

Occurs in stage2 with

-bash-3.2$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: armv5tejl-unknown-linux-gnueabi
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,objc,obj-c++
--enable-checking=release --enable-shared --enable-threads --disable-multilib
--disable-libmudflap --disable-libssp --enable-symvers=gnu
--enable-__cxa_atexit --disable-libstdcxx-pch
--prefix=/home/dave/opt/gnu/gcc/gcc-4.7 --with-gmp=/home/dave/opt/gnu
--with-as=/home/dave/opt/gnu/bin/as --with-ld=/home/dave/opt/gnu/bin/ld
Thread model: posix
gcc version 4.7.0 20110912 (experimental) [trunk revision 178782] (GCC)

Reply via email to