Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Cannot compile gcc in target
@ 2011-03-17 16:32 Barry Kauler
  2011-03-18  4:33 ` Barry Kauler
  2011-03-20  9:53 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Barry Kauler @ 2011-03-17 16:32 UTC (permalink / raw)
  To: buildroot

Hi, I am new to Buildroot, and it would be great if someone
experienced with Buildroot could help me out.

First time through, I just ran "make menuconfig" and apart from
choosing i586 architecture, just accepted the defaults, and got a
target root filesystem.

Fine, but it only has runtime files and what I want is a basic cli
compiling environment for compiling some applications statically. So I
ran 'make clean' then 'make menuconfig' again, and made what seem like
the minimum changes to create a compiling environment in the target
rootfs.

It all goes well until compiling gcc for the target, and stops with this:

TARGET_CPU_DEFAULT="" \
	HEADERS="options.h config/i386/i386.h config/i386/unix.h
config/i386/att.h config/dbxelf.h config/elfos.h config/svr4.h
config/linux.h config/i386/linux.h defaults.h"
DEFINES="UCLIBC_DEFAULT=1" \
	/bin/sh /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/mkconfig.sh
tm.h
gawk -f /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/opt-gather.awk
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/ada/lang.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/fortran/lang.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/java/lang.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/treelang/lang.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/c.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/common.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/config/i386/i386.opt
/mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/config/linux.opt
> tmp-optionlist
TARGET_CPU_DEFAULT="" \
	HEADERS="auto-build.h ansidecl.h" DEFINES="" \
	/bin/sh /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/mkconfig.sh
bconfig.h
make[3]: *** No rule to make target `auto-build.h', needed by
`build/genmodes.o'.  Stop.
make[3]: *** Waiting for unfinished jobs....
/bin/sh /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/../move-if-change
tmp-optionlist optionlist
echo timestamp > s-options
make[3]: Leaving directory
`/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory
`/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target'
make: *** [/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target/.compiled]
Error 2
#

I also tried the latest snapshot of Builroot, same problem. Does
anyone know what is going wrong here?

The .config file is attached.

Regards,
Barry Kauler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DOTconfig.gz
Type: application/x-gzip
Size: 3971 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110318/39e220ce/attachment.bin>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Cannot compile gcc in target
  2011-03-17 16:32 [Buildroot] Cannot compile gcc in target Barry Kauler
@ 2011-03-18  4:33 ` Barry Kauler
  2011-03-18  6:14   ` Khem Raj
  2011-03-20  9:53 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Barry Kauler @ 2011-03-18  4:33 UTC (permalink / raw)
  To: buildroot

Update, I have now got gcc-target to compile.

I don't know what I did specifically, but I reran menuconfig and made
a few changes: changed gcc from 4.3.5 to 4.4.5, changed old
linuxthreads to posix native threads, enabled mpc package, maybe one
or two other things.

I read somewhere that gcc needs mpc, but really unsure about that.

Anyway, if anyone else wants a working i586 uclibc 0.9.32-rc3
toolchain, the .config is attached.

Regards,
Barry Kauler


On 3/18/11, Barry Kauler <bkauler@gmail.com> wrote:
> Hi, I am new to Buildroot, and it would be great if someone
> experienced with Buildroot could help me out.
>
> First time through, I just ran "make menuconfig" and apart from
> choosing i586 architecture, just accepted the defaults, and got a
> target root filesystem.
>
> Fine, but it only has runtime files and what I want is a basic cli
> compiling environment for compiling some applications statically. So I
> ran 'make clean' then 'make menuconfig' again, and made what seem like
> the minimum changes to create a compiling environment in the target
> rootfs.
>
> It all goes well until compiling gcc for the target, and stops with this:
>
> TARGET_CPU_DEFAULT="" \
> 	HEADERS="options.h config/i386/i386.h config/i386/unix.h
> config/i386/att.h config/dbxelf.h config/elfos.h config/svr4.h
> config/linux.h config/i386/linux.h defaults.h"
> DEFINES="UCLIBC_DEFAULT=1" \
> 	/bin/sh
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/mkconfig.sh
> tm.h
> gawk -f
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/opt-gather.awk
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/ada/lang.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/fortran/lang.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/java/lang.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/treelang/lang.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/c.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/common.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/config/i386/i386.opt
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/config/linux.opt
>> tmp-optionlist
> TARGET_CPU_DEFAULT="" \
> 	HEADERS="auto-build.h ansidecl.h" DEFINES="" \
> 	/bin/sh
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/mkconfig.sh
> bconfig.h
> make[3]: *** No rule to make target `auto-build.h', needed by
> `build/genmodes.o'.  Stop.
> make[3]: *** Waiting for unfinished jobs....
> /bin/sh
> /mnt/sdb3/buildroot/buildroot-2011.02/output/toolchain/gcc-4.3.5/gcc/../move-if-change
> tmp-optionlist optionlist
> echo timestamp > s-options
> make[3]: Leaving directory
> `/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target/gcc'
> make[2]: *** [all-gcc] Error 2
> make[2]: Leaving directory
> `/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target'
> make: ***
> [/mnt/sdb3/buildroot/buildroot-2011.02/output/build/gcc-4.3.5-target/.compiled]
> Error 2
> #
>
> I also tried the latest snapshot of Builroot, same problem. Does
> anyone know what is going wrong here?
>
> The .config file is attached.
>
> Regards,
> Barry Kauler
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DOTconfig-20110318-1009.gz
Type: application/x-gzip
Size: 3978 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110318/3845d365/attachment.bin>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Cannot compile gcc in target
  2011-03-18  4:33 ` Barry Kauler
@ 2011-03-18  6:14   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2011-03-18  6:14 UTC (permalink / raw)
  To: buildroot

On Thu, Mar 17, 2011 at 9:33 PM, Barry Kauler <bkauler@gmail.com> wrote:
> Update, I have now got gcc-target to compile.
>
> I don't know what I did specifically, but I reran menuconfig and made
> a few changes: changed gcc from 4.3.5 to 4.4.5, changed old
> linuxthreads to posix native threads, enabled mpc package, maybe one
> or two other things.
>
> I read somewhere that gcc needs mpc, but really unsure about that.

mpc is only needed for gcc 4.5 and newer. You should not require that for
gcc 4.3.5 or 4.4.5

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] Cannot compile gcc in target
  2011-03-17 16:32 [Buildroot] Cannot compile gcc in target Barry Kauler
  2011-03-18  4:33 ` Barry Kauler
@ 2011-03-20  9:53 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-03-20  9:53 UTC (permalink / raw)
  To: buildroot

On Fri, 18 Mar 2011 00:32:38 +0800
Barry Kauler <bkauler@gmail.com> wrote:

> I also tried the latest snapshot of Builroot, same problem. Does
> anyone know what is going wrong here?
> 
> The .config file is attached.

I tried this .config, and it builds just fine here. Are you sure you
did the build from scratch ? Can you put the full build log somewhere ?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-20  9:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17 16:32 [Buildroot] Cannot compile gcc in target Barry Kauler
2011-03-18  4:33 ` Barry Kauler
2011-03-18  6:14   ` Khem Raj
2011-03-20  9:53 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox