GNU bug report logs - #13495
Compilation fails on Mac OS X 10.8.0

Previous Next

Package: coreutils;

Reported by: Assaf Gordon <assafgordon <at> gmail.com>

Date: Fri, 18 Jan 2013 22:34:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: bug-gnulib <bug-gnulib <at> gnu.org>, 13495 <at> debbugs.gnu.org
Subject: bug#13495: Compilation fails on Mac OS X 10.8.0
Date: Fri, 25 Jan 2013 15:08:42 -0500
An ugly work-around:

"-O1" seems to overcome the messy macro expansion of stpncpy.

So either compile everything with CFLAGS="-g -O1",
Or compile everything with "-g -O0" until it fails, then compile two problematic objects with "-O1" and continue,
Or just compile the program of interest and ignore the rest.
Not ideal, but since my goal was to debug "rm", it suffices.

A better solution could be to modify the code and override the definition of stpncpy (but I'm not meddling with gnulib).


For completeness, the following works:
 $ ./configure CFLAGS="-g -O0"
 $ make
 ## will fail with unresolved "__strpncpy_chk"
 
 # Compile two objects with "-O1"
 $ rm -f src/ls.o src/src_ginstall-install.o
 $ make CFLAGS="-g -O1" src/ls.o src/src_ginstall-install.o

 # Compile the rest with "-O0"
 $ make




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.