Skip to contentSkip to conversation

Building x86_64 failes

Buildroot Goetz Bock 2 participants 4 messages Jan 19, 2007 – Jan 20, 2007

lore
Share & tools
lore

Goetz Bock

author
#0 lore raw

Dear list,

after I've successfully build buildroot for i586 on my amd64/debian/sarge box, I wanted to build the same rootfs for amd64.

So I copied the existing buildroot, removed build_i586 and toolchain_build_i586, ran make clean and make menuconfig to reconfigureit for x86_64.

But building the toolchain failes with:

/build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:
In function 'x86_fallback_frame_state':
/build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:152:
error: 'struct sigcontext' has no member named 'esp'
.
. [ more missing e?? members ]
.

It does not matter what version of binutils/gcc I use, it's always the same error.
(I've tried binutuils: 2.16.1, 2.17, 2.17.50.0.7, 2.17.50.0.9 and gcc 4.0.3, 4.1.1, 4.2)

The i386 realy irritates me, and I've no idea where it comes from.

Any pionters?

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
#1 lore raw
Quoted 11 lines · Goetz Bock

Dear list,

after I've successfully build buildroot for i586 on my amd64/debian/sarge box, I wanted to build the same rootfs for amd64.

So I copied the existing buildroot, removed build_i586 and toolchain_build_i586, ran make clean and make menuconfig to reconfigureit for x86_64.

But building the toolchain failes with:

Quoted 7 lines

/build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:
In function 'x86_fallback_frame_state':
/build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:152:
error: 'struct sigcontext' has no member named 'esp'
.
. [ more missing e?? members ]
.

Can you check that uClibc has the correct arch set?

Quoted 7 lines

It does not matter what version of binutils/gcc I use, it's always the same error.
(I've tried binutuils: 2.16.1, 2.17, 2.17.50.0.7, 2.17.50.0.9 and gcc 4.0.3, 4.1.1, 4.2)

The i386 realy irritates me, and I've no idea where it comes from.

The config/i386 is ok

What kernel-headers do you use?

hm. Could it be that you try to compile a 32bit x86-64 compiler? For the 64bit, there is definately no (resp. shouldn't be a) esp.

author
#2 lore raw
Quoted 11 lines · Bernhard Fischer
Quoted 8 lines · Goetz Bock

[ ... I'm unable to build buildroot toolchain for x96_64 ... ] /build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:
In function 'x86_fallback_frame_state':
/build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:152:
error: 'struct sigcontext' has no member named 'esp'
.
. [ more missing e?? members ]
.

Can you check that uClibc has the correct arch set?

The toolchain_build_x86_64/uClibc-0.9.28/.config lists:
TARGET_x86_64=y
ARCH_SUPPORTS_LITTLE_ENDIAN=y
TARGET_ARCH="x86_64"
ARCH_LITTLE_ENDIAN=y KERNEL_SOURCE="/build/buildroot.amd64/toolchain_build_x86_64/linux"

In the KERNEL_SOURCE dir include/asm is linked to asm-x86_64

Quoted 1 line

What kernel-headers do you use?

I'm using the 2.6.12.0 headers, as my kernel will be 2.6.18 from Etch

Quoted 2 lines

hm. Could it be that you try to compile a 32bit x86-64 compiler? For the 64bit, there is definately no (resp. shouldn't be a) esp.

That's at last not what I intend. I want to build a small rescueue system to work with Debian Etch kernels.

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
#3 lore raw
Quoted 21 lines · Goetz Bock
Quoted 11 lines · Bernhard Fischer
Quoted 8 lines · Goetz Bock

[ ... I'm unable to build buildroot toolchain for x96_64 ... ] /build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:
In function 'x86_fallback_frame_state':
/build/buildroot.amd64/toolchain_build_x86_64/gcc-4.1.1/gcc/config/i386/linux-unwind.h:152:
error: 'struct sigcontext' has no member named 'esp'
.
. [ more missing e?? members ]
.

Can you check that uClibc has the correct arch set?

The toolchain_build_x86_64/uClibc-0.9.28/.config lists:
TARGET_x86_64=y
ARCH_SUPPORTS_LITTLE_ENDIAN=y
TARGET_ARCH="x86_64"
ARCH_LITTLE_ENDIAN=y KERNEL_SOURCE="/build/buildroot.amd64/toolchain_build_x86_64/linux"

Quoted 5 lines

In the KERNEL_SOURCE dir include/asm is linked to asm-x86_64

Quoted 1 line

What kernel-headers do you use?

I'm using the 2.6.12.0 headers, as my kernel will be 2.6.18 from Etch

I don't use these headers, so can't help you there. The 2.6.19.2 worked for me for building an x86_64 rootfs, fyi.

HTH,