* [Buildroot] make source: missing dir and incorrect dependency with external toolchain
@ 2010-08-12 16:48 Quotient Remainder
2010-09-01 8:49 ` Quotient Remainder
0 siblings, 1 reply; 6+ messages in thread
From: Quotient Remainder @ 2010-08-12 16:48 UTC (permalink / raw)
To: buildroot
Hello,
having done "make distclean", followed by "make ..._defconfig", I did
"make source". The toolchain is external, ARM glibc (gcc 4.4.1). Host
gcc is 4.4.4.
The first problem is that $(DL_DIR) does not get created so there is a
failure when it is needed.
Secondly when I do "mkdir dl" and "make source" again I get an error
when an attempt is made to download gcc because GCC_VERSION is empty (it
should not be downloading this at all since the toolchain is external):
test -e /home/qvr/obair/buildroot.org/dl/gcc-.tar.bz2 || for site in "http://ftp.gnu.org/pub/gnu"/gcc/gcc- http://sources.buildroot.net/; do wget --passive-ftp -nd -P /home/qvr/obair/buildroot.org/dl $site/gcc-.tar.bz2 && exit; done
--2010-08-12 17:14:20-- 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
2010-08-12 17:14:20 ERROR 404: Not Found.
--2010-08-12 17:14: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
2010-08-12 17:14:20 ERROR 404: Not Found.
make: *** [/home/qvr/obair/buildroot.org/dl/gcc-.tar.bz2] Error 1
I'm not certain which target it's actually processing that pulls in gcc
but whatever it is, it succeeds in downloading gmp and mpfr archives
before attempting gcc. The next package to be processed in the plain
"make" case is host-module-init-tools, followed by host-automake,
host-autoconf and host-m4.
The attempted gcc download does not occur when a straight "make" is
executed so I presume that something is dependent on the toolchain being
copied over in the early stages.
Any ideas?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] make source: missing dir and incorrect dependency with external toolchain
2010-08-12 16:48 [Buildroot] make source: missing dir and incorrect dependency with external toolchain Quotient Remainder
@ 2010-09-01 8:49 ` Quotient Remainder
2010-09-01 8:57 ` Maxime Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Quotient Remainder @ 2010-09-01 8:49 UTC (permalink / raw)
To: buildroot
(hopeful bump, now that the release is done)
Ar D?ar, 2010-08-12 ag 17:48 +0100, scr?obh Quotient Remainder:
> Hello,
> having done "make distclean", followed by "make ..._defconfig", I did
> "make source". The toolchain is external, ARM glibc (gcc 4.4.1). Host
> gcc is 4.4.4.
>
> The first problem is that $(DL_DIR) does not get created so there is a
> failure when it is needed.
>
> Secondly when I do "mkdir dl" and "make source" again I get an error
> when an attempt is made to download gcc because GCC_VERSION is empty (it
> should not be downloading this at all since the toolchain is external):
>
> test -e /home/qvr/obair/buildroot.org/dl/gcc-.tar.bz2 || for site in "http://ftp.gnu.org/pub/gnu"/gcc/gcc- http://sources.buildroot.net/; do wget --passive-ftp -nd -P /home/qvr/obair/buildroot.org/dl $site/gcc-.tar.bz2 && exit; done
> --2010-08-12 17:14:20-- 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
> 2010-08-12 17:14:20 ERROR 404: Not Found.
>
> --2010-08-12 17:14: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
> 2010-08-12 17:14:20 ERROR 404: Not Found.
>
> make: *** [/home/qvr/obair/buildroot.org/dl/gcc-.tar.bz2] Error 1
>
> I'm not certain which target it's actually processing that pulls in gcc
> but whatever it is, it succeeds in downloading gmp and mpfr archives
> before attempting gcc. The next package to be processed in the plain
> "make" case is host-module-init-tools, followed by host-automake,
> host-autoconf and host-m4.
>
> The attempted gcc download does not occur when a straight "make" is
> executed so I presume that something is dependent on the toolchain being
> copied over in the early stages.
>
> Any ideas?
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] make source: missing dir and incorrect dependency with external toolchain
2010-09-01 8:49 ` Quotient Remainder
@ 2010-09-01 8:57 ` Maxime Petazzoni
2010-09-01 9:17 ` Yann E. MORIN
0 siblings, 1 reply; 6+ messages in thread
From: Maxime Petazzoni @ 2010-09-01 8:57 UTC (permalink / raw)
To: buildroot
Hi,
* Quotient Remainder <quotientvremainder@gmail.com> [2010-09-01 09:49:03]:
> Ar D?ar, 2010-08-12 ag 17:48 +0100, scr?obh Quotient Remainder:
> > Hello,
> > having done "make distclean", followed by "make ..._defconfig", I did
> > "make source". The toolchain is external, ARM glibc (gcc 4.4.1). Host
> > gcc is 4.4.4.
> >
> > The first problem is that $(DL_DIR) does not get created so there is a
> > failure when it is needed.
> >
> > Secondly when I do "mkdir dl" and "make source" again I get an error
> > when an attempt is made to download gcc because GCC_VERSION is empty (it
> > should not be downloading this at all since the toolchain is external):
I noticed the problem with GCC_VERSION too when working on source-check
and friends. But honestly, I forgot the exact reason why is doing that
although Thomas explained it to me.
Thomas, could you enlighten us (again) on why it's doing this? IIRC,
GCC_VERSION is only defined when you're using an internal toolchain,
although it is used straight up in toolchain/gcc-uclibc-4.x.mk with no
check on whether you're using an internal or external toolchain. This
.mk file is not used when using an external toolchain, but it is when
you're calling make source.
I'm not sure how to make it not use it when using an external toolchain
though, a big if/endif on the whole file seems dirty-ish, at best.
- Maxime
--
Maxime Petazzoni <http://www.bulix.org>
``One by one, the penguins took away my sanity.''
Linux kernel and software developer at MontaVista Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100901/306d0e45/attachment.pgp>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] make source: missing dir and incorrect dependency with external toolchain
2010-09-01 8:57 ` Maxime Petazzoni
@ 2010-09-01 9:17 ` Yann E. MORIN
2010-09-01 9:45 ` Quotient Remainder
0 siblings, 1 reply; 6+ messages in thread
From: Yann E. MORIN @ 2010-09-01 9:17 UTC (permalink / raw)
To: buildroot
Quotient, Maxime, All,
On Wednesday 01 September 2010 10:57:21 Maxime Petazzoni wrote:
> * Quotient Remainder <quotientvremainder@gmail.com> [2010-09-01 09:49:03]:
> > Ar D?ar, 2010-08-12 ag 17:48 +0100, scr?obh Quotient Remainder:
> > > Hello,
> > > having done "make distclean", followed by "make ..._defconfig", I did
> > > "make source". The toolchain is external, ARM glibc (gcc 4.4.1). Host
> > > gcc is 4.4.4.
> > >
> > > The first problem is that $(DL_DIR) does not get created so there is a
> > > failure when it is needed.
> > >
> > > Secondly when I do "mkdir dl" and "make source" again I get an error
> > > when an attempt is made to download gcc because GCC_VERSION is empty (it
> > > should not be downloading this at all since the toolchain is external):
> Thomas, could you enlighten us (again) on why it's doing this? IIRC,
> GCC_VERSION is only defined when you're using an internal toolchain,
> although it is used straight up in toolchain/gcc-uclibc-4.x.mk with no
> check on whether you're using an internal or external toolchain. This
> .mk file is not used when using an external toolchain, but it is when
> you're calling make source.
In fact, that .mk can be used even for external toolchain, as it is also
responsible for building the native toolchain that runs on the target,
if you selected it.
The issue is in this case:
- external toolchain used
--> verion selection for gcc, binutils... is not available
- native toolchain on target is selected
--> wants to download gcc
Quotient, is that your situation?
The proper way to fix it would be to show gcc/binutils/... version
selection in this case.
> I'm not sure how to make it not use it when using an external toolchain
> though, a big if/endif on the whole file seems dirty-ish, at best.
Nope, that's not possible, as explained above. We have to be smarter! ;-)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] make source: missing dir and incorrect dependency with external toolchain
2010-09-01 9:17 ` Yann E. MORIN
@ 2010-09-01 9:45 ` Quotient Remainder
2010-09-08 10:40 ` Quotient Remainder
0 siblings, 1 reply; 6+ messages in thread
From: Quotient Remainder @ 2010-09-01 9:45 UTC (permalink / raw)
To: buildroot
Ar C?ad, 2010-09-01 ag 11:17 +0200, scr?obh Yann E. MORIN:
> Quotient, Maxime, All,
>
> In fact, that .mk can be used even for external toolchain, as it is also
> responsible for building the native toolchain that runs on the target,
> if you selected it.
>
> The issue is in this case:
> - external toolchain used
> --> verion selection for gcc, binutils... is not available
> - native toolchain on target is selected
> --> wants to download gcc
>
> Quotient, is that your situation?
No, I'm not building a native toolchain.
From .config:
# BR2_HAVE_DEVFILES is not set
Therefore I cannot (and do not want to) select BR2_PACKAGE_GCC_TARGET.
> The proper way to fix it would be to show gcc/binutils/... version
> selection in this case.
>
> > I'm not sure how to make it not use it when using an external toolchain
> > though, a big if/endif on the whole file seems dirty-ish, at best.
>
> Nope, that's not possible, as explained above. We have to be smarter! ;-)
>
> Regards,
> Yann E. MORIN.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] make source: missing dir and incorrect dependency with external toolchain
2010-09-01 9:45 ` Quotient Remainder
@ 2010-09-08 10:40 ` Quotient Remainder
0 siblings, 0 replies; 6+ messages in thread
From: Quotient Remainder @ 2010-09-08 10:40 UTC (permalink / raw)
To: buildroot
> Ar C?ad, 2010-09-01 ag 11:17 +0200, scr?obh Yann E. MORIN:
> > Quotient, Maxime, All,
> >
> > In fact, that .mk can be used even for external toolchain, as it is also
> > responsible for building the native toolchain that runs on the target,
> > if you selected it.
> >
> > The issue is in this case:
> > - external toolchain used
> > --> verion selection for gcc, binutils... is not available
> > - native toolchain on target is selected
> > --> wants to download gcc
> >
> > Quotient, is that your situation?
>
> No, I'm not building a native toolchain.
> From .config:
>
> # BR2_HAVE_DEVFILES is not set
>
> Therefore I cannot (and do not want to) select BR2_PACKAGE_GCC_TARGET.
>
> > The proper way to fix it would be to show gcc/binutils/... version
> > selection in this case.
> >
> > > I'm not sure how to make it not use it when using an external toolchain
> > > though, a big if/endif on the whole file seems dirty-ish, at best.
> >
> > Nope, that's not possible, as explained above. We have to be smarter! ;-)
Yann, or anyone else, did you get a chance to think any further about
this?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-08 10:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-12 16:48 [Buildroot] make source: missing dir and incorrect dependency with external toolchain Quotient Remainder
2010-09-01 8:49 ` Quotient Remainder
2010-09-01 8:57 ` Maxime Petazzoni
2010-09-01 9:17 ` Yann E. MORIN
2010-09-01 9:45 ` Quotient Remainder
2010-09-08 10:40 ` Quotient Remainder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox