Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#20000 closed defect (fixed)

Use uClibc compile error

Reported by: fclql Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: toolchain Version: Trunk
Keywords: Cc:

Description

cp: cannot stat `/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libssp.so.*': No such file or directory

Attachments (0)

Change History (19)

comment:1 Changed 3 years ago by anonymous

Same.
Ticket /ticket/19976.html and /ticket/19987.html is open. But why is the problem not in a hurry.

comment:2 Changed 3 years ago by fclql@…

/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/localefwd.h: At global scope:
/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/localefwd.h:133:40: error: 'mbstate_t' was not declared in this scope
   template<> class codecvt<char, char, mbstate_t>;
                                        ^
/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/localefwd.h:133:49: error: template argument 3 is invalid
   template<> class codecvt<char, char, mbstate_t>;
                                                 ^
/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/localefwd.h:135:43: error: 'mbstate_t' was not declared in this scope
   template<> class codecvt<wchar_t, char, mbstate_t>;
                                           ^
/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/mipsel-openwrt-linux-uclibc/include/c++/4.8.3/bits/localefwd.h:135:52: error: template argument 3 is invalid
   template<> class codecvt<wchar_t, char, mbstate_t>;
                                                    ^
make[5]: *** [../obj_s/cursesmain.o] Error 1
make[5]: Leaving directory `/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libncurses/ncurses-5.9/c++'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libncurses/ncurses-5.9'
make[3]: *** [/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/libncurses/ncurses-5.9/.built] Error 2
make[3]: Leaving directory `/home/openwrt/h2ofan/package/libs/ncurses'
make[2]: *** [package/libs/ncurses/compile] Error 2
make[2]: Leaving directory `/home/openwrt/trunk'
make[1]: *** [/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/trunk'
make: *** [world] Error 2

comment:3 Changed 3 years ago by nbd

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

Please run make dirclean, it should resolve this error

comment:4 Changed 3 years ago by bittorf@…

after 'make dirclean' and 'make -j1' i get this:

bastian@gcc20:~/openwrt$ cat logs/package/libs/toolchain/compile.txt
bash: /home/bastian/openwrt/staging_dir/host/bin/flock: No such file or directory
make[3]: *** [/home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/stamp/.libc_installed] Error 127

comment:5 follow-up: Changed 3 years ago by nbd

Must be something weird going on with your build host - after dirclean the entire tools/ folder is built again, and flock is built as part of that

comment:6 in reply to: ↑ 5 Changed 3 years ago by bittorf@…

Replying to nbd:

Must be something weird going on with your build host - after dirclean the entire tools/ folder is built again, and flock is built as part of that

unsure how to enforce that:

bastian@gcc20:~/openwrt$ make tools/flock/clean
 make[1] tools/flock/clean
 make[2] -C tools/flock clean

bastian@gcc20:~/openwrt$ make tools/flock/compile V=s
make[1]: Entering directory `/home/bastian/openwrt'
+ mkdir -p /home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2
+ cd /home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2
+ mkdir -p bin lib include stamp
mkdir -p /home/bastian/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/stamp
touch /home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/.prepared
+ mkdir -p /home/bastian/openwrt/staging_dir/host
+ cd /home/bastian/openwrt/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /home/bastian/openwrt/build_dir/host/stamp /home/bastian/openwrt/staging_dir/host/include/sys
install -m0644 /home/bastian/openwrt/tools/include/*.h /home/bastian/openwrt/staging_dir/host/include/
install -m0644 /home/bastian/openwrt/tools/include/sys/*.h /home/bastian/openwrt/staging_dir/host/include/sys/
ln -sf lib /home/bastian/openwrt/staging_dir/host/lib64
touch /home/bastian/openwrt/staging_dir/host/.prepared
make[2]: Entering directory `/home/bastian/openwrt/tools/flock'
touch /home/bastian/openwrt/build_dir/host/flock/.prepared33fd2ff1053604024f80691a3b15bb06
(cd /home/bastian/openwrt/build_dir/host/flock/; if [ -x configure ]; then cp -fpR /home/bastian/openwrt/scripts/config.{guess,sub} /home/bastian/openwrt/build_dir/host/flock// &&  bash ./configure CC="gcc" CFLAGS="-O2 -I/home/bastian/openwrt/staging_dir/host/include -I/home/bastian/openwrt/staging_dir/host/usr/include" CPPFLAGS="-I/home/bastian/openwrt/staging_dir/host/include -I/home/bastian/openwrt/staging_dir/host/usr/include" LDFLAGS="-L/home/bastian/openwrt/staging_dir/host/lib -L/home/bastian/openwrt/staging_dir/host/usr/lib" SHELL="/usr/bin/env bash" --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/home/bastian/openwrt/staging_dir/host --exec-prefix=/home/bastian/openwrt/staging_dir/host --sysconfdir=/home/bastian/openwrt/staging_dir/host/etc --localstatedir=/home/bastian/openwrt/staging_dir/host/var --sbindir=/home/bastian/openwrt/staging_dir/host/bin ; fi )
touch /home/bastian/openwrt/build_dir/host/flock/.configured
mkdir -p /home/bastian/openwrt/build_dir/host/flock
gcc -O2 -I/home/bastian/openwrt/staging_dir/host/include -I/home/bastian/openwrt/staging_dir/host/usr/include -o /home/bastian/openwrt/build_dir/host/flock/flock src/flock.c
touch /home/bastian/openwrt/build_dir/host/flock/.built
make[2]: Leaving directory `/home/bastian/openwrt/tools/flock'
make[1]: Leaving directory `/home/bastian/openwrt'

bastian@gcc20:~/openwrt$ ls -l /home/bastian/openwrt/staging_dir/host/bin/flock
ls: cannot access /home/bastian/openwrt/staging_dir/host/bin/flock: No such file or directory

comment:7 Changed 3 years ago by nbd

make tools/flock/install

comment:8 Changed 3 years ago by anonymous

  • Resolution not_a_bug deleted
  • Status changed from closed to reopened

Still problem after make dirclean

[code]
/home/testlab/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
Makefile:63: recipe for target 'libuClibc++-0.2.4.so' failed
make[5]: * [libuClibc++-0.2.4.so] Error 1
make[5]: Leaving directory '/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4/src'
Makefile:14: recipe for target 'all' failed
make[4]:
* [all] Error 2
make[4]: Leaving directory '/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4'
Makefile:93: recipe for target '/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4/.built' failed
make[3]: * /home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4/.built Error 2
make[3]: Leaving directory '/home/testlab/trunk/package/libs/uclibc++'
package/Makefile:191: recipe for target 'package/libs/uclibc++/compile' failed
make[2]:
* [package/libs/uclibc++/compile] Error 2
make[2]: Leaving directory '/home/testlab/trunk'
package/Makefile:188: recipe for target '/home/testlab/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: * /home/testlab/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory '/home/testlab/trunk'
/home/testlab/trunk/include/toplevel.mk:181: recipe for target 'world' failed
make:
* [world] Error 2
[/code]

Of course I had svn up && ./scripts/feeds update -a

comment:9 follow-up: Changed 3 years ago by nbd

did you run make oldconfig after updating and before running make dirclean?

comment:10 Changed 3 years ago by anonymous

Still problem after make dirclean

/home/testlab/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
Makefile:63: recipe for target 'libuClibc++-0.2.4.so' failed
make[5]: *** [libuClibc++-0.2.4.so] Error 1
make[5]: Leaving directory '/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4/src'
Makefile:14: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4'
Makefile:93: recipe for target '/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4/.built' failed
make[3]: *** [/home/testlab/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/uClibc++-0.2.4/.built] Error 2
make[3]: Leaving directory '/home/testlab/trunk/package/libs/uclibc++'
package/Makefile:191: recipe for target 'package/libs/uclibc++/compile' failed
make[2]: *** [package/libs/uclibc++/compile] Error 2
make[2]: Leaving directory '/home/testlab/trunk'
package/Makefile:188: recipe for target '/home/testlab/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/testlab/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/testlab/trunk'
/home/testlab/trunk/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

Of course I had svn up && ./scripts/feeds update -a

comment:11 in reply to: ↑ 9 Changed 3 years ago by anonymous

Replying to nbd:

did you run make oldconfig after updating and before running make dirclean?

I followed your tips. Same problem result.

Sry for my duplicate comments.

comment:12 follow-up: Changed 3 years ago by nbd

please post the output of ./scripts/diffconfig.sh

comment:13 in reply to: ↑ 12 Changed 3 years ago by anonymous

Replying to nbd:

please post the output of ./scripts/diffconfig.sh

cat ./scripts/diffconfig.sh
#!/bin/sh
grep \^CONFIG_TARGET_ .config | head -n3 > tmp/.diffconfig.head
grep '^CONFIG_ALL=y' .config >> tmp/.diffconfig.head
grep '^CONFIG_DEVEL=y' .config >> tmp/.diffconfig.head
grep '^CONFIG_TOOLCHAINOPTS=y' .config >> tmp/.diffconfig.head
./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage1 Config.in >/dev/null
./scripts/kconfig.pl '>+' tmp/.diffconfig.stage1 .config >> tmp/.diffconfig.head
./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage2 Config.in >/dev/null
./scripts/kconfig.pl '>' tmp/.diffconfig.stage2 .config >> tmp/.diffconfig.head
cat tmp/.diffconfig.head
rm -f tmp/.diffconfig tmp/.diffconfig.head

comment:14 Changed 3 years ago by nbd

the output of running that script...

comment:15 follow-ups: Changed 3 years ago by cyrus

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

Addressed in r46146 which disables user-space SSP for uclibc and glibc, please switch to musl if you want to use that feature.

comment:16 in reply to: ↑ 15 Changed 3 years ago by anonymous

Replying to cyrus:

Addressed in r46146 which disables user-space SSP for uclibc and glibc, please switch to musl if you want to use that feature.

Yeah, that's fixed. Thanks.

comment:17 in reply to: ↑ 15 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

Replying to cyrus:

Addressed in r46146 which disables user-space SSP for uclibc and glibc, please switch to musl if you want to use that feature.

witch disable SSP for musl and enable for uclibc is this really wanted this way ?

comment:18 Changed 3 years ago by cyrus

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

???

comment:19 Changed 3 years ago by bittorf@…

there is still something strange.
i can build images with 'musl' and 'uclibc' but
it need 2 x 'make' till images are generated (no error messages).

i still try to understand this:
(and ATM i think it has something to do with CONFIG_SSP_SUPPORT)

keep it closed for now, i will bump if needed.

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.