vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I need to build a 64 bit application from a lot of C++ source files. I'm currently using g++ 4.1.1 on AIX 5.2, which I downloaded as binaries from UCLA. In 32 bit mode everything works fine, but 64 bit mode does not work, because the package does not include 64 bit C++ runtime libraries. (Exactly the same problem was reported in this group under the subject "Link problems to stdc++ lib on AIX 5.2 with g+ + 4.1.1 in 64 bit mode", but without a solution) I tried using the 64 bit libraries from the AIX 5.3 package from UCLA, but this works only for the most simple C++ programs. As soon as I instantiate an fstream for example, the linker complains about an undefined symbol that should be in /usr/ccs/lib/libc.a (symbol __fd_poll). It looks like the 5.3 c++ libraries are not compatible with the 5.2 c libraries (which is not really a surprise). So any pointer to a compiled package of 64 bit C++ standard libraries for AIX 5.2 would be very (very!) helpful. I'm still not desperate enough to try and compile the libraries myself. But if I have to, is there a way to build the libraries only? As far as I understand the build process, it builds the complete package, including the compiler itself, which is not necessary for me, as I already have a perfectly working compiler. Thanks Michael |
| |||
| On Jun 22, 1:37 pm, "Michael H." <aixrepair...@yahoo.de> wrote: > Hi, > > I need to build a 64 bit application from a lot of C++ source files. > I'm currently using g++ 4.1.1 on AIX 5.2, which I downloaded as > binaries from UCLA. In 32 bit mode everything works fine, but 64 bit > mode does not work, because the package does not include 64 bit C++ > runtime libraries. (Exactly the same problem was reported in this > group under the subject "Link problems to stdc++ lib on AIX 5.2 with g+ > + 4.1.1 in 64 bit mode", but without a solution) > > I tried using the 64 bit libraries from the AIX 5.3 package from UCLA, > but this works only for the most simple C++ programs. As soon as I > instantiate an fstream for example, the linker complains about an > undefined symbol that should be in /usr/ccs/lib/libc.a (symbol > __fd_poll). It looks like the 5.3 c++ libraries are not compatible > with the 5.2 c libraries (which is not really a surprise). So any > pointer to a compiled package of 64 bit C++ standard libraries for AIX > 5.2 would be very (very!) helpful. > > I'm still not desperate enough to try and compile the libraries > myself. But if I have to, is there a way to build the libraries only? > As far as I understand the build process, it builds the complete > package, including the compiler itself, which is not necessary for me, > as I already have a perfectly working compiler. > > Thanks > Michael Why not get it from IBM? http://www-03.ibm.com/servers/aix/pr.../download.html --S |
| |||
| On Jun 22, 10:35 pm, smallpond <smallp...@juno.com> wrote: > > Why not get it from IBM?http://www-03.ibm.com/servers/aix/pr.../download.html > Thanks for your answer and link. I'd love to get it from IBM, but following your link I find only version 4.0.0 of the gcc/g++ package and the libraries. I need version 4.1.1. Am I missing something? Michael |
| |||
| Michael H. wrote: > On Jun 22, 10:35 pm, smallpond <smallp...@juno.com> wrote: >> Why not get it from IBM?http://www-03.ibm.com/servers/aix/pr.../download.html >> > Thanks for your answer and link. > > I'd love to get it from IBM, but following your link I find only > version 4.0.0 of the gcc/g++ package and the libraries. I need version > 4.1.1. Am I missing something? > > Michael > It's been our experience that the 4.0.0 package from IBM is broken. the C++ std lib does not export many of the STL symbols - causing link errors. |
| |||
| On Jun 24, 5:19 pm, Larry Smith <lsm...@nospam.com> wrote: > > It's been our experience that the 4.0.0 package from IBM > is broken. the C++ std lib does not export many of the > STL symbols - causing link errors. Thanks for the information, as I was considering to install 4.0.0 from IBM instead of the current 4.1.1. The 4.0.0 package from IBM does include a 64 bit C++ std lib, but a broken one won't help me a bit ... Do you have any idea where to find compiled 64 bit libraries for gcc/g+ + 4.1.1 and AIX 5.2? Thanks Michael |
| |||
| On Jun 24, 11:42 am, "Michael H." <aixrepair...@yahoo.de> wrote: > Do you have any idea where to find compiled 64 bit libraries for gcc/g+ > + 4.1.1 and AIX 5.2? IBM allows you to try xlcpp for 60 days free. How about downloading it and then building gcc yourself? Not nearly as easy and downloading precompiled, but if it becomes your only option here's a link for you: http://www-306.ibm.com/software/awdtools/xlcpp/ -- RR |
| |||
| On 25 Jun., 06:45, RR <oss...@gmail.com> wrote: > On Jun 24, 11:42 am, "Michael H." <aixrepair...@yahoo.de> wrote: > > IBM allows you to try xlcpp for 60 days free. How about downloading it > and then building gcc yourself? Not nearly as easy and downloading > precompiled, but if it becomes your only option here's a link for you: > > http://www-306.ibm.com/software/awdtools/xlcpp/ > Thank you for your suggestion. As I wrote I already have a working compiler (gcc/g++ 4.1.1), so I don't think that I need another one to build the libraries, or can't I build the libraries with gcc itself? Btw: I already tried to build the compiler and libraries, but ran into compile errors (see my post "Error compiling gcc/g++ 4.1.1 on AIX 5.2" in this group). Michael |
| |||
| On 25 Jun., 09:08, "Michael H." <aixrepair...@yahoo.de> wrote: > Thank you for your suggestion. As I wrote I already have a working > compiler (gcc/g++ 4.1.1), so I don't think that I need another one to > build the libraries, or can't I build the libraries with gcc itself? > I succeded in building the libraries myself. It wasn't too difficult after all, just run configure with parameters --disable-nls --disable- bootstrap --enable-languages=c,c++ and without --disable-aix64 and the libraries get built without bootstrapping the compiler. Important: use bash als CONFIG_SHELL (export CONFIG_SHELL=/usr/local/bin/bash), otherwise the build runs forever. Michael |
| |||
| On Jun 24, 9:39 am, "Michael H." <aixrepair...@yahoo.de> wrote: > On Jun 22, 10:35 pm, smallpond <smallp...@juno.com> wrote: > > > Why not get it from IBM?http://www-03.ibm.com/servers/aix/pr.../download.html > > Thanks for your answer and link. > > I'd love to get it from IBM, but following your link I find only > version 4.0.0 of the gcc/g++ package and the libraries. I need version > 4.1.1. Am I missing something? > > Michael How about pdslib? http://aixpdslib.seas.ucla.edu/packages/gcc.html |
| ||||
| On 27 Jun., 00:12, smallpond <smallp...@juno.com> wrote: > > How about pdslib?http://aixpdslib.seas.ucla.edu/packages/gcc.html Thanks for your reply. Your link leads to the UCLA site I got the binaries from in the first place (see my first post). Their package for gcc 4.1.1 on AIX 5.2 does not include 64 bit c++ libraries. In the meantime I was able to build the missing libraries from the source (see post #8). Michael |