Struggling with Solaris build

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 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 <linker-type>"sun" <compileflags>"-m64" <linkflags>"-Wl,64" <instruction-set>"v9" ; 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. Sean. -- It's a conical sort of effort

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

On Fri, May 23, 2008 at 4:59 PM, Vladimir Prus
Sean Johnston wrote:
... wrong ELF class: ELFCLASS64
What is the exact error message, and what is the command that produces this error?
That was at the link stage.
<linker-type>"sun"
I'm surprised that quotes work here
Seem to work ok. Too much XML I guess :)
I'd suggest changing user-config.jam to:
using gcc : : : <linker-type>sun ;
and building as:
bjam address-model=64 instruction-set=v9
Thankyou, that's perfect and it now builds fine. For some reason I didn't manage to work out that the address-model and instruction-set options went on the command line to bjam. Probably due to not running bjam directly and only via the Makefile. Hence trying to put the stuff into user-config.jam. Sean. -- It's a conical sort of effort

Sean Johnston wrote:
On Fri, May 23, 2008 at 4:59 PM, Vladimir Prus
wrote: Sean Johnston wrote:
... wrong ELF class: ELFCLASS64
What is the exact error message, and what is the command that produces this error?
That was at the link stage.
I'm afraid this is not the answer to my questions above :-) But anyway.
<linker-type>"sun"
I'm surprised that quotes work here
Seem to work ok. Too much XML I guess :)
I'd suggest changing user-config.jam to:
using gcc : : : <linker-type>sun ;
and building as:
bjam address-model=64 instruction-set=v9
Thankyou, that's perfect and it now builds fine.
For some reason I didn't manage to work out that the address-model and instruction-set options went on the command line to bjam. Probably due to not running bjam directly and only via the Makefile. Hence trying to put the stuff into user-config.jam.
configure/make appears to be constant source of confusion whenever any non-standard things are required. I'm planning to implement some simpler solution, for 1.36. - Volodya
participants (2)
-
Sean Johnston
-
Vladimir Prus