Bug 3103

Summary: make external-deps wants to download gcc-.tar.bz2 when using an external toolchain
Product: buildroot Reporter: Elie De Brauwer <eliedebrauwer>
Component: OtherAssignee: Gustavo Zacarias <gustavo>
Status: RESOLVED FIXED    
Severity: minor CC: buildroot
Priority: P5    
Version: 2010.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: .config illustrating this problem.
Disable gcc fetch when not internal toolchain

Description Elie De Brauwer 2011-01-17 12:00:17 UTC
Created attachment 2863 [details]
.config illustrating this problem.

I tested this on 2010.11 and buildroot-20110117.tar.bz2, I tested this with a real external toolchain/powerpc but for the sake of the exercise let's do this as follows. Steps to reproduce:
   * Extract buildroot
   * make allnoconfig
   * In make menuconfig -> toolchain -> set toolchain type to external toolchain, save the config


edb@lapedb:/tmp/tmp/buildroot$ make external-deps
gcc-.tar.bz2
gmp-5.0.1.tar.bz2
mpfr-3.0.0.tar.bz2
edb@lapedb:/tmp/tmp/buildroot$ make source
<snip>
successful download of http://ftp.gnu.org/pub/gnu/gmp/gmp-5.0.1.tar.bz2 and http://www.mpfr.org/mpfr-3.0.0/mpfr-3.0.0.tar.bz2 </snip>

mkdir -p /tmp/tmp/buildroot/dl
--2011-01-17 12:58:19--  http://ftp.gnu.org/pub/gnu/gcc/gcc-/gcc-.tar.bz2
Resolving ftp.gnu.org... 140.186.70.20
Connecting to ftp.gnu.org|140.186.70.20|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-01-17 12:58:20 ERROR 404: Not Found.

--2011-01-17 12:58:20--  http://sources.buildroot.net//gcc-.tar.bz2
Resolving sources.buildroot.net... 88.198.64.109
Connecting to sources.buildroot.net|88.198.64.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-01-17 12:58:20 ERROR 404: Not Found.

make: *** [/tmp/tmp/buildroot/dl/gcc-.tar.bz2] Error 1


Adding my .config in attach
Comment 1 Gustavo Zacarias 2011-01-17 12:16:49 UTC
Created attachment 2869 [details]
Disable gcc fetch when not internal toolchain

This is an old bug that's been lingering for some time now.
Try the attached patch, it should solve the issue.
Comment 2 Elie De Brauwer 2011-01-17 12:26:37 UTC
Tested on 2010.11, works there for me.
Comment 3 Peter Korsgaard 2011-01-19 16:24:21 UTC
Committed a slightly revised version of the patch, which also disables the unneeded gmp/mpfr/mpc libraries, thanks.