GNU bug report logs -
#13495
Compilation fails on Mac OS X 10.8.0
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 01/19/13 22:31, Paul Eggert wrote:
>
> Could you please try this:
>
> ./configure
> make clean
> make V=1
>
> I'm interested in the last (failing) command executed by the last 'make'.
> Suppose it is like this:
>
> gcc -std=gnu99 -I. -I./lib -Ilib ... -o lib/stpncpy.o lib/stpncpy.c
>
> Please send the relevant part of the preprocessed output for that command,
> i.e., the output of
>
> gcc -E -std=gnu99 -I. -I./lib -Ilib ... lib/stpncpy.c
>
The failed command was:
===
depbase=`echo lib/stpncpy.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'` ; \
gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src -g -O2 -MT lib/stpncpy.o -MD -MP -MF $depbase.Tpo -c -o lib/stpncpy.o lib/stpncpy.c
===
Attached is the output of:
===
gcc -E -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src -g -O2 -MT lib/stpncpy.o -MD -MP -MF lib/.deps/stpncpy.Tpo lib/stpncpy.c > stnpcpy.E.txt
===
I don't know exactly why, but it seems the definition of "stpncpy" is replaced
From:
===
char *
__stpncpy (char *dest, const char *src, size_t n)
{
char c;
char *s = dest;
===
To:
===
char *
((__builtin_object_size (char *dest, 0) != (size_t) -1) ? __builtin___stpncpy_chk (char *dest, const char *src, size_t n, __builtin_object_size (char *dest, 2 > 1)) : __inline_stpncpy_chk (char *dest, const char *src, size_t n))
{
char c;
char *s = dest;
===
Which looks like some macro expansion, but I couldn't find the declaration of this macro.
-gordon
[stpncpy.E.txt (text/plain, attachment)]
This bug report was last modified 12 years and 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.