Modify

Opened 4 years ago

Last modified 4 years ago

#14134 new defect

Generating x86 image fails because of the grub error

Reported by: Mitar Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc: mmitar@…

Description

I have a x86_64 system and I created image builder for x86 generic platform. I extracted the image builder and when I call make image it fails with:

++ dd if=/srv/home/build/firmware-core/build/release/x86/OpenWrt-ImageBuilder-x86_generic-for-linux-x86_64/bin/x86/openwrt-x86-generic-combined-ext4.img.kernel of=/srv/home/build/firmware-core/build/release/x86/OpenWrt-ImageBuilder-x86_generic-for-linux-x86_64/bin/x86/openwrt-x86-generic-combined-ext4.img bs=512 seek=63 conv=notrunc
9006+0 records in
9006+0 records out
4611072 bytes (4.6 MB) copied, 0.0328628 s, 140 MB/s
++ rm -f /srv/home/build/firmware-core/build/release/x86/OpenWrt-ImageBuilder-x86_generic-for-linux-x86_64/bin/x86/openwrt-x86-generic-combined-ext4.img.kernel
+ which chpax
+ grub --batch --no-curses --no-floppy --device-map=/dev/null
/srv/home/build/firmware-core/build/release/x86/OpenWrt-ImageBuilder-x86_generic-for-linux-x86_64/staging_dir/host/bin/bundled/grub: error while loading shared libraries: /srv/home/build/firmware-core/build/release/x86/OpenWrt-ImageBuilder-x86_generic-for-linux-x86_64/staging_dir/host/bin/bundled/grub: wrong ELF class: ELFCLASS32
make[3]: *** [install] Error 127

It is strange, because if I run /srv/home/build/firmware-core/build/release/x86/OpenWrt-ImageBuilder-x86_generic-for-linux-x86_64/staging_dir/host/bin/bundled/grub directly, it works.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by Mitar

I have Debian system and I installed gcc-multilib when generating image builder.

comment:2 Changed 4 years ago by perennialmind

Fixed in trunk in [35349]. You can backport locally by running:

svn merge -c 35349 ^/trunk

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.