[CLN-list] Re: (64-bit) CLN on OS X
Ron Garret
ron at flownet.com
Sun Jan 27 20:11:22 CET 2008
On Jan 27, 2008, at 7:32 AM, Richard B. Kreckel wrote:
> Ron Garret wrote:
>> On Jan 23, 2008, at 9:09 AM, Alexei Sheplyakov wrote:
>>> On Wed, Jan 23, 2008 at 08:23:46AM -0800, Ron Garret wrote:
>>>
>>>> Well, x86_64-apple-darwin doesn't work either, but it's a different
>>>> error this time, so maybe this is progress:
>>> [skipped the error messages]
>>>
>>> I'm afraid it is not. Configure got confused in another way. For
>>> some reason
>>> it decided to use plain g++ instead of x86_64-apple-darwin
>>> (autoconf expects
>>> it to produce 64-bit code, i.e. even without -m64 switch). But g++
>>> generates
>>> 32-bit code, while some configure-generated headers are intended
>>> for 64-bit
>>> one. So, the next incantation to try is
>>>
>>> ./configure --host=x86_64-apple-darwin --build=x86_64-apple-darwin
>>> CXXFLAGS='-O -m64' CFLAGS='-O -m64'
>>>
>>> Hope this *really* helps,
>>>
>> Almost. Needed to add LDFLAGS=-m64. Then it worked. Woohoo!
>
> Woohoo!
>
> That leaves me wonder if there's something to fix to make it work
> better next time someone gives it a try. Does anyone know? Frankly,
> I'm lost.
There's a spirited discussion about that very topic underway on the
bug-gnulib list. The issue is still unresolved.
In the meantime, I would suggest adding some verbiage to the INSTALL
file. (While we're at it, it might be good to figure out how to build
a fat binary. I've never done it before so I don't have a clue. Do
you have to build the whole thing twice? Is there a -m32/64 flag?)
rg
More information about the CLN-list
mailing list