cygwin -> mips GCC_NO_EXECUTABLES error

Nye Liu nyet@mrv.com
Wed Sep 6 01:57:00 GMT 2006


i could not get glibc-2.4 to compile with the current nptl patch, same
problem (which --disable-multilib does not fix), and others (im using
ppc860 though).

i have only had success with glibc-2.3.6 and earlier.

also, the ports addon does not work for me if im using nptl...

try 2.3.6 w/o ports.

my other recommendation would be to avoid cygwin at all costs when trying
to initially build your first tool chain, in particular glibc.

just build a linux machine, get it working, then go to cygwin.

at worst, if you can get cygwin to build gcc (but not glibc), you can
then copy glibc binaries from your linux machine and call it a day.

for reference here is my powerpc-860-linux-gnu.crosstoolconfig.txt

AR=
BINUTILS_DIR=binutils-2.16.1
BINUTILS_EXTRA_CONFIG=
BUILD=i686-pc-linux-gnu
BUILD_DIR=/local/crosstool-build/crosstool-nptl/build/powerpc-860-linux-gnu/gcc-4.1.1-glibc-2.3.6
CC=
DEJAGNU=
EXTRA_TARGET_CFLAGS=
GCC_BUILD=
GCC_CORE_DIR=gcc-4.1.1
GCC_DIR=gcc-4.1.1
GCC_EXTRA_CONFIG=--with-cpu=860 --with-float=soft --enable-cxx-flags=-mcpu=860 --enable-cxx-flags=-msoft-float --disable-multilib --disable-libunwind-exceptions
GCC_HOST=
GCC_LANGUAGES=c,c++
GDB_DIR=gdb-6.4
GLIBC_ADDON_OPTIONS==nptl,
GLIBC_DIR=glibc-2.3.6
GLIBC_EXTRA_CC_ARGS=
GLIBC_EXTRA_CONFIG=--with-tls --with-__thread --without-fp
GLIBC_EXTRA_ENV=
JUST_DOWNLOAD=
KERNELCONFIG=
LINUX_DIR=
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
NO_DOWNLOAD=
PREFIX=/local/crosstool/gcc-4.1.1-glibc-2.3.6/powerpc-860-linux-gnu
PTXDIST_DIR=
SHARED_MODE=--enable-shared
SRC_DIR=/local/crosstool-build/crosstool-nptl/build/powerpc-860-linux-gnu/gcc-4.1.1-glibc-2.3.6
TARBALLS_DIR=/local/crosstool-build/downloads
TARGET=powerpc-860-linux-gnu
TARGET_CFLAGS=-O
TOP_DIR=/local/crosstool-build/crosstool-nptl
USE_SYSROOT=


On Tue, Sep 05, 2006 at 05:41:04PM -0700, Matt Snoby wrote:
>  Hi CrossTools mail list, 
> For the past couple of weeks I???ve been trying to  create a mips gcc 4.1.0 tool chain that runs under a cygwin environment.  I've gotten a 3.4.4 toolchain to build, however not a 4.1 tool chain.  I???ve worked past quite a few issues, but I???ve finally run into one that I just can???t seem to get past.  I???ve consulted the almighty google and  the mail list, but have yet to find a solution.   
> The build fails while configuring for the libstdc++-V3  (If you need more of a log I can reply with that, I just didn't want to make the msg too long).
>   
> checking for shared libgcc... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. 
> make[1]: *** [configure-target-libstdc++-v3] Error 1 
> make[1]: Leaving directory `/usr/mybuild/crosstool-0.42/build/mips-linux/gcc-4.1.0-glibc-2.4/build-gcc-core 
>    
>  I???ve searched on the net and after consulting Martin Guy???s website,  ( I applied his ports and nptl patch)I thought all I had to do was add: 
> GCC_EXTRA_CONFIG=--disable-multilib 
>  
>  to the mips.dat file, however this had no effect. 
>  I did the following steps to create this build: 
>   
> 1.) created a gcc-4.1.0-glibc-2.4.dat file 
>     BINUTILS_DIR=binutils-2.16.91.0.7 
>     GCC_DIR=gcc-4.1.0 
>     GLIBC_DIR=glibc-2.4 
>     LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0 
>     GLIBCPORTS_FILENAME=glibc-ports-2.4 
>     GLIBC_ADDON_OPTIONS=ports,nptl 
>     GDB_DIR=gdb-6.3 
>    
>  2.) Modified the mips.dat file 
>     KERNELCONFIG=`pwd`/mips.config 
>     TARGET=mips-linux 
>     TARGET_CFLAGS="-O2 -finline-limit=10000" 
>     GCC_EXTRA_CONFIG=--disable-multilib 
>    
>  3.) Modified the demo-mips.sh file: 
>     #!/bin/sh 
>     set -ex 
>      # Big-endian MIPS 
>      TARBALLS_DIR=$HOME/downloads 
>     RESULT_TOP=/opt/crosstool 
>     export TARBALLS_DIR RESULT_TOP 
>     GCC_LANGUAGES="c,c++" 
>     export GCC_LANGUAGES 
>     BINUTILS_EXTRA_CONFIG=--disable-werror 
>     export BINUTILS_EXTRA_CONFIG 
>     CYGWIN_DIR=cygwin-1.5.21-2 
>     #should give it a place to download the cygwin source.... but  
>     #I just put it in the download directory. 
>     export CYGWIN_DIR  
>     QUIET_EXTRACTIONS=1 
>     export QUIET_EXTRACTIONS 
>   
>   
>     # Really, you should do the mkdir before running this, 
>     # and chown /opt/crosstool to yourself so you don't need to run as root. 
>     mkdir -p $RESULT_TOP 
>      # Build the toolchain.  Takes a couple hours and a couple gigabytes. 
>   
>     ## This works for  3.4.4 tool chain 
>     #eval `cat mips.dat gcc-3.4.4-glibc-2.3.5.dat`        sh all.sh --notest 
>      ## This is for the 4.1.0 toolchain 
>     eval `cat mips.dat gcc-4.1.0-glibc-2.4.dat`        sh all.sh --notest 
>     echo Done. 
>    
>  Any suggestions on how to get past this? 
>  Thanks, 
>  
>   
>     -- 
>  Matt Snoby  
>  matt.snoby@yahoo.com 
>  
>  
>  
>   
>  
>  
>  
>  
>  
>  
>  
>  
> 
> 
> 
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq

-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list