[CLN-list] Re: CLN on OS X

Ron Garret ron at flownet.com
Wed Jan 23 08:34:08 CET 2008


On Jan 22, 2008, at 10:49 PM, Alexei Sheplyakov wrote:

> Hello!
>
> On Tue, Jan 22, 2008 at 02:26:20PM -0800, Ron Garret wrote:
>> How do you force CLN to build in 64-bit mode?
>
> It's the default on my platform (GNU/Linux/amd64).
>
>> None of the "obvious"  things I tried worked (e.g.
>> ./configure --build=x86_64
>
> This "obvious" way is plain wrong. First, --build means:
>
> `--build=BUILD-TYPE'
>     the type of system on which the package is being configured and
>     compiled.
>
> So, setting this is pointless, unless you also set --host.

I tried that too.  No joy.

> Secondly, the value `x86_64' is wrong. It should be CPU-OS-VENDOR.
> On GNU/Linux/amd64 it's x86_64-linux-gnu (or something like that).

I tried x86_64-darwin-apple and x86_64-osx-apple.  Configure didn't  
like either one.

checking build system type... Invalid configuration `x86_64-osx- 
apple': machine `x86_64-osx-apple' not recognized
configure: error: /bin/sh ./autoconf/config.sub x86_64-osx-apple failed

checking build system type... Invalid configuration `x86_64-darwin- 
apple': machine `x86_64-darwin-apple' not recognized
configure: error: /bin/sh ./autoconf/config.sub x86_64-darwin-apple  
failed


>
>> CFLAGS=-m64  CXXFLAGS=-m64 ./configure
>
> This one should work.

That's what I thought.

> If not, set --host AND --build (host == build,
> otherwise autoconf will think you are cross compiling and will get
> it wrong). Unfortunately, I don't know that magic string for your OS.

That makes two of us then.

rg



More information about the CLN-list mailing list