Subject: bug#17694: closed (Re: bug#17694: Less confident about this report)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 04 Jun 2014 20:50:04 +0000

Your bug report

#17694: coreutils build is broken on Maverics (MacOSX v10.9)

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
17694: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17694
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#17694: Less confident about this report
From: Paul Eggert <[email-masked]>
To: Robin Mills <[email-masked]>, [email-masked]
Date: Wed, 04 Jun 2014 13:49:10 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

On 06/04/2014 01:00 PM, Robin Mills wrote:
> Let's close this as “Not a bug: unable to reproduce”.

Thanks, closed.

Subject: coreutils build is broken on Maverics (MacOSX v10.9)
From: Robin Mills <[email-masked]>
To: [email-masked]
Date: Wed, 4 Jun 2014 10:54:40 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Coreutils is not building on Mavericks.  He complains about the architecture while linking libver.a to chroot (and every utility).

Workaround:
$ cd ~/gnu/coreutils/coreutils-8.22
$ arch="-arch x86_64" 
$ ./configure CFLAGS="$arch" LDFLAGS="$arch" CXXFLAGS="$arch"
$ make        CFLAGS="$arch" LDFLAGS="$arch" CXXFLAGS="$arch"
… fails after compiling when linking chroot.  Complains about libver.a
$ cp src/version.a src/libver.a       # nice little tweak
$ make        CFLAGS="$arch" LDFLAGS="$arch" CXXFLAGS="$arch"
$ sudo make install

Fix:
I haven’t investigate the “proper” fix.  The work around is sufficient for my purposes.

My setup: 
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.9.3
BuildVersion:	13D65

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix

$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-236.4
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m armv7m armv7em
LTO support using: LLVM version 3.4svn

Robin Mills
http://clanmills.com