Hello, maybe I can get help here. The question is about the compiler driver: /usr/bin/gcc-4.6. Please Cc: me since I'm not (yet) subscribed to this list. Thanks! -------- Forwarded Message -------- From: Svante Signell <svante.signell@xxxxxxxxx> Reply-to: svante.signell@xxxxxxxxx To: debian-ada@xxxxxxxxxxxxxxxx Subject: gcc-4.6/gnat-4.6 complier driver question Date: Thu, 22 Mar 2012 17:15:32 +0100 Hi, In addition to the runtime problems the installing the built debs on another computer and trying to compile an ADA program, the complier driver does not find gnat1. How to correct/workaround this issue? Thanks! Building Hurd box: gcc-4.6 -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 music123.adb -v Using built-in specs. COLLECT_GCC=gcc-4.6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-gnu/4.6/lto-wrapper Target: i486-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-3' --with-bugurl=file:///usr/share/doc/gnat-4.6/README.Bugs --enable-languages=c,ada --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-libstdcxx-time=yes --disable-libmudflap --enable-plugin --with-arch=i586 --with-tune=generic --enable-checking=release --build=i486-gnu --host=i486-gnu --target=i486-gnu Thread model: posix gcc version 4.6.2 (Debian 4.6.2-3) COLLECT_GCC_OPTIONS='-c' '-g' '-O2' '-fstack-protector' '--param' 'ssp-buffer-size=4' '-v' '-mtune=generic' '-march=i586' /usr/lib/gcc/i486-gnu/4.6/gnat1 -quiet -dumpbase music123.adb -auxbase music123 -O2 -fstack-protector -g -mtune=generic -march=i586 music123.adb --param ssp-buffer-size=4 -o /tmp/cchb2o0i.s COLLECT_GCC_OPTIONS='-c' '-g' '-O2' '-fstack-protector' '--param' 'ssp-buffer-size=4' '-v' '-mtune=generic' '-march=i586' as --32 -o music123.o /tmp/cchb2o0i.s COMPILER_PATH=/usr/lib/gcc/i486-gnu/4.6/:/usr/lib/gcc/i486-gnu/4.6/:/usr/lib/gcc/i486-gnu/:/usr/lib/gcc/i486-gnu/4.6/:/usr/lib/gcc/i486-gnu/ LIBRARY_PATH=/usr/lib/gcc/i486-gnu/4.6/:/usr/lib/gcc/i486-gnu/4.6/../../../i386-gnu/:/usr/lib/gcc/i486-gnu/4.6/../../../:/lib/i386-gnu/:/lib/:/usr/lib/i386-gnu/:/usr/lib/ COLLECT_GCC_OPTIONS='-c' '-g' '-O2' '-fstack-protector' '--param' 'ssp-buffer-size=4' '-v' '-mtune=generic' '-march=i586' New Hurd box: gcc-4.6 -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 music123.adb -v Using built-in specs. COLLECT_GCC=gcc-4.6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-gnu/4.6/lto-wrapper Target: i486-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-16 +hurd.1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --with-arch=i586 --with-tune=generic --enable-checking=release --build=i486-gnu --host=i486-gnu --target=i486-gnu Thread model: posix gcc version 4.6.2 (Debian 4.6.2-16+hurd.1) gcc-4.6: error: music123.adb: Ada compiler not installed on this system Doing the steps below manually works: /usr/lib/gcc/i486-gnu/4.6/gnat1 -quiet -dumpbase music123.adb -auxbase music123 -O2 -fstack-protector -g -mtune=generic -march=i586 music123.adb --param ssp-buffer-size=4 -o /tmp/cchb2o0i.s Linux: gcc-4.6 -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 music123.adb -v Using built-in specs. COLLECT_GCC=gcc-4.6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Debian 4.6.3-1) COLLECT_GCC_OPTIONS='-c' '-g' '-O2' '-fstack-protector' '--param' 'ssp-buffer-size=4' '-v' '-mtune=generic' '-march=x86-64' /usr/lib/gcc/x86_64-linux-gnu/4.6/gnat1 -quiet -dumpbase music123.adb -auxbase music123 -O2 -fstack-protector -g -mtune=generic -march=x86-64 music123.adb --param ssp-buffer-size=4 -o /tmp/cc1eGD4j.s COLLECT_GCC_OPTIONS='-c' '-g' '-O2' '-fstack-protector' '--param' 'ssp-buffer-size=4' '-v' '-mtune=generic' '-march=x86-64' as --64 -o music123.o /tmp/cc1eGD4j.s COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.6/:/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-c' '-g' '-O2' '-fstack-protector' '--param' 'ssp-buffer-size=4' '-v' '-mtune=generic' '-march=x86-64'