public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/30926]  New: undef prepocessor directive ignored ?
@ 2007-02-22 16:37 maxim_m at gmx dot net
  2007-02-22 17:29 ` [Bug preprocessor/30926] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: maxim_m at gmx dot net @ 2007-02-22 16:37 UTC (permalink / raw)
  To: gcc-bugs

trying to build cvs glibc as per instructions at cross-lfs.org's sysroot
branch.

with recent versions of mainline trunk(statically linked, no threads build) i
get build errors like:

../sysdeps/ieee754/dbl-64/s_signbit.c:27: error: redefinition of '__signbit'
../sysdeps/x86_64/fpu/bits/mathinline.h:43: error: previous definition of
'__sig              nbit' was here

it doesn't happen with 4.1

the command line was:
x86_64-maxxcorp-linux-gnu-gcc ../sysdeps/ieee754/dbl-64/s_signbit.c -c
-std=gnu99 -O2 -Wall -Winline -Wwrite-strings -combine -fmerge-all-constants
-m64 -march=athlon64 -save-temps -Wstrict-prototypes -Wno-uninitialized
-D__NO_MATH_INLINES -D __LIBC_INTERNAL_MATH_INLINES -I../include
-I/mnt/lfs/sources/glibc-build/math -I /mnt/lfs/sources/glibc-build
-I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64
-I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64
-I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I.. -I../libio -I.
-nostdinc -isystem
/mnt/lfs/cross-tools/lib/gcc/x86_64-maxxcorp-linux-gnu/4.3.0/include -isystem
/mnt/lfs/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h      
-o /mnt/lfs/sources/glibc-build/math/s_signbit.o -MD -MP -MF
/mnt/lfs/sources/glibc-build/math/s_signbit.o.dt -MT
/mnt/lfs/sources/glibc-build/math/s_signbit.o


-- 
           Summary: undef prepocessor directive ignored ?
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: maxim_m at gmx dot net
 GCC build triplet: x86_64-cross-linux-gnu
  GCC host triplet: x86_64-maxxcorp-linux-gnu
GCC target triplet: x86_64-maxxcorp-linux-gnu


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug preprocessor/30926] undef prepocessor directive ignored ?
  2007-02-22 16:37 [Bug preprocessor/30926] New: undef prepocessor directive ignored ? maxim_m at gmx dot net
@ 2007-02-22 17:29 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-22 17:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-02-22 17:29 -------
__signbit is not a macro so it cannot be undefined.

Also this is because "extern inline" changed meaning for -std=c99/-std=gnu99 to
be the C99 meaning instead of what GNU C decided it ment.

You need to use a newer version of glibc which has this fix in it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-22 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 16:37 [Bug preprocessor/30926] New: undef prepocessor directive ignored ? maxim_m at gmx dot net
2007-02-22 17:29 ` [Bug preprocessor/30926] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).