Bug 955 - Grub fails to build with External Toolchain
Summary: Grub fails to build with External Toolchain
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-01-25 21:43 UTC by Clark Rawlins
Modified: 2010-07-13 18:21 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-nptl-linux-gnu
Build: x86_64


Attachments
Fix external toolchain build error for grub and migrate grub to the autotools macro (6.01 KB, patch)
2010-01-25 21:43 UTC, Clark Rawlins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clark Rawlins 2010-01-25 21:43:26 UTC
Created attachment 979 [details]
Fix external toolchain build error for grub and migrate grub to the autotools macro

When building grub with an external toolchain I get the following failure.

make[1]: Entering directory `/home/clark/src/br-upstream/output/build/grub-0.97/grub'
/opt/x-tools/i686-nptl-linux-gnu/bin/i686-nptl-linux-gnu-gcc  -static   -o grub  main.o asmstub.o ../stage2/libgrub.a  ../lib/libcommon.a -lncurses 
/opt/x-tools/i686-nptl-linux-gnu/lib/gcc/i686-nptl-linux-gnu/4.3.2/../../../../i686-nptl-linux-gnu/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [grub] Error 1
make[1]: Leaving directory `/home/clark/src/br-upstream/output/build/grub-0.97/grub'
make: *** [/home/clark/src/br-upstream/output/build/grub-0.97/grub/grub] Error 2
Comment 1 Thomas Petazzoni 2010-07-13 18:21:56 UTC
The grub.mk file has been completely rewritten during the bootloaders-cleanup work, and here Grub compiles properly with an external toolchain.