Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#9847 closed defect (fixed)

ubus fails to build (ar71xx, gcc 4.6.1, linux-2.6.39.3)

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

Description

When building trunk (r27838) for ar71xx, using gcc 4.6.1 and 2.6.39.3 kernel, ubus emits following error:

make[3]: Entering directory `/home/risa/openwrt/openwrt/package/ubus'
CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include  -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/usr/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/include " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include  -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/usr/include -I/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/include " LDFLAGS="-L/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib -L/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/lib -L/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/usr/lib -L/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/lib " make -j1 -C /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" 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" VERBOSE=1 ;
make[4]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
/home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -H/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 -B/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 --check-build-system CMakeFiles/Makefile.cmake 0
/home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_progress_start /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[5]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make -f CMakeFiles/ubus.dir/build.make CMakeFiles/ubus.dir/depend
make[6]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
cd /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 && /home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_depends "Unix Makefiles" /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles/ubus.dir/DependInfo.cmake --color=
make[6]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make -f CMakeFiles/ubus.dir/build.make CMakeFiles/ubus.dir/build
make[6]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make[6]: Nothing to be done for `CMakeFiles/ubus.dir/build'.
make[6]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
/home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_progress_report /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles  2
[ 12%] Built target ubus
make -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/depend
make[6]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
cd /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 && /home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_depends "Unix Makefiles" /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles/cli.dir/DependInfo.cmake --color=
make[6]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make -f CMakeFiles/cli.dir/build.make CMakeFiles/cli.dir/build
make[6]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make[6]: Nothing to be done for `CMakeFiles/cli.dir/build'.
make[6]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
/home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_progress_report /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles  1
[ 25%] Built target cli
make -f CMakeFiles/ubus-example.dir/build.make CMakeFiles/ubus-example.dir/depend
make[6]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
cd /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 && /home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_depends "Unix Makefiles" /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27 /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles/ubus-example.dir/DependInfo.cmake --color=
make[6]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make -f CMakeFiles/ubus-example.dir/build.make CMakeFiles/ubus-example.dir/build
make[6]: Entering directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
/home/risa/openwrt/openwrt/staging_dir/host/bin/cmake -E cmake_progress_report /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/CMakeFiles 3
[ 37%] Building C object CMakeFiles/ubus-example.dir/ubus-example.c.o
/home/risa/openwrt/openwrt/staging_dir/toolchain-mips_r2_gcc-4.6.1_uClibc-0.9.32/bin/mips-openwrt-linux-uclibc-gcc   -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include   -DNDEBUG   -Os -Wall -Werror --std=gnu99 -g3 -o CMakeFiles/ubus-example.dir/ubus-example.c.o   -c /home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/ubus-example.c
/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/ubus-example.c: In function 'main':
/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/ubus-example.c:63:14: error: variable 'progname' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[6]: *** [CMakeFiles/ubus-example.dir/ubus-example.c.o] Error 1
make[6]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make[5]: *** [CMakeFiles/ubus-example.dir/all] Error 2
make[5]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27'
make[3]: *** [/home/risa/openwrt/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/ubus-2011-03-27/.built] Error 2
make[3]: Leaving directory `/home/risa/openwrt/openwrt/package/ubus'
make[2]: *** [package/ubus/compile] Error 2
make[2]: Leaving directory `/home/risa/openwrt/openwrt'
make[1]: *** [/home/risa/openwrt/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/risa/openwrt/openwrt'
make: *** [world] Error 2

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by jogo

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

This was fixed by not making it an error any more with [30566].

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