Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13150 closed defect (fixed)

bridge-utils does not build (r35913, ar71xx)

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

Description

When building latest trunk for ar71xx, build of bridge-utils fails with following error:

risa@gentoo-vb ~/openwrt/openwrt $ make package/bridge-utils/clean
 make[1] package/bridge-utils/clean
 make[2] -C feeds/packages/net/bridge-utils clean
risa@gentoo-vb ~/openwrt/openwrt $ make package/bridge-utils/compile V=s
make[1]: Entering directory `/home/risa/openwrt/openwrt'
make[2]: Entering directory `/home/risa/openwrt/openwrt/package/toolchain'
if [ -f /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install
WARNING: skipping libssp -- package not selected
WARNING: skipping libgfortran -- package not selected
make[2]: Leaving directory `/home/risa/openwrt/openwrt/package/toolchain'
make[2]: Entering directory `/home/risa/openwrt/openwrt/feeds/packages/net/bridge-utils'
. /home/risa/openwrt/openwrt/include/shell.sh; gzip -dc /home/risa/openwrt/openwrt/dl/bridge-utils-1.5.tar.gz | /bin/tar -C /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/.. -xf - 

Applying ./patches/001-libbridge_cflags.patch using plaintext: 
patching file libbridge/Makefile.in
( cd /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5 ; [ -f ./configure ] || { ln -sf configure.in configure.ac ; autoconf ; } )
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
touch /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/.prepared_8cc7e70d864980ff6f8163c2f7233844
(cd /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/./; if [ -x ./configure ]; then /usr/bin/find /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ -name config.guess | xargs -r -n1 cp /home/risa/openwrt/openwrt/scripts/config.guess; /usr/bin/find /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ -name config.sub | xargs -r -n1 cp /home/risa/openwrt/openwrt/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="ccache_cc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CPPFLAGS="-I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/usr/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/usr/lib -L/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/lib "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   --with-linux-headers="/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.8.2"  ; fi; )
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/risa/openwrt/openwrt/include/site/mips-openwrt-linux-uclibc
checking for mips-openwrt-linux-gcc... ccache_cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ccache_cc accepts -g... yes
checking for ccache_cc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-uclibc-ranlib
checking how to run the C preprocessor... ccache_cc -E
checking for grep that handles long lines and -e... /home/risa/openwrt/openwrt/staging_dir/host/bin/grep
checking for egrep... /home/risa/openwrt/openwrt/staging_dir/host/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for gethostname... yes
checking for socket... yes
checking for strdup... yes
checking for uname... yes
checking for if_nametoindex... yes
checking for if_indextoname... yes
configure: creating ./config.status
config.status: creating doc/Makefile
config.status: WARNING:  'doc/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating libbridge/Makefile
config.status: creating brctl/Makefile
config.status: WARNING:  'brctl/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating bridge-utils.spec
config.status: creating libbridge/config.h
configure: WARNING: unrecognized options: --disable-nls
rm -f /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/.configured_*
touch /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/.configured_
CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/usr/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/usr/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/usr/lib -L/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/. AR=mips-openwrt-linux-uclibc-ar AS="ccache_cc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" ;
make[3]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5'
for x in libbridge brctl doc; do make -w -C $x ; done
make[4]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/libbridge'
ccache_cc -Wall -g -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.8.2  -c libbridge_devif.c
In file included from libbridge.h:24:0,
                 from libbridge_devif.c:28:
/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.7.3/../../../../mips-openwrt-linux-uclibc/sys-include/linux/if_bridge.h:172:20: error: field 'ip6' has incomplete type
make[4]: *** [libbridge_devif.o] Error 1
make[4]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/libbridge'
make[4]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/brctl'
ccache_cc -Wall -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I../libbridge -I/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.8.2  -c brctl.c 
In file included from ../libbridge/libbridge.h:24:0,
                 from brctl.c:25:
/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.7.3/../../../../mips-openwrt-linux-uclibc/sys-include/linux/if_bridge.h:172:20: error: field 'ip6' has incomplete type
make[4]: *** [brctl.o] Error 1
make[4]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/brctl'
make[4]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/doc'
make[3]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5'
touch /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/.built
mkdir -p /home/risa/openwrt/openwrt/bin/ar71xx/packages /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ipkg-ar71xx/bridge/CONTROL /home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo
install -d -m0755 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ipkg-ar71xx/bridge/usr/sbin
install -m0755 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/brctl/brctl /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/ipkg-ar71xx/bridge/usr/sbin
install: cannot stat '/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/bridge-utils-1.5/brctl/brctl': No such file or directory
make[2]: *** [/home/risa/openwrt/openwrt/bin/ar71xx/packages/bridge_1.5-1_ar71xx.ipk] Error 1
make[2]: Leaving directory `/home/risa/openwrt/openwrt/feeds/packages/net/bridge-utils'
make[1]: *** [package/feeds/packages/bridge-utils/compile] Error 2
make[1]: Leaving directory `/home/risa/openwrt/openwrt'
make: *** [package/bridge-utils/compile] Error 2

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by drkhosla@…

I am also facing same problem with r35998.

comment:2 Changed 5 years ago by florian

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

Fixed with r35999

comment:3 Changed 5 years ago by Dr. Ajay N. Khosla <drkhosla@…>

Thanks florian, it works for me.

comment:4 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.