Opened 6 years ago

Last modified 4 years ago

#10585 new defect

Cannot find grub's stages when building with the host's toolchain.

Reported by: oliver@… Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc:


I'm trying to build a kvm target and thus wanted to use my hosts own toolchain on a gentoo system.

Kernel: arch/x86/boot/bzImage is ready (#2)

Building modules, stage 2.
MODPOST 16 modules

make[5]: Leaving directory `/silo/build/openwrt/build_dir/linux-x86_kvm_guest/linux-'
objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R -S /silo/build/openwrt/build_dir/linux-x86_kvm_guest/linux- /silo/build/openwrt/build_dir/linux-x86_kvm_guest/vmlinux
objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R -S /silo/build/openwrt/build_dir/linux-x86_kvm_guest/linux- /silo/build/openwrt/build_dir/linux-x86_kvm_guest/vmlinux.elf
touch /silo/build/openwrt/build_dir/linux-x86_kvm_guest/linux-
make -C image compile install TARGET_BUILD=
make[5]: Entering directory `/silo/build/openwrt/target/linux/x86/image'
make[5]: `compile' is up to date.
cp -fpR /silo/build/openwrt/build_dir/linux-x86_kvm_guest/linux- /silo/build/openwrt/build_dir/linux-x86_kvm_guest/bzImage
# for the image builder
cp -fpR /silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/stage1 /silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/stage2 /silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/stage2_eltorito /silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/e2fs_stage1_5 /silo/build/openwrt/build_dir/linux-x86_kvm_guest/
cp: cannot stat `/silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/stage1': No such file or directory
cp: cannot stat `/silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/stage2': No such file or directory
cp: cannot stat `/silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/stage2_eltorito': No such file or directory
cp: cannot stat `/silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/usr/lib/grub/i386-openwrt/e2fs_stage1_5': No such file or directory
make[5]: * [install] Error 1
make[5]: Leaving directory `/silo/build/openwrt/target/linux/x86/image'
* [install] Error 2
make[4]: Leaving directory `/silo/build/openwrt/target/linux/x86'
make[3]: * [install] Error 2
make[3]: Leaving directory `/silo/build/openwrt/target/linux'
* [target/linux/install] Error 2
make[2]: Leaving directory `/silo/build/openwrt'
make[1]: * /silo/build/openwrt/staging_dir/target-x86_64-pc-linux-gnu/stamp/.target_install Error 2
make[1]: Leaving directory `/silo/build/openwrt'
* [world] Error 2

Using the default toolchain, building openwrt, and switching then to the host toolchain makes openwrt build just fine as it can now find the stages (elsewhere appearantly). A few make cleans inbetween where used and may be required even.

Attachments (1)

.config (64.6 KB) - added by oliver@… 6 years ago.
Working .config with host toolchain

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by oliver@…

Working .config with host toolchain

comment:1 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

as new .

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

Note: See TracTickets for help on using tickets.