comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: Ada on iOS ? Or Swift...
Date: Mon, 21 Dec 2015 12:25:29 -0800 (PST)
Date: 2015-12-21T12:25:29-08:00	[thread overview]
Message-ID: <db44dd70-c1da-4f6d-819d-5436e9afd946@googlegroups.com> (raw)
In-Reply-To: <0403159a-d186-48d2-bb2c-9021e10a41b9@googlegroups.com>

Ok, I hit the same problem I had building a cross compiler on Linux for macosx (I have the mac fs mounted using nfs, btw). I downloaded the prebuilt gcc-4.9.1 for yosemite that was posted recently and installed that in my PATH.

<command history>
mkdir gcc build-binutils build-gcc build-gmp build-mpfr build-mpc build-isl build-cloog

cd build-gmp
../gmp-5.1.2/configure --prefix=$HOME/opt/apple-gcc --disable-shared --enable-cxx
make -j4
make check
make install

cd ../build-mpfr/
../mpfr-3.1.2/configure --prefix=$HOME/opt/apple-gcc --disable-shared --with-gmp=$HOME/opt/apple-gcc
make -j4
make check
make install

cd ../build-mpc/
../mpc-1.0.2/configure --prefix=$HOME/opt/apple-gcc --disable-shared --with-gmp=$HOME/opt/apple-gcc --with-mpfr=$HOME/opt/apple-gcc
make -j4
make check
make install

cd ../build-isl/
../isl-0.12.2/configure --prefix=$HOME/opt/apple-gcc --disable-shared --with-gmp-prefix=$HOME/opt/apple-gcc
make -j4
make install
make check

cd ../build-cloog
../cloog-0.18.1/configure --prefix=$HOME/opt/apple-gcc --disable-shared --with-gmp-prefix=$HOME/opt/apple-gcc --with-isl-prefix=$HOME/opt/apple-gcc --with-bits=gmp
make -j4
make check
make install

cd ../build-binutils/
../binutils-2.25/configure --prefix=$HOME/opt/apple-gcc --target=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --with-build-sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/  --disable-nls --disable-shared
make -j4
make install

export PATH=$HOME/opt/apple-gcc/bin:$PATH

cd ../build-gcc/
../gcc-4.9.2/configure --prefix=$HOME/opt/apple-gcc --target=i686-apple-darwin10 --build=x86_64-apple-darwin14 --host=x86_64-apple-darwin14 --program-prefix=i686-apple-darwin10- --with-build-sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/ --enable-languages=c,c++,objc,obj-c++ --disable-nls --disable-shared --disable-multilib --with-gcc --with-gnu-as --with-gnu-ld --with-ppl=$HOME/opt/apple-gcc --disable-isl-version-check --disable-ppl-version-check --with-gmp=$HOME/opt/apple-gcc --with-mpfr=$HOME/opt/apple-gcc --with-mpc=$HOME/opt/apple-gcc --with-isl=$HOME/opt/apple-gcc
make -j4
</command history>

<error log>
Checking multilib configuration for libgcc...
mkdir i686-apple-darwin10
mkdir i686-apple-darwin10/libgcc
Configuring in i686-apple-darwin10/libgcc
configure: creating cache ./config.cache
checking build system type... x86_64-apple-darwin14
checking host system type... i686-apple-darwin10
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... awk
checking for i686-apple-darwin10-ar... /Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/ar
checking for i686-apple-darwin10-lipo... i686-apple-darwin10-lipo
checking for i686-apple-darwin10-nm... /Users/laguest/src/gcc/build-gcc/./gcc/nm
checking for i686-apple-darwin10-ranlib... /Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/ranlib
checking for i686-apple-darwin10-strip... /Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/strip
checking whether ln -s works... yes
checking for i686-apple-darwin10-gcc... /Users/laguest/src/gcc/build-gcc/./gcc/xgcc -B/Users/laguest/src/gcc/build-gcc/./gcc/ -B/Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/ -B/Users/laguest/opt/apple-gcc/i686-apple-darwin10/lib/ -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/include -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/sys-include --sysroot=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/  
checking for suffix of object files... configure: error: in `/Users/laguest/src/gcc/build-gcc/i686-apple-darwin10/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2
</error log>

The config.log doesn't really show much:

<config.log>
configure:3373: $? = 1
configure:3362: /Users/laguest/src/gcc/build-gcc/./gcc/xgcc -B/Users/laguest/src/gcc/build-gcc/./gcc/ -B/Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/ -B/Users/laguest/opt/apple-
gcc/i686-apple-darwin10/lib/ -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/include -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/sys-include --sysroot=/Developer
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/   -qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3373: $? = 1
configure:3389: /Users/laguest/src/gcc/build-gcc/./gcc/xgcc -B/Users/laguest/src/gcc/build-gcc/./gcc/ -B/Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/ -B/Users/laguest/opt/apple-
gcc/i686-apple-darwin10/lib/ -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/include -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/sys-include --sysroot=/Developer
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/   -o conftest -g -O2   conftest.c  >&5
Assembler messages:
Fatal error: invalid listing option `r'
configure:3392: $? = 1
configure:3580: checking for suffix of object files
configure:3602: /Users/laguest/src/gcc/build-gcc/./gcc/xgcc -B/Users/laguest/src/gcc/build-gcc/./gcc/ -B/Users/laguest/opt/apple-gcc/i686-apple-darwin10/bin/ -B/Users/laguest/opt/apple-
gcc/i686-apple-darwin10/lib/ -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/include -isystem /Users/laguest/opt/apple-gcc/i686-apple-darwin10/sys-include --sysroot=/Developer
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/   -c -g -O2  conftest.c >&5
Assembler messages:
Fatal error: invalid listing option `r'
configure:3606: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3620: error: in `/Users/laguest/src/gcc/build-gcc/i686-apple-darwin10/libgcc':
configure:3623: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
</config.log>

The above build was for building for the iPhoneSimulator.

I've no idea how to get past this.

Luke.


  reply	other threads:[~2015-12-21 20:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-19 11:04 Ada on iOS ? Or Swift v...@gmail.com
2015-12-19 13:39 ` Lucretia
2015-12-19 13:40   ` Lucretia
2015-12-20  2:16 ` David Botton
2015-12-20  4:23   ` Lucretia
2015-12-20  5:18     ` David Botton
2015-12-21 10:05   ` vincent.diemunsch
2015-12-21 11:05     ` Georg Bauhaus
2015-12-21 15:37       ` David Botton
2015-12-21 18:26     ` Lucretia
2015-12-21 20:25       ` Lucretia [this message]
2015-12-21 20:27         ` Lucretia
2015-12-22  8:10           ` Luke A. Guest
2015-12-22  9:19         ` Luke A. Guest
2015-12-22 17:27           ` Lucretia
2015-12-20  6:32 ` Who is promotion and advertising pratikg482629
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox