Modify

Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#11775 closed defect (worksforme)

uClibc 0.9.33.2 Compilation error

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

Description

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-0.9.33.2/uClibc-0.9.33.2/Rules.mak
PATH='/home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:/home/olegun/openwrt/trunk/staging_dir/host/bin:/home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:/home/olegun/openwrt/trunk/staging_dir/host/bin:/home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:/home/olegun/openwrt/trunk/staging_dir/host/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/olegun/bin' make -C /home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2 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-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/libgcc_initial.a" DOSTRIP="" PREFIX= all
make[4]: Entering directory `/home/olegun/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2'
cd ./; make lib/ld-uClibc.so
make[5]: `lib/ld-uClibc.so' 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-0.9.33.2/linux-dev/include/ -isystem /home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/include-fixed -isystem /home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/include -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 <https://dev.openwrt.org/> 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-0.9.33.2/uClibc-0.9.33.2'
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-0.9.33.2/uClibc-0.9.33.2'
make[3]: * home/olegun/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.uclibc_installed Error 2
make[3]: Leaving directory `/home/olegun/openwrt/trunk/toolchain/uClibc'
make[2]:
* [toolchain/uClibc/compile] Error 2

Attachments (0)

Change History (9)

comment:1 Changed 4 years ago by olegun@…

I found what is wrong. uClibc 0.9.33.2 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 4 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 4 years ago by olegun@…

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

comment:4 Changed 4 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 4 years ago by olegun@…

OK, git is working now !

comment:6 Changed 4 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 4 years ago by olegun@…

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

comment:8 Changed 4 years ago by nbd

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

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