Skip to contentSkip to conversation

New: mtd-utils compile failure due to lack of --sysroot in CFLAGS

Buildroot bugzilla at busybox.net 1 participant 4 messages Mar 16, 2010 – Mar 26, 2010

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=1327

Host: Gentoo Linux
Target: Atmel ARM9
Build: 2010.2
Summary: mtd-utils compile failure due to lack of --sysroot in
CFLAGS
Product: buildroot
Version: 2010.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: grant.b.edwards at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

After updating from a Decmeber git snapshot to 2010, mtd-utils stopped building. Compiles were failing because the compiler couldn't find include files such as stdint.h. Examination of the build log revealed that buildroot's mtd util's make file was passing proper target LDFLAGS but wasn't passing target CFLAGS.

Thus there was no --sysroot option being passed to gcc, and it couldn't find its include files.

The attached patch fixes the problem by passing the appropriate CFLAGS values to make.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 1327] mtd-utils compile failure due to lack of --sysroot in CFLAGS

https://bugs.busybox.net/show_bug.cgi?id=1327

--- Comment #1 from Grant Edwards <[email protected]> 2010-03-16 20:33:30 UTC --- Created an attachment (id=1303)
--> (https://bugs.busybox.net/attachment.cgi?id=1303)
Patch to correctly set CFLAGS when building mtd utils for use on target

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 1327] mtd-utils compile failure due to lack of --sysroot in CFLAGS

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1327

--- Comment #2 from Grant Edwards <[email protected]> 2010-03-26 13:35:05 UTC --- It looks like my patch was a week late. This commit should fix the problem:

http://git.buildroot.net/buildroot/commit/?id=d5bf5f967009733da99c55febacb3fb0be686cad

I'll pull the new mtd.mk file and try it.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 1327] mtd-utils compile failure due to lack of --sysroot in CFLAGS

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1327

Grant Edwards <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Grant Edwards <[email protected]> 2010-03-26 14:33:12 UTC --- The current mtd.mk I grabbed from git works. The commit I mentioned
does fix this bug.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.