Boost logo

Boost Users :

From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-05-23 11:59:04


Sean Johnston wrote:

> I'm struggling to get Boost built on a Solaris box here. Initially I was
> stuck on compilation errors due to v8plus issues. After some googling and
> trial and error I worked out what to put in user-config.jam to fix that.
> However, I'm now struggling with the following error:
>
> ... wrong ELF class: ELFCLASS64

What is the exact error message, and what is the command that produces this
error?

>
> I'm using gcc-3.2 and the Sun linker, trying to build a 64bit version of
> just the program_options and regex libraries. Here's what I've got for the
> user-config.jam:
>
> using gcc : : : <address-model>64

This one has no effect here.

> <linker-type>"sun"

I'm surprised that quotes work here

> <compileflags>"-m64"
> <linkflags>"-Wl,64"

I don't know about such option; I think passing -m64 to the linker might work better.

> <instruction-set>"v9" ;

This probably has no effect either.

>
> I'm basically flummoxed at this point, and my google-fu is failing to find
> me a solution. All the object files are 64bit so I don't know why it is
> complaining as it should be doing the link as 64bit.

I'd suggest changing user-config.jam to:

        using gcc : : : <linker-type>sun ;

and building as:

        bjam address-model=64 instruction-set=v9

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net