Bug 3103 - make external-deps wants to download gcc-.tar.bz2 when using an external toolchain
Summary: make external-deps wants to download gcc-.tar.bz2 when using an external tool...
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2010.11
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: Gustavo Zacarias
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 12:00 UTC by Elie De Brauwer
Modified: 2011-01-19 16:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
.config illustrating this problem. (17.77 KB, application/octet-stream)
2011-01-17 12:00 UTC, Elie De Brauwer
Details
Disable gcc fetch when not internal toolchain (1023 bytes, patch)
2011-01-17 12:16 UTC, Gustavo Zacarias
Details

Note You need to log in before you can comment on or make changes to this bug.
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.