[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Build gcc-3.4 on Sarge fails with "No rule to make target `gnatlib-shared'"



Hi,

I've been supplied with a C++ binary that I'd like to be able to run on my Sarge system. As I understand it was built on a recent Redhat derivative with a GCC >= 3.4. I also understand that this is not compatible with Sarge and the application won't run (which it won't, complains /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.4' not found).

In order to make it run, I figured I may be able to rebuild the package gcc-3.4 with GCC 3.4 on Sarge, install the packages into /usr/local, then run my binary with

$ LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH ./runme

But before I can test this theory, I need to be able to build the package. I receive the build output below.

Not being very experienced with compiler versions and shared libs, I have a couple of questions:

 1. Does the above approach sound logical, or am I wasting my time?
 2. Does anyone know how I can resolve the build error below?
3. If I can't make this work, which branch of Debian has compatible libraries for C++ applications build with G++ >= 3.4 - testing or unstable? Neither?

Build output:
# In 3.3, the Ada part of GCC does not support parallel builds,
# don't pass the \ parameter from the make command lines.
# Build the static and shared libraries
rm -f /var/local/debian-builds/gcc-3.4-3.4.3/build/gcc/ada/rts/*.{o,ali}
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/var/local/debian-builds/gcc-3.4-3.4.3/build/gcc:/var/local/debian-builds/gcc-3.4-3.4.3/build/gcc/ada/rts \
PATH=/var/local/debian-builds/gcc-3.4-3.4.3/bin:$PATH \
  /usr/bin/make -C /var/local/debian-builds/gcc-3.4-3.4.3/build/gcc gnatlib-shared \
        LIBRARY_VERSION=3.4
make[2]: Entering directory `/var/local/debian-builds/gcc-3.4-3.4.3/build/gcc'
../../src/gcc/p/Make-lang.in:725: warning: overriding commands for target `p/version.o'
../../src/gcc/p/Make-lang.in:719: warning: ignoring old commands for target `p/version.o'
make[2]: *** No rule to make target `gnatlib-shared'.  Stop.
make[2]: Leaving directory `/var/local/debian-builds/gcc-3.4-3.4.3/build/gcc'
make[1]: *** [stamps/05-build-stamp] Error 2
make[1]: Leaving directory `/var/local/debian-builds/gcc-3.4-3.4.3'
make: *** [stamps/05-build-stamp] Error 2

Thanks in advance.

--
Lucas



Reply to: