Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#11775 closed defect (worksforme)

uClibc Compilation error

Reported by: olegun@… Owned by: developers
Priority: highest Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: uClibc Cc:


part of log 'make V=s':

make[3]: Entering directory `/home/olegun/openwrt/trunk/toolchain/uClibc'
/home/olegun/openwrt/trunk/staging_dir/host/bin/sed -i -e 's,CROSS=.*,CROSS=mips-openwrt-linux-uclibc-,g' /home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-
PATH='/home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-' make -C /home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" 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 DEVEL_PREFIX=/ RUNTIME_PREFIX=/ HOSTCC="gcc" CPU_CFLAGS="-funsigned-char -fno-builtin -fno-asm --std=gnu99 -ffunction-sections -fdata-sections -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" ARCH=""mips"" LIBGCC="/home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-" DOSTRIP="" PREFIX= all
make[4]: Entering directory `/home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-'
cd ./; make lib/
make[5]: `lib/' is up to date.
mips-openwrt-linux-uclibc-gcc -c libc/misc/internals/errno.c -o libc/misc/internals/errno.os -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -funsigned-char -fno-builtin -fno-asm --std=gnu99 -ffunction-sections -fdata-sections -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/mips -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -mno-split-addresses -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/mips/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/mips -I./libpthread/nptl/sysdeps/mips -I./libpthread/nptl/sysdeps/mips -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/mips -I./ldso/include -I./libc/sysdeps/linux/common -I/home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- -isystem /home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- -isystem /home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- -DNDEBUG -DUSE_STDIO_FUTEXES -fPIC -MT libc/misc/internals/errno.os -MD -MP -MF libc/misc/internals/.errno.os.dep
libc/misc/internals/errno.c:8:1: internal compiler error: in do_assemble_alias, at varasm.c:5444
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
make[4]: * [libc/misc/internals/errno.os] Error 1
make[4]: Leaving directory `/home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-'
* [libc/misc/internals/errno.os] Error 1
make[4]: Leaving directory `/home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-'
make[3]: * home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc- Error 2
make[3]: Leaving directory `/home/olegun/openwrt/trunk/toolchain/uClibc'
* [toolchain/uClibc/compile] Error 2

Attachments (0)

Change History (9)

comment:1 Changed 5 years ago by olegun@…

I found what is wrong. uClibc requires gcc 4.7. With gcc 4.6 it could not be compiled. May be it is good idea to automatically set gcc to 4.7 by default ? in gcc's config.version file ?

comment:2 Changed 5 years ago by florian

The default toolchainv ersion is precisely gcc-4.6-linaro because it is know to work, have you changed uClibc's configuration?

comment:3 Changed 5 years ago by olegun@…

No, I have not changed uClibc configuration, because of only single choice is present - uClibc I have seen to file - no another versions of uClibc is available - only that.

comment:4 Changed 5 years ago by olegun@…

Note. I have buildroot for TP-LINK MR3420. In 'Downloads' section there are no nightly builds for 'ar71xx' since 27.06.2012 - as I also can't compile 'trunk' sources.
Now 'netifd' is not accessible in git repository - 'Connection refused'...

comment:5 Changed 5 years ago by olegun@…

OK, git is working now !

comment:6 Changed 5 years ago by nbd

It looks to me like the error is on your build host. On pretty much all systems that I've built on, uclibc compiles just fine with gcc 4.6.
If you run make dirclean and reset the config to defaults (using 4.6 again), does it fail in exactly the same place again?

comment:7 Changed 5 years ago by olegun@…

OK, it's works ! 'make dirclean + reset to defaults' - and all is OK. Thanks!

comment:8 Changed 5 years ago by nbd

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

comment:9 Changed 3 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

as closed .
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.