Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling 64 bit python - using wrong stdlibc++

Reply
Thread Tools

Compiling 64 bit python - using wrong stdlibc++

 
 
John Ky
Guest
Posts: n/a
 
      11-26-2003
How do get python to build with the 64-bit version of stdlibc++?

For instance, I tried this:

export CC="gcc -mcpu=v9 -m64 -D_LARGEFILE64_SOURCE=1"
export LDFLAGS='-mcpu=v9 -m64'
export LDDFLAGS='-mcpu=v9 -m64 -G'
../configure --disable-ipv6 --prefix="$PWD/../local"
make

And it compiles, but fails to link with /usr/local/lib/stdlibc++.so.5
because it is the 32-bit version.

The 64-bit version, I believe is at /usr/local/lib/sparcv9/stdlibc++.so.5

Thanks

-John


 
Reply With Quote
 
 
 
 
John Ky
Guest
Posts: n/a
 
      11-26-2003
> And it compiles, but fails to link with /usr/local/lib/stdlibc++.so.5
> because it is the 32-bit version.


The exact error message is:

ld.so.1: ./python: fatal: /usr/local/lib//libstdc++.so.5: wrong ELF class:
ELFCLASS32

Thanks

-John


 
Reply With Quote
 
 
 
 
John Ky
Guest
Posts: n/a
 
      11-26-2003
I just released that it isn't the linking process that's throwing the
error message. It's that near the end of the build process, the
build tries to run python and it can't because my
$LD_LIBRARY_PATH is pointing to the 32-bit libraries.

The solution can't be to change this environment variable right?

How do you run 32-bit and 64-bit python side by side?

"John Ky" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> > And it compiles, but fails to link with /usr/local/lib/stdlibc++.so.5
> > because it is the 32-bit version.

>
> The exact error message is:
>
> ld.so.1: ./python: fatal: /usr/local/lib//libstdc++.so.5: wrong ELF class:
> ELFCLASS32
>
> Thanks
>
> -John



 
Reply With Quote
 
Martin v. =?iso-8859-15?q?L=F6wis?=
Guest
Posts: n/a
 
      11-26-2003
"John Ky" <(E-Mail Removed)> writes:

> The solution can't be to change this environment variable right?


If it helps, why not?

> How do you run 32-bit and 64-bit python side by side?


Running them side-by-side is possible by giving different --prefix
options to configure. However, that is not your problem: you have
problems *building* them side-by-side.

I recommend that you don't compile Python with a C++ compiler, i.e. by
giving --without-cxx to configure. Then the problem of linking
libstdc++ goes away.

Regards,
Martin
 
Reply With Quote
 
John Ky
Guest
Posts: n/a
 
      11-28-2003
> I recommend that you don't compile Python with a C++ compiler, i.e.
> by giving --without-cxx to configure. Then the problem of linking
> libstdc++ goes away.


I still need to setup LD_LIBRARY_PATH because it needs other
libraries besides libstdc++. People are telling me I shouldn't need to
do this. Maybe my box has a perculiar setup.

I'm taking your advice anyway because g++ is hopelessly slow and
anything that speeds up the build process is welcome.

Thanks

-John


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the point of having 16 bit colour if a computer monitor can only display 8 bit colour? How do you edit 16 bit colour when you can only see 8 bit? Scotius Digital Photography 6 07-13-2010 03:33 AM
Compiling and running 32-bit Python on 64-bit server? Mikko Ohtamaa Python 2 02-26-2010 12:10 AM
using 32-bit flash java with 64 bit IE on a 64 bit system BP Windows 64bit 2 12-19-2008 10:59 PM
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit, Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new ! vvcd Computer Support 0 09-17-2004 08:15 PM
64 bit - Windows Liberty 64bit, Windows Limited Edition 64 Bit,Microsoft SQL Server 2000 Developer Edition 64 Bit, IBM DB2 64 bit - new! Ionizer Computer Support 1 01-01-2004 07:27 PM



Advertisments