This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Latest GCC fails to build glibc


A recent change to GCC (Fix to PR middle-end/66110) has caused glibc to
fail to build.  When compiling the latest glibc with the latest GCC I
get the error below.  I don't know if this is a GCC problem or a glibc
problem.  I notice that when Richard checked this in he also added the
use of -Wno-strict-aliasing to the compilation of one of the GCC files.
Maybe we need the same thing when compiling memstream.c?

Steve Ellcey
sellcey@imgtec.com


In file included from memstream.c:18:0:
memstream.c: In function 'open_memstream':
memstream.c:92:22: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
   _IO_JUMPS ((struct _IO_FILE_plus *) &new_f->fp._sf._sbf) = &_IO_mem_jumps;
                      ^
libioP.h:107:26: note: in definition of macro '_IO_JUMPS'
 #define _IO_JUMPS(THIS) (THIS)->vtable
                          ^
cc1: all warnings being treated as errors
make[2]: *** [/scratch/sellcey/repos/test_deja/obj-mips-mti-linux-gnu/glibc/obj_default/libio/memstream.o] Error 1

Steve Ellcey
sellcey@imgtec.com


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