OpenWrt Forum Archive

Topic: Compilation failure

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Downloaded SVN r3534, make fails with:

# make
--->  toolchain/install
--->  toolchain/sed/prepare
--->  toolchain/sed/compile
--->  toolchain/sed/install
--->  toolchain/utils/prepare
--->  toolchain/utils/compile
--->  toolchain/utils/install
--->  toolchain/kernel-headers/prepare
--->  toolchain/uClibc/prepare
--->  toolchain/binutils/prepare
--->  toolchain/binutils/compile
--->  toolchain/binutils/install
--->  toolchain/gcc/prepare
Build failed. Please re-run make with V=99 to see what's going on
make[2]: *** [gcc-prepare] Error 1
make[1]: *** [toolchain/install] Error 2
make: *** [world] Error 2

Adding the suggested V=99:

# make V=99
cp .config .config.test
scripts/configtest.pl
make toolchain/install target/compile package/compile root_clean package/install target/install package_index
make[1]: Entering directory `/root/openwrt'
make -C toolchain install
make[2]: Entering directory `/root/openwrt/toolchain'
make[3]: Entering directory `/root/openwrt/toolchain/gcc'
mkdir -p /root/openwrt/dl
/root/openwrt/scripts/download.pl /root/openwrt/dl gcc-3.4.5.tar.bz2 x ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-3.4.5 http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-3.4.5
--09:42:36--  ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-3.4.5/gcc-3.4.5.tar.bz2
           => `-'
Resolving ftp.fu-berlin.de... 130.133.3.130
Connecting to ftp.fu-berlin.de[130.133.3.130]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /unix/languages/gcc/releases/gcc-3.4.5 ... done.
==> PORT ...
Invalid PORT.
Giving up.

Download failed.
--09:42:37--  http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-3.4.5/gcc-3.4.5.tar.bz2
           => `-'
Resolving mirrors.rcn.net... 207.172.2.141
Connecting to mirrors.rcn.net[207.172.2.141]:80... failed: Connection timed out.
Giving up.

Download failed.
--09:42:57--  http://downloads.openwrt.org/sources/gcc-3.4.5.tar.bz2
           => `-'
Resolving downloads.openwrt.org... 195.56.146.238
Connecting to downloads.openwrt.org[195.56.146.238]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:42:58 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
make[3]: *** [/root/openwrt/dl/gcc-3.4.5.tar.bz2] Error 2
make[3]: Leaving directory `/root/openwrt/toolchain/gcc'
make[2]: *** [gcc-prepare] Error 2
make[2]: Leaving directory `/root/openwrt/toolchain'
make[1]: *** [toolchain/install] Error 2
make[1]: Leaving directory `/root/openwrt'
make: *** [world] Error 2

Seems like 'ftp' is being fed a wrong command, the mirror site is down, and there's a reference in there somewhere to a gcc that doesn't exist on openwrt.org {anymore,yet}.

What should I do?

Just try to download it from somewhere else (gcc-3.4.5.tar.bz2), then put it into dl subdir.

A copy of gcc-3.4.5.tar.gz has been uploaded to http://downloads.openwrt.org/sources/.
This acts as a fallback mirror for most source tarballs.

(Last edited by olli on 13 Mar 2006, 17:35)

The discussion might have continued from here.