From tom_gall at vnet.ibm.com Thu Mar 14 07:23:07 2002 From: tom_gall at vnet.ibm.com (Tom Gall) Date: Wed, 13 Mar 2002 14:23:07 -0600 Subject: How/where can I get 64-bit libraries such as libc References: Message-ID: <3C8FB52B.7E08B642@vnet.ibm.com> Hi Paul, Paul Roberts wrote: > > I am part of a group that is trying to port our code to 64bit linux. We > have SUSE SLES 7 64 bit kernel loaded on our powerpcs. I downloaded > gcc-2002-03-07-ppc64.diff. I followed the directions and it built and > installed without any problems. However whenever we try to use this gcc to > compile anything it fails when it tries to link to a 32 bit shared library > /lib/libc.so.6. Hmmm ok let me get this straight. You have a set of applications that you want to port. Do they need to run as 32 bit applications or 64 bit applications? Remember in ppc64 land, both 32 bit and 64 bit applications can run on the same machine side by side.... If 32, the tools are already on sles 7 and you don't need a thing, just use the gcc that is installed on the system. (Not the 64 bit gcc which at the moment is for kernel compiles) If you need 64 bit applications the way is a bit more cloudy as the early port of glibc to 64 bit is still underway. you might want to contact Steve Munroe up in rochester. He can give you the complete details on that. > # make > /usr/local/bin/gcc -c -o compileTest.o compileTest.c > /usr/local/bin/gcc -o compileTest compiletest.o > /lib/libc.so.6: could not read symbols: Invalid operation > collect2: ld returned 1 exit status > make : *** [compileTest] Error 1 > > I am assuming we need 64 bit equivalent to libc.so.6 and probably a bunch > of other 32 bit libraries. I am looking for direction on how to obtain > these libraries. We looked on the CDs from SUSE and did't see anything that > looked promising. Also we have a lot of C++ code that we would like to > port. It looks as if the gcc we downloaded is for C only. What is the > status of development for g++ on the power pc 64? regards, Tom -- Tom Gall - [embedded] [PPC64 | PPC32] Code Monkey Peace, Love & "Where's the ka-boom? There was Linux Technology Center supposed to be an earth http://www.ibm.com/linux/ltc/ shattering ka-boom!" (w) tom_gall at vnet.ibm.com -- Marvin Martian (w) 507-253-4558 (h) tgall at rochcivictheatre.org ** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/ From bergner at brule.borg.umn.edu Fri Mar 15 03:58:57 2002 From: bergner at brule.borg.umn.edu (Peter Bergner) Date: Thu, 14 Mar 2002 10:58:57 -0600 Subject: How/where can I get 64-bit libraries such as libc In-Reply-To: References: Message-ID: <20020314105857.B309447@brule.borg.umn.edu> Paul Roberts wrote: : I am part of a group that is trying to port our code to 64bit linux. We : have SUSE SLES 7 64 bit kernel loaded on our powerpcs. I downloaded : gcc-2002-03-07-ppc64.diff. I followed the directions and it built and : installed without any problems. However whenever we try to use this gcc to : compile anything it fails when it tries to link to a 32 bit shared library : /lib/libc.so.6. Yes, you cannot link 64-bit objects with 32-bit objects/libraries. As Tom mention in his note, does your application *really* need to run as a 64-bit application? On the PPC64 kernel, not only can you run PPC32 applications, they run with no performance loss because they're 32-bit applications. In fact, they may actually run faster as a 32-bit application than they would if they were built as a 64-bit application. When we (Steve Munroe and myself) get the 64-bit GLIBC work completed and it is being shipped in future distro releases, most programs will still continue to be ppc32 applications. The vision is that only programs that require big memory spaces like databases, JVM's and the like will be compiled as 64-bit applications. If you can live as a 32-bit application, then the installed gcc (/usr/bin/gcc on SLES-7) is the toolchain you want/need. : I am assuming we need 64 bit equivalent to libc.so.6 and probably a bunch : of other 32 bit libraries. I am looking for direction on how to obtain : these libraries. We looked on the CDs from SUSE and did't see anything that : looked promising. You won't find the 64-bit toolchain or any 64-bit libraries on SLES-7. : Also we have a lot of C++ code that we would like to port. It looks as : if the gcc we downloaded is for C only. What is the status of development : for g++ on the power pc 64? The reason you didn't get G++ built is that the build directions listed on www.linuxppc64.org have you specify the configure option "--enable-languages=c" when building GCC. If you want G++ too, you need to specify "--enable-languages=c,c++". However, to build G++, you need a 64-bit GLIBC which you don't have! That toolchain is really only meant to be used to build the PPC64 kernel which doesn't need GLIBC to be built. The state of the 64-bit toolchain on PPC64 is that we are still debugging some final bugs, cleaning up the code and trying to get the "OK" from IBM corporate lawyers to release our changes. Other than that, we have compiled many C and C++ programs successfully (eg, Apache, MySQL, X/Xlibs,...). If you *really* need your application built as a 64-bit app, look me up in BluePages and give me a ring. Peter -- Peter Bergner Linux PPC64 Kernel and GLIBC Development IBM Rochester, MN bergner at vnet.ibm.com ** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/