Re: gcc-5.3.0 libstdc++-v3: configure: error: No support for this host/target combination for arm-none-eabi

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

 



Kyrill,

good catch, but that's not the root cause. The configure line in my script uses a variable, I replaced the vars in the line manually for this mail to easier read and did a typo.

Here the full Makefile:

BINUTILS_VERSION = 2.24
GCC_VERSION = 5.3.0
NEWLIB_VERSION = cygwin
#2.3.0.20160226
GDB_VERSION = 7.11

BINUTILS = binutils-$(BINUTILS_VERSION)
GCC = gcc-$(GCC_VERSION)
NEWLIB = newlib-$(NEWLIB_VERSION)
GDB = gdb-$(GDB_VERSION)

TARGET=arm-none-eabi
PREFIX=/opt/$(TARGET)-$(GCC_VERSION)
PATH:=$(PREFIX)/bin:$(PATH)
MAKE = make# -j32
CONFIGURE = configure --cache-file=$(PWD)/global-cache
default : all


binutils: binutils-build/build-done
gcc-boot: gcc-build/build-boot-done
newlib: newlib-build/build-done
gcc: gcc-build/build-done
gdb: gdb-build/build-done

all: binutils gcc-boot newlib gcc gdb

$(BINUTILS).tar.bz2:
        echo "Grabbing $@"
        curl ftp://ftp.gnu.org/gnu/binutils/$@ -o $@

$(GCC).tar.bz2:
        echo "Grabbing $@"
        curl ftp://ftp.gnu.org/gnu/gcc/$(GCC)/$@ -o $@

$(NEWLIB).tar.gz:
        echo "Grabbing $@"
        curl ftp://sources.redhat.com/pub/newlib/$@ -o $@

$(GDB).tar.gz:
        echo "Grabbing $@"
        curl ftp://ftp.gnu.org/gnu/gdb/$@ -o $@

$(BINUTILS) : $(BINUTILS).tar.bz2
        echo -n "extracting $< : "
        tar -jxf $<

$(GCC) : $(GCC).tar.bz2
        echo -n "extracting $< : "
        tar -jxf $<


#$(NEWLIB) : $(NEWLIB).tar.gz
#       echo -n "extracting $< : "
#       tar -zxf $<
$(NEWLIB) :
        git clone git://sourceware.org/git/newlib-cygwin.git

$(GDB) : $(GDB).tar.gz
        echo -n "extracting $< : "
        tar -zxf $<

%-build:
        mkdir -p $@


# Build a set of compatible Binutils for this architecture.  Need this before
# we can build GCC.

binutils-build/config-done: $(BINUTILS)
        rm -f $@
        mkdir -p binutils-build
        cd binutils-build ;\
        ../$(BINUTILS)/$(CONFIGURE) --target=$(TARGET) --prefix=$(PREFIX) --disable-nls \
        --enable-interwork --enable-multilib --disable-werror \
         && touch config-done

binutils-build/build-done: binutils-build/config-done
        rm -f $@
        $(MAKE) -C binutils-build all install 2>&1 | tee binutils-build/make.log ; test $${PIPESTATUS[0]} == 0
        touch $@

$(GCC)/gmp: | $(GCC)
        cd $(GCC); ./contrib/download_prerequisites

$(GCC)/mpfr:| $(GCC)
        cd $(GCC); ./contrib/download_prerequisites

$(GCC)/mpc: | $(GCC)
        cd $(GCC); ./contrib/download_prerequisites


# Build and $(CONFIGURE) GCC with the Newlib C runtime.
gcc-build/config-done:  binutils-build/build-done $(GCC) $(NEWLIB) | $(GCC)/gmp $(GCC)/mpfr $(GCC)/mpc
        rm -f $@
        mkdir -p gcc-build
        cd gcc-build ; ../$(GCC)/$(CONFIGURE) --target=$(TARGET) --prefix=$(PREFIX) \
                       --with-newlib=../$(NEWLIB) --with-gnu-as --with-gnu-ld --disable-nls --disable-libssp \
                       --disable-gomp --disable-libstcxx-pch --enable-multilib --enable-threads --disable-shared --enable-static \
                       --disable-libmudflap --enable-interwork --enable-languages=c,c++\
                       && touch config-done

gcc-build/build-boot-done: gcc-build/config-done
        rm -f $@
        $(MAKE) -C gcc-build all-gcc install-gcc 2>&1 | tee -a gcc-build/boot-make.log ; test $${PIPESTATUS[0]} = 0
        touch $@


newlib-build/config-done:  gcc-build/build-boot-done $(NEWLIB)
        rm -f $@
        mkdir -p newlib-build
        cd newlib-build ; ../$(NEWLIB)/$(CONFIGURE) --target=$(TARGET) --prefix=$(PREFIX) \
                          --enable-multilib \
                          --enable-shared=no --enable-static=yes \
                          --enable-newlib-nano-malloc --enable-newlib-nano-formatted-io --enable-target-optspace\
                          --enable-lite-exit --enable-newlib-global-atexit --enable-newlib-reent-small \
                          --disable-newlib-fvwrite-in-streamio\
                          && touch config-done

newlib-build/build-done: newlib-build/config-done
        rm -f $@
        $(MAKE) -C newlib-build all install 2>&1 | tee -a newlib-build/make.log ; test $${PIPESTATUS[0]} == 0
        touch $@



gcc-build/build-done: gcc-build/config-done
        rm -f $@
        $(MAKE) -C gcc-build all install 2>&1 | tee -a gcci-build/make.log  ; test $${PIPESTATUS[0]} == 0
        touch $@


gdb-build/config-done: build-gcc/build_done
        rm -f $@
        mkdir -p gdb-build
        cd gdb-build ; ../$(GDB)/$(CONFIGURE) --target=$(TARGET) --prefix=$(PREFIX) \
        --enable-interwork --enable-multilib --disable-werror && touch config-done

gdb-build/build-done: gdb-build/config-done
        rm -f $@
        $(MAKE) all install 2>&1 | tee -a ../make.log  ; test $${PIPESTATUS[0] == 0
        touch $@



-----Original-Nachricht-----
Betreff: Re: gcc-5.3.0 libstdc++-v3: configure: error: No support for this host/target combination for arm-none-eabi
Datum: 2016-03-30T15:32:31+0200
Von: "Kyrill Tkachov" <kyrylo.tkachov@xxxxxxxxxxxx>
An: "onkel.jack@xxxxxxxxxxx" <onkel.jack@xxxxxxxxxxx>, "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx>

Hi,

On 30/03/16 13:52, onkel.jack@xxxxxxxxxxx wrote:>> Trying to build a cross tool chain under mingw64 or cygwin64 I run into the problem:> configure: error: No support for this host/target combination. at building libstdc++-v3.>> configure options are:> binutils 2.4 :  --target=arm-none-eabi --prefix=/opt/arm-none-eabi-5.3.0  --disable-nls --disable-werror>> gcc-boot 5.3.0 :    --target0arm-none-eabi  --prefix=/opt/arm-none-eabi-5.3.0  \>                         --with-newlib=../$(NEWLIB) --with-gnu-as --with-gnu-ld --disable-nls --disable-libssp \>                         --disable-gomp --disable-libstcxx-pch --enable-multilib --enable-threads --disable-shared --enable-static \>                         --disable-libmudflap --enable-interwork --enable-languages=c,c++>>                        additional stuff for gcc was fetched with ./contrib/download_prerequisites in gcc source dir

I don't have experience with building arm-none-eabi cross toolchains on mingw64, but if what you
pasted is the verbatim configure line then you have a typo at "--target0arm-none-eabi".
You meant "--target=arm-none-eabi"?

Kyrill> newlib git-master Mar 29 2016 :  --target=arm-none-eabi  --prefix=/opt/arm-none-eabi-5.3.0 \>                            --enable-multilib \>                            --enable-shared=no --enable-static=yes \>                            --enable-newlib-nano-malloc --enable-newlib-nano-formatted-io --enable-target-optspace\>                            --enable-lite-exit --enable-newlib-global-atexit --enable-newlib-reent-small \>                            --disable-newlib-fvwrite-in-streamio\>> gcc 5.3.0 build all w/o new configure (as configured by gcc-boot)>> in libstdc++-v3/configure is called with :> /gcc-5.3.0/libstdc++-v3/configure --srcdir=../../../gcc-5.3.0/libstdc++-v3 --cache-file=./config.cache --with-cross-host=x86_64-unknown-cygwin --prefix=/opt/arm-none-eabi-5.3.0 --with-newlib=../newlib-cygwin --with-gnu-as --with-gnu-ld --disable-nls --disable-libssp --disable-gomp --disable-libstcxx-pch --enable-multilib --enable-threads --disable-shared --enable-static --disable-libmudflap --enable-interwork --enable-languages=c,c++,lto --program-transform-name=s&^&arm-none-eabi-& --disable-option-checking --with-target-subdir=arm-none-eabi --build=x86_64-unknown-cygwin --host=arm-none-eabi --target=arm-none-eabi>> (from libstdc++-v3/config.log)>> Do I do something wrong ?> I use the build configuration I successfully had used with gcc4.7 in the past.>





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux