Opened 17 years ago

Closed 15 years ago

#397 closed Support Requests (Fixed)

Boost on opteron AMD

Reported by: finte Owned by: René Rivera
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

Hello,

I need some help.

How can I build boost on solaris 10 opteron amd as a
64-bit libraries?
It's no problem to build bjam as 64-bit executables but
with boost I failed. 
Has anybody any ideas?

Change History (5)

comment:1 by redi, 17 years ago

Logged In: YES 
user_id=426241

What exactly failed?

What compiler are you using?

comment:2 by finte, 17 years ago

Logged In: YES 
user_id=1277410

I use gcc 3.4.3 (csl-sol210-3_4-branch+sol_rpath). This gcc
comes with solaris 10 as Sun Freeware.

I could build the boost libraries, no problem, but at the
end I have 32-bit libraries. I set the variable CFLAGS= -m64
- it doesn't works. I change the file user-config.jam and
add the following: using gcc : : /usr/sfw/bin/gcc
:<compileflags>-m64 <linkflags>-m64 ; - it doesn't works.
Then I made a new configure, setting the variable CXXFLAGS
and copy the new file user.hpp to .../boost/config/ - it
doesn't work. Always I got 32-bit libraries. What else
should I try?
If you need more infos, tell me. 

comment:3 by nobody, 17 years ago

Logged In: NO 

Hi,

we have a very similar problem here on a Red Hat Enterprise
Linux 3.0
Opteron Machine. The g++ is configured to produce 64-bit
binaries as
one would exspect, but when trying to build 32-bit objects
via the "-m32"
option, the boost build mechanism simply seems to ignore the
option
provided.
Interestingly one can provide this option to the configure
script but in it's
output (the user.hpp file) the option only appears as a comment.
It seems to get completely ignored in the subsequent build
and test
stages !

Is this true or am I missing some way to configure things here ?

Thanks in advance

Frank-Oliver Malisch

comment:4 by finte, 17 years ago

Logged In: YES 
user_id=1277410

Hi,

I solved my problem, but it's a quit and dirty solution. I
modified  the file ../tools/build/v1/gcc-tools.jam and added
the following lines: 
flags gcc CFLAGS : -m64 ;
flags gcc LINKFLAGS : -m64 ;

at the begining of the file, where other flags were set. 
After this modification I got 64-bit libraries. 
So this may help you.

comment:5 by René Rivera, 15 years ago

Status: assignedclosed
Logged In: YES 
user_id=33595
Originator: NO

This has been supported by asking to build the <architecture>x86/<address-model>64 variant. Specific CPU selection is also possible with the <instruction-set> feature. This same mechanism is supported int the upcoming 1.34 release also.
Note: See TracTickets for help on using tickets.