Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9496 closed defect (worksforme)

imagetag.c:19:21: fatal error: bcm_tag.h: No such file or directory

Reported by: anonymous Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Backfire 10.03
Keywords: Cc:

Description

make output:

make[3] -C tools/firmware-utils compile

make -r world: build failed. Please re-run make with V=99 to see what's going on
make: * [world] Error 1

make V=99 output:

cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/imagetag src/imagetag.c
src/imagetag.c:19:21: fatal error: bcm_tag.h: No such file or directory

To reproduce:

Check out 10.03 from svn.
Run make menuconfig.
Set target system to x86, subtarget generic, profile pcengines wrap
In kernel modules, set kmod-ath5k as a module.
Save config.
Run make.

bcm_tag.h exists in ./target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h but this is an x86 compile, and I didn't select any broadcom stuff.

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to accepted

bcm_tag.h is a symbolic link to target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h. Can you please verify this works on your machine?

I could not reproduce the issue here with 10.03:

(SSH):florian@florian:[~/../backfire_10.03]$ make tools/firmware-utils/{clean,compile,install} V=99 -j2
++ mkdir -p /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1
++ cd /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1
++ mkdir -p stamp lib usr/include usr/lib
make[4]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03/target/linux'
make[5]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03/target/linux/brcm63xx'
make[6]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03/target/linux/brcm63xx/image'
make[6]: Leaving directory `/home/florian/dev/openwrt/tags/backfire_10.03/target/linux/brcm63xx/image'
make[5]: Leaving directory `/home/florian/dev/openwrt/tags/backfire_10.03/target/linux/brcm63xx'
make[4]: Leaving directory `/home/florian/dev/openwrt/tags/backfire_10.03/target/linux'
make[1]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03'
make[2]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03/tools/firmware-utils'
rm -rf /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/stamp/.firmware-utils_installed /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils/.built
make[2]: Leaving directory `/home/florian/dev/openwrt/tags/backfire_10.03/tools/firmware-utils'
make[1]: Leaving directory `/home/florian/dev/openwrt/tags/backfire_10.03'
make[1]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03'
++ mkdir -p /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/target-mips_uClibc-0.9.30.1
++ mkdir -p /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host
++ cd /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/target-mips_uClibc-0.9.30.1
++ mkdir -p bin lib include stamp
mkdir -p /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/target-mips_uClibc-0.9.30.1/stamp
++ cd /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host
++ mkdir -p bin lib include stamp
touch /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/target-mips_uClibc-0.9.30.1/.prepared
mkdir -p /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/stamp
install -m0644 /home/florian/dev/openwrt/tags/backfire_10.03/tools/include/*.h /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/include/
touch /home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/.prepared
make[2]: Entering directory `/home/florian/dev/openwrt/tags/backfire_10.03/tools/firmware-utils'
touch /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils/.prepared95d290cf817a43a0e9bcc9a7bb6bbde7
(cd /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils/; if [ -x configure ]; then cp -fpR /home/florian/dev/openwrt/tags/backfire_10.03/scripts/config.{guess,sub} /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils// &&  ./configure CFLAGS="-O2 -I/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/include" CPPFLAGS="-O2 -I/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/include" LDFLAGS="-L/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/lib" SHELL="/bin/bash" --target=i486-linux-gnu --host=i486-linux-gnu --build=i486-linux-gnu --program-prefix="" --program-suffix="" --prefix=/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host --exec-prefix=/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host --sysconfdir=/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/etc --localstatedir=/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/var ; fi )
touch /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils/.configured
mkdir -p /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils/bin
[...]
cc -O2 -I/home/florian/dev/openwrt/tags/backfire_10.03/staging_dir/host/include -include endian.h -o /home/florian/dev/openwrt/tags/backfire_10.03/build_dir/host/firmware-utils/bin/imagetag src/imagetag.c 

comment:2 Changed 7 years ago by drb@…

find . | grep bcm_tag.h produces:

./tools/firmware-utils/src/.svn/text-base/bcm_tag.h.svn-base
./tools/firmware-utils/src/.svn/prop-base/bcm_tag.h.svn-base
./target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h
./target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/.svn/text-base/bcm_tag.h.svn-base
./target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/.svn/prop-base/bcm_tag.h.svn-base

I see no symlink here, just the .h file.

Using your make command (make tools/firmware-utils/{clean,compile,install} V=99 -j2) produces the same problem:

make[1]: Entering directory `/usr/src/openwrt_backfire/backfire'
make[2]: Entering directory `/usr/src/openwrt_backfire/backfire/tools/firmware-utils'
rm -rf /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils /usr/src/openwrt_backfire/backfire/staging_dir/host/stamp/.firmware-utils_installed /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/.built
make[2]: Leaving directory `/usr/src/openwrt_backfire/backfire/tools/firmware-utils'
make[1]: Leaving directory `/usr/src/openwrt_backfire/backfire'
make[1]: Entering directory `/usr/src/openwrt_backfire/backfire'
++ mkdir -p /usr/src/openwrt_backfire/backfire/staging_dir/host
++ mkdir -p /usr/src/openwrt_backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1
++ cd /usr/src/openwrt_backfire/backfire/staging_dir/host
++ cd /usr/src/openwrt_backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1
++ mkdir -p bin lib include stamp
++ mkdir -p bin lib include stamp
mkdir -p /usr/src/openwrt_backfire/backfire/build_dir/target-i386_uClibc-0.9.30.1/stamp
mkdir -p /usr/src/openwrt_backfire/backfire/build_dir/host/stamp
touch /usr/src/openwrt_backfire/backfire/staging_dir/target-i386_uClibc-0.9.30.1/.prepared
install -m0644 /usr/src/openwrt_backfire/backfire/tools/include/*.h /usr/src/openwrt_backfire/backfire/staging_dir/host/include/
touch /usr/src/openwrt_backfire/backfire/staging_dir/host/.prepared
make[2]: Entering directory `/usr/src/openwrt_backfire/backfire/tools/firmware-utils'
touch /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/.preparedc09390108bbebc4c88df8ad6f1a44703
(cd /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/; if [ -x configure ]; then cp -fpR /usr/src/openwrt_backfire/backfire/scripts/config.{guess,sub} /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils && ./configure CFLAGS="-O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include" CPPFLAGS="-O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include" LDFLAGS="-L/usr/src/openwrt_backfire/backfire/staging_dir/host/lib" SHELL="/bin/bash" --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr/src/openwrt_backfire/backfire/staging_dir/host --exec-prefix=/usr/src/openwrt_backfire/backfire/staging_dir/host --sysconfdir=/usr/src/openwrt_backfire/backfire/staging_dir/host/etc --localstatedir=/usr/src/openwrt_backfire/backfire/staging_dir/host/var ; fi )
touch /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/.configured
mkdir -p /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/addpattern src/addpattern.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/trx src/trx.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/motorola-bin src/motorola-bin.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/dgfirmware src/dgfirmware.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/trx2usr src/trx2usr.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/ptgen src/ptgen.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/airlink src/airlink.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/srec2bin src/srec2bin.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/mkmylofw src/mkmylofw.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/mkcsysimg src/mkcsysimg.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/mkzynfw src/mkzynfw.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/lzma2eva src/lzma2eva.c -lz
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/mkcasfw src/mkcasfw.c
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/mkfwimage src/mkfwimage.c -lz
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/mkfwimage2 src/mkfwimage2.c -lz
cc -O2 -I/usr/src/openwrt_backfire/backfire/staging_dir/host/include -include endian.h -o /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/bin/imagetag src/imagetag.c
src/imagetag.c:19:21: fatal error: bcm_tag.h: No such file or directory
compilation terminated.
make[2]: * /usr/src/openwrt_backfire/backfire/build_dir/host/firmware-utils/.built Error 1
make[2]: Leaving directory `/usr/src/openwrt_backfire/backfire/tools/firmware-utils'
make[1]:
* [tools/firmware-utils/compile] Error 2
make[1]: Leaving directory `/usr/src/openwrt_backfire/backfire'
make: * [tools/firmware-utils/compile] Error 2

comment:3 Changed 7 years ago by drb@…

Manually creating a symlink in staging_dir/host/include/ pointing to target/linux/brcm63xx/files/arch/mips/include/asm/mach-bcm63xx/bcm_tag.h does seem to solve the problem.

comment:4 Changed 7 years ago by florian

  • Resolution set to worksforme
  • Status changed from accepted to closed

Please use a supported building platform (i.e: cygwin on Windows).

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.