Modify

Opened 10 years ago

Closed 7 years ago

#2800 closed defect (obsolete)

Trunk (r9650) won't build on Debian Etch

Reported by: openwrt@… Owned by: developers
Priority: normal Milestone:
Component: toolchain Version: Trunk
Keywords: Cc:

Description

The assembler does not like a flag.

Someone else had the same problem (http://forum.openwrt.org/viewtopic.php?id=13220). Could be a bug in Debian.

Sorry for the long lines.

make[7]: Leaving directory `/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/gcc'
(SHLIB_LINK='/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/./gcc/xgcc -B/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/./gcc/ -B/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/bin/ -B/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/lib/ -isystem /home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/include -isystem /home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/sys-include -O2  -g -Os -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=@shlib_base_name@.so.1 -Wl,--version-script=@shlib_map_file@ -o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ @shlib_objs@ -lc && rm -f @multilib_dir@/@shlib_base_name@.so && if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then mv -f @multilib_dir@/@shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so.1.backup; else true; fi && mv @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_dir@/@shlib_base_name@.so.1 && ln -s @shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so' \
        SHLIB_MULTILIB=''; \
        gcc -c   -g -O2  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -I. -I. -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/. -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../include -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../libcpp/include     -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.1.2\" -DDEFAULT_TARGET_MACHINE=\"mipsel-linux-uclibc\" -DSTANDARD_BINDIR_PREFIX=\"/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
                -I. -I. -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/. -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../include -I/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../libcpp/include  /home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/cp/g++spec.c)
/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin/mipsel-linux-uclibc-as: unrecognized option `-Qy'
make[6]: *** [g++spec.o] Error 1
make[6]: Leaving directory `/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/gcc'
make[5]: *** [all-gcc] Error 2
make[5]: Leaving directory `/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/will/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final'
make[3]: *** [/home/will/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/stamp/.gcc_installed] Error 2
make[3]: Leaving directory `/home/will/openwrt/trunk/toolchain/gcc'
make[2]: *** [toolchain/gcc/install] Error 2
make[2]: Leaving directory `/home/will/openwrt/trunk'
make[1]: *** [/home/will/openwrt/trunk/staging_dir/mipsel/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/will/openwrt/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (5)

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

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

fixed in r9717

comment:2 in reply to: ↑ 1 Changed 10 years ago by buildster

  • Resolution fixed deleted
  • Status changed from closed to reopened

Thank you for the r9717 fix.

The problem still exists in the build of Target System Broadcom BCM947xx/953xx [2.6] and Target Profile (Broadcom BCM43xx WiFi) when using gcc 4.1.2 (the default) or 4.2.2 on Fedora 7. However, it's working with gcc 3.4.6.

Compare the problematic command using gcc 4.1.2 with the working command using gcc 3.4.6, a -O2 optimization flag is missing. Not sure where it's set nor whether it's an issue.

gcc -c   -g -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -I. -I. -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/. -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../include -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../libcpp/include     -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.1.2\" -DDEFAULT_TARGET_MACHINE=\"mipsel-linux-uclibc\" -DSTANDARD_BINDIR_PREFIX=\"/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
                -I. -I. -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/. -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../include -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/../libcpp/include  /home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2/gcc/cp/g++spec.c)
/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin/mipsel-linux-uclibc-as: unrecognized option `-Qy'
make[6]: *** [g++spec.o] Error 1
gcc -c  -DUSE_UCLIBC -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"3.4.6\" -DDEFAULT_TARGET_MACHINE=\"mipsel-linux-uclibc\" -DSTANDARD_BINDIR_PREFIX=\"/home/worker/openwrt/trunk/staging_dir/toolchain-mipsel_gcc3.4.6/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
                -I. -I. -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc3.4.6/gcc-3.4.6/gcc -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc3.4.6/gcc-3.4.6/gcc/. -I/home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc3.4.6/gcc-3.4.6/gcc/../include  /home/worker/openwrt/trunk/build_dir/toolchain-mipsel_gcc3.4.6/gcc-3.4.6/gcc/cp/g++spec.c)

comment:3 Changed 9 years ago by florian

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

It works fine on etch now.

comment:4 Changed 8 years ago by eschoeller@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

This is broken on Lenny. Would have been nice if someone indicated what the fix was.

/openwrt/backfire-20654/staging_dir/toolchain-mips_r2_gcc-4.3.3_uClibc-0.9.30.1/usr/mips-openwrt-linux-uclibc/bin/as: unrecognized option `-Qy'

comment:5 Changed 7 years ago by nbd

  • Resolution set to obsolete
  • Status changed from reopened to closed
  • Version set to Trunk

Most likely your issue is some random package picking the wrong compiler. If you still have such an issue, make a new ticket instead, and actually provide some useful information regarding the context.

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.