Build failure for 5.1.0-RC2 on Mac OS 10.8

Torbjorn Granlund tg at gmplib.org
Mon Dec 10 22:58:57 CET 2012


Marcin Gozdalik <gozdal at gmail.com> writes:

  When trying to build on Mac OS 10.8.2 I get:
  
  ld: in section __TEXT,__const reloc 0: X86_64_RELOC_SUBTRACTOR must have
  r_extern=1 for architecture x86_64
  collect2: ld returned 1 exit status
  
Is that all it says?  That's nothing to work with.

It might be another case of this:

http://gmplib.org/list-archives/gmp-discuss/2011-August/004699.html

Working around weird Mac OS X tool chain bugs is an never ending story.

Does anybody have an idea what to do for Mac OS X and this junp table?
If nothing else work, I suppose we could put really rudimentary code
ifdef DARWIN.  Of course that'd punish working and non-working Apple
tools.

(It is worth noticing that this file works just fine in the automated
GMP builds, see http://gmplib.org/devel/tm-date.html .  So some Mac OS X
tools do work properly in this respect.)

  $ gcc --version
  i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
  5658) (LLVM build 2336.11.00)
  Copyright (C) 2007 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  
  5.0.5 builds fine.

OK.

-- 
Torbjörn


More information about the gmp-bugs mailing list