From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7645 invoked by alias); 15 Oct 2011 09:41:32 -0000 Received: (qmail 7633 invoked by uid 22791); 15 Oct 2011 09:41:31 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_IB X-Spam-Check-By: sourceware.org Received: from rayleigh.systella.fr (HELO rayleigh.systella.fr) (213.41.184.253) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Oct 2011 09:41:17 +0000 Received: from [192.168.0.4] (bertrand@cauchy.systella.fr [192.168.0.4]) (authenticated bits=0) by rayleigh.systella.fr (8.14.4/8.14.4/Debian-2) with ESMTP id p9F9f8uD013572 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for ; Sat, 15 Oct 2011 11:41:09 +0200 Message-ID: <4E995534.6040903@systella.fr> Date: Sat, 15 Oct 2011 09:41:00 -0000 From: BERTRAND Joel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.19) Gecko/20110929 Iceape/2.0.14 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Build a cross compiler for Android target (arm) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00119.txt.bz2 Hello, I'm trying to build a cross compiler for Android target as I want to obtain a Fortran compiler. I have downloaded gcc-4.6.1 sources and configured build tree with : $ ../gcc-4.6.1/configure --prefix=/home/bertrand/android/ndk/compilers --disable-libquadmath --target=arm-android-eabi --with-gnu-as --with-gnu-ld --enable-languages=c,c++,fortran --with-mpfr=/home/bertrand/android/ndk/compilers --with-gmp=/home/bertrand/android/ndk/compilers --with-mpc=/home/bertrand/android/ndk/compilers --disable-libssp --enable-threads --disable-nls --disable-libgomp --disable-shared --disable-tls --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --with-sysroot=/home/bertrand/android/ndk/sysroot/ --host=x86_64-unknown-linux-gnu Of course, I have installed android ndk to have sysroot. Build process stops with : checking whether the /home/bertrand/android/ndk/compilers/gcc-build/./gcc/xgcc -B/home/bertrand/android/ndk/compilers/gcc-build/./gcc/ -B/home/bertrand/android/ndk/compilers/arm-android-eabi/bin/ -B/home/bertrand/android/ndk/compilers/arm-android-eabi/lib/ -isystem /home/bertrand/android/ndk/compilers/arm-android-eabi/include -isystem /home/bertrand/android/ndk/compilers/arm-android-eabi/sys-include linker (/home/bertrand/android/ndk/compilers/gcc-build/./gcc/collect-ld) supports shared libraries... yes checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libstdc++-v3] Erreur 1 make[1]: quittant le répertoire « /home/bertrand/android/android-ndk-r6b/compilers/gcc-build » make: *** [all] Erreur 2 Faulty config.log contains : configure:9038: checking whether the /home/bertrand/android/ndk/compilers/gcc-build/./gcc/xgcc -B/home/bertrand/android/ndk/compilers/gcc-build/./gcc/ -B/home/bertrand/android/ndk/compilers/arm-android-eabi/bin/ -B/home/bertrand/android/ndk/compilers/arm-android-eabi/lib/ -isystem /home/bertrand/android/ndk/compilers/arm-android-eabi/include -isystem /home/bertrand/android/ndk/compilers/arm-android-eabi/sys-include linker (/home/bertrand/android/ndk/compilers/gcc-build/./gcc/collect-ld) supports shared libraries configure:10118: result: yes configure:10363: checking dynamic linker characteristics configure:11039: result: no configure:11146: checking how to hardcode library paths into programs configure:11171: result: immediate configure:11268: checking for shl_load configure:11268: error: Link tests are not allowed after GCC_NO_EXECUTABLES. I have found several posts with google, but no one gives me a solution. If I add --disable-libstdc__-v3 from configure command line, I obtain running C and Fortran compilers, but C++ compiler is not able to compile any program that uses standard libc++. Any idea ? Regards, JKB