Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9124 closed defect (fixed)

uboot compiling with local includes.

Reported by: faiyaza@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Looks like uboot is trying to use stdio.h from the local machine and not from the toolchain.

make[3]: Entering directory `/Users/dweller/Source/openwrt/patched/trunk/package/uboot-ar71xx'
make -C /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03 CROSS_COMPILE=mips-openwrt-linux-uclibc-
for dir in tools examples/standalone examples/api cpu/mips /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/board/zyxel/nbg460n/ ; do \
			make -C $dir _depend ; done
make[5]: Nothing to be done for `_depend'.
make[5]: Nothing to be done for `_depend'.
make[5]: Nothing to be done for `_depend'.
make[5]: Nothing to be done for `_depend'.
make[5]: Nothing to be done for `_depend'.
make -C tools all
cc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -idirafter /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include2 -idirafter /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include -I /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/libfdt -I /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/tools -DTEXT_BASE=0x81E00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -traditional-cpp -pedantic -c -o crc32.o /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/lib_generic/crc32.c
In file included from /usr/include/stdio.h:444,
                 from /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/include/compiler.h:26,
                 from /Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/lib_generic/crc32.c:15:
/usr/include/secure/_stdio.h:46: error: syntax error in macro parameter list
/usr/include/secure/_stdio.h:53: error: syntax error in macro parameter list
make[5]: *** [crc32.o] Error 1
make[4]: *** [tools] Error 2
make[3]: *** [/Users/dweller/Source/openwrt/patched/trunk/build_dir/linux-ar71xx_generic/u-boot-nbg460n_550n_550nh/u-boot-2010.03/.built] Error 2
make[3]: Leaving directory `/Users/dweller/Source/openwrt/patched/trunk/package/uboot-ar71xx'
make[2]: *** [package/uboot-ar71xx/compile] Error 2
make[2]: Leaving directory `/Users/dweller/Source/openwrt/patched/trunk'
make[1]: *** [/Users/dweller/Source/openwrt/patched/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/Users/dweller/Source/openwrt/patched/trunk'
make: *** [world] Error 2

Attachments (1)

u-boot-2010.03-config.mk.patch (951 bytes) - added by faiyaza@… 7 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 follow-up: Changed 7 years ago by nbd

It's supposed to use your host includes, because it's also using your host compiler - it's building host tools here...

comment:2 in reply to: ↑ 1 Changed 7 years ago by faiyaza@…

Ah! In that case, this patch needs to be integrated to u-boot-2010.03/config.mk.

Attached below. Applied to mine in build_dir and it seems to have worked (still building, but at least it's past u-boot).

Changed 7 years ago by faiyaza@…

comment:3 Changed 7 years ago by anonymous

Success. The patch as allowed me to build u-boot on my mac.

comment:4 Changed 7 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fix committed in r26676

comment:5 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 closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.