discuss-gnustep
[Top][All Lists]
Advanced

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

Re: gcc problem


From: Andreas Höschler
Subject: Re: gcc problem
Date: Wed, 2 Sep 2009 15:32:33 +0200

Hi all,

I am on Solaris x86 so this will probably be ac_cv_c_bigendian=no, but

Well, building gcc from scratch on a non-GNU/Linux system needs a lot
of tweaking and configuring of some "required tools and files". I have
invested several months to build a completely working cross-toolchain
with Obj-C, Linux headers and glibc with NPTL on MacOSX/Darwin.

So it seems. I tried a bunch of gcc 4.x.x versions on my Solaris machine in the meanwhile. Not one was successful. With gcc 4.1.2 I get

Adding multilib support to Makefile in ../../../libstdc++-v3
multidirs=amd64
with_multisubdir=
Running configure in multilib subdirs amd64
pwd: /usr/share/src/gcc-4.1.2/objdir/i386-pc-solaris2.10/libstdc++-v3
Running configure in multilib subdir amd64
pwd: /usr/share/src/gcc-4.1.2/objdir/i386-pc-solaris2.10
configure: loading cache ./config.cache
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... /usr/share/src/gcc-4.1.2/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for i386-pc-solaris2.10-gcc... /usr/share/src/gcc-4.1.2/objdir/./gcc/xgcc -B/usr/share/src/gcc-4.1.2/objdir/./gcc/ -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib/ -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-pc-solaris2.10/sys-include -m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/usr/share/src/gcc-4.1.2/objdir'
make: *** [all] Error 2

I am using

        cd /opt/temp
        gunzip libintl-3.4.0-sol10-x86-local.gz
        pkgadd -d libintl-3.4.0-sol10-x86-local

        cd /usr/src
        gunzip gcc-4.1.2.tar.gz
        gtar xvf gcc-4.1.2.tar
        cd gcc-4.1.2
        mkdir objdir
        cd objdir
../configure --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --disable-nls --enable-languages=c,c++,objc
        make

and have no idea, what this "cross compile" thing means! :-(

Any idea?

Thanks,

  Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]