Modify

Opened 8 years ago

Closed 7 years ago

Last modified 22 months ago

#4260 closed defect (wontfix)

uClibc snapshot does not compile

Reported by: KanjiMonster Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: toolchain Version:
Keywords: Cc:

Description

When trying to build uClibc snapshot (for brcm47xx-2.6, leaving all other options at default, build fails in first uClibc/prepare:

make[3]: Entering directory `/home/xxx/openwrt/trunk/toolchain/uClibc'
mkdir -p /home/xxx/openwrt/trunk/dl
/home/xxx/openwrt/trunk/scripts/download.pl "/home/xxx/openwrt/trunk/dl" "uClibc-snapshot.tar.bz2" "" http://www.uclibc.org/downloads/snapshots
--2008-11-27 00:14:21--  http://www.uclibc.org/downloads/snapshots/uClibc-snapshot.tar.bz2
Resolving www.uclibc.org... 140.211.166.42
Connecting to www.uclibc.org|140.211.166.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3653349 (3.5M) [application/x-tar]
Saving to: `STDOUT'

100%[====================================================================================>] 3,653,349    713K/s   in 6.2s

2008-11-27 00:14:28 (572 KB/s) - `-' saved [3653349/3653349]

prepare uClibc version 0.9.29snapshot
bzcat /home/xxx/openwrt/trunk/dl/uClibc-snapshot.tar.bz2 | /bin/tar -C /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/.. -xf -
rm -Rf /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot
ln -snf /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot
cp -fpR ././config/mipsel /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/.config
/home/xxx/openwrt/trunk/staging_dir/host/bin/sed -i -e 's,^KERNEL_HEADERS=.*,KERNEL_HEADERS=\"/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include\",g' -e 's,.*UCLIBC_HAS_FPU.*,UCLIBC_HAS_FPU=y,g' -e 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=y,g' -e 's,^.*CONFIG_ARM_EABI.*,CONFIG_ARM_EABI=n,g' -e 's,^.*CONFIG_ARM_OABI.*,CONFIG_ARM_OABI=y,g' -e 's,^.*UCLIBC_HAS_SHADOW.*,UCLIBC_HAS_SHADOW=y,g' /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/.config
mkdir -p /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/include
mkdir -p /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/lib
mkdir -p /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/lib
if [ ! -f /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/include/linux/version.h ] ; then cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/include/; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm-mips /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/include/; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm-generic /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/include/; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/linux /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/usr/include/; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm /home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm-mips /home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm-generic /home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/linux /home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm-mips /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/asm-generic /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/include/ ; cp -pLR /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/linux /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/include/ ; fi;
make -C /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/extra/config conf KBUILD_HAVE_NLS= HOSTCFLAGS="-DKBUILD_NO_NLS"
make[4]: Entering directory `/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc/extra/config'
gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE  -DKBUILD_NO_NLS -MM *.c > .depend 2>/dev/null || :
make[4]: Leaving directory `/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc/extra/config'
make[4]: Entering directory `/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc/extra/config'
gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE  -DKBUILD_NO_NLS  -c conf.c -o conf.o
gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE  -DKBUILD_NO_NLS  -c kxgettext.c -o kxgettext.o
cat zconf.tab.c_shipped > zconf.tab.c
cat lex.zconf.c_shipped > lex.zconf.c
cat zconf.hash.c_shipped > zconf.hash.c
gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE  -DKBUILD_NO_NLS -I. -c zconf.tab.c -o zconf.tab.o
gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE  -DKBUILD_NO_NLS  conf.o  zconf.tab.o -lncurses -o conf
make[4]: Leaving directory `/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc/extra/config'
PATH=/home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin:/home/xxx/openwrt/trunk/staging_dir/host/bin:/home/xxx/openwrt/trunk/staging_dir/mipsel/host/bin:/home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin:/home/xxx/openwrt/trunk/staging_dir/host/bin:/home/xxx/openwrt/trunk/staging_dir/mipsel/host/bin:/home/xxx/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin:/home/xxx/openwrt/trunk/staging_dir/host/bin:/home/xxx/openwrt/trunk/staging_dir/mipsel/host/bin:/usr/local/bin:/usr/bin:/bin:/usr/games make -C /home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot PREFIX=/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/ DEVEL_PREFIX=/usr/ RUNTIME_PREFIX=/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc_dev/ HOSTCC="gcc" CPU_CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" pregen install_dev;
make[4]: Entering directory `/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc'
install -d include/bits
set -e; \
        cd ./; \
        tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null || true`; \
        [ -z "$tmp" ] && tmp='include/bits/sysnum.h.new'; \
        KERNEL_HEADERS="/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/" top_builddir=. CC="gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" /bin/sh extra/scripts/gen_bits_syscall_h.sh > $tmp; \
        if cmp include/bits/sysnum.h $tmp >/dev/null 2>&1; then \
                rm -f $tmp; \
        else \
                mv -f $tmp include/bits/sysnum.h; \
        fi
cc1: error: unrecognized command line option "-mips32"
cc1: error: unrecognized command line option "-fhonour-copts"
cc1: error: bad value (mips32) for -mtune= switch
cc1: error: unrecognized command line option "-mips32"
cc1: error: unrecognized command line option "-fhonour-copts"
cc1: error: bad value (mips32) for -mtune= switch
if grep -q __NR_ include/bits/sysnum.h; then true; else \
                rm -f include/bits/sysnum.h; \
                echo "ERROR: Could not generate syscalls."; \
                echo "Make sure that you have proper kernel headers."; \
                echo "Your .config in KERNEL_HEADERS=\"\" was set to:"; \
                echo "/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/"; \
                exit 1; \
        fi
ERROR: Could not generate syscalls.
Make sure that you have proper kernel headers.
Your .config in KERNEL_HEADERS="" was set to:
/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/linux/include/
make[4]: *** [include/bits/sysnum.h] Error 1
make[4]: Leaving directory `/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc'
make[3]: *** [/home/xxx/openwrt/trunk/build_dir/toolchain-mipsel_gcc4.1.2/uClibc-snapshot/.prepared7a522e501315a4cddceb4f1d2f49e535] Error 2
make[3]: Leaving directory `/home/xxx/openwrt/trunk/toolchain/uClibc'
make[2]: *** [toolchain/uClibc/prepare] Error 2
make[2]: Leaving directory `/home/xxx/openwrt/trunk'
make[1]: *** [/home/xxx/openwrt/trunk/staging_dir/mipsel/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/xxx/openwrt/trunk'
make: *** [world] Error 2

compiling with 0.9.29 works fine. I am using a debian system for compiling. Trunk revision is r13370.[br]

Trying to use 0.9.30 results in the same error.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by nbd

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

snapshot is not supported, it's only for testing specific stuff and may be broken at any time. r15179 reflects this

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