Modify

Opened 3 years ago

Last modified 3 years ago

#18660 reopened defect

can't build latest trunk

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

make[5]: Entering directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11'
Making all in .
make[6]: Entering directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11'
/bin/bash ./libtool --tag=CC --mode=link mips-openwrt-linux-uclibc-gcc -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fpic -version-info 2:1:0 -no-undefined -L/home/operador/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/operador/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/operador/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_uClibc-0.9.33.2/usr/lib -L/home/operador/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_uClibc-0.9.33.2/lib -o libjson-c.la -rpath /usr/lib arraylist.lo debug.lo json_c_version.lo json_object.lo json_object_iterator.lo json_tokener.lo json_util.lo linkhash.lo printbuf.lo
OpenWrt-libtool: link: rm -fr .libs/libjson-c.so .libs/libjson-c.so.2 .libs/libjson-c.so.2.0.1
OpenWrt-libtool: link: mips-openwrt-linux-uclibc-gcc -shared -fPIC -DPIC .libs/arraylist.o .libs/debug.o .libs/json_c_version.o .libs/json_object.o .libs/json_object_iterator.o .libs/json_tokener.o .libs/json_util.o .libs/linkhash.o .libs/printbuf.o -L/home/operador/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/operador/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/operador/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_uClibc-0.9.33.2/usr/lib -L/home/operador/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_uClibc-0.9.33.2/lib -Os -mno-branch-likely -mips32r2 -mtune=24kc -msoft-float -mips16 -minterlink-mips16 -Wl,-soname -Wl,libjson-c.so.2 -o .libs/libjson-c.so.2.0.1
OpenWrt-libtool: link: (cd ".libs" && rm -f "libjson-c.so.2" && ln -s "libjson-c.so.2.0.1" "libjson-c.so.2")
OpenWrt-libtool: link: (cd ".libs" && rm -f "libjson-c.so" && ln -s "libjson-c.so.2.0.1" "libjson-c.so")
OpenWrt-libtool: link: mips-openwrt-linux-uclibc-gcc-ar cru .libs/libjson-c.a arraylist.o debug.o json_c_version.o json_object.o json_object_iterator.o json_tokener.o json_util.o linkhash.o printbuf.o
sorry - this program has been built without plugin support
make[6]: * [libjson-c.la] Error 1
make[6]: Leaving directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11'
Making all in tests
make[6]: Entering directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11/tests'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11/tests'
make[5]:
* [all-recursive] Error 1
make[5]: Leaving directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11'
make[3]:
* /home/operador/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/json-c-0.11/.built Error 2
make[3]: Leaving directory `/home/operador/openwrt/package/libs/libjson-c'
make[2]: * [package/libs/libjson-c/compile] Error 2
make[2]: Leaving directory `/home/operador/openwrt'
make[1]:
* /home/operador/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/operador/openwrt'
make: * [world] Error 2

Attachments (0)

Change History (8)

comment:1 Changed 3 years ago by anon2

Most likely caused by "binutils" changes made by r43783, r43784 and r43785.
You need to do "make dirclean" to re-build all tools & toolchain (or at least force a rebuild of binutils in toolchain).

comment:2 Changed 3 years ago by anonymous

you are right. make dirclean fixed the problem.

Please close this bug, as there is none.

comment:3 Changed 3 years ago by nbd

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

comment:4 Changed 3 years ago by anonymous

  • Resolution not_a_bug deleted
  • Status changed from closed to reopened

Hi admin,

I did test with the latest version of trunk and faced the same issue even though I did do dirclean. Do you have any suggestion for fixing that ? The following is log

make[4]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11'
make all-recursive
make[5]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11'
Making all in .
make[6]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11'
/bin/bash ./libtool --tag=CC --mode=link arm-openwrt-linux-uclibcgnueabi-gcc -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -mfloat-abi=hard -fpic -version-info 2:1:0 -no-undefined -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/usr/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -o libjson-c.la -rpath /usr/lib arraylist.lo debug.lo json_c_version.lo json_object.lo json_object_iterator.lo json_tokener.lo json_util.lo linkhash.lo printbuf.lo
OpenWrt-libtool: link: rm -fr .libs/libjson-c.so .libs/libjson-c.so.2 .libs/libjson-c.so.2.0.1
OpenWrt-libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc -shared -fPIC -DPIC .libs/arraylist.o .libs/debug.o .libs/json_c_version.o .libs/json_object.o .libs/json_object_iterator.o .libs/json_tokener.o .libs/json_util.o .libs/linkhash.o .libs/printbuf.o -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/usr/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -Os -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard -Wl,-soname -Wl,libjson-c.so.2 -o .libs/libjson-c.so.2.0.1
OpenWrt-libtool: link: (cd ".libs" && rm -f "libjson-c.so.2" && ln -s "libjson-c.so.2.0.1" "libjson-c.so.2")
OpenWrt-libtool: link: (cd ".libs" && rm -f "libjson-c.so" && ln -s "libjson-c.so.2.0.1" "libjson-c.so")
OpenWrt-libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc-ar cru .libs/libjson-c.a arraylist.o debug.o json_c_version.o json_object.o json_object_iterator.o json_tokener.o json_util.o linkhash.o printbuf.o
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ar: invalid option -- 'O'
Usage: /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...

/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ar -M [<mri-script]

commands:

d - delete file(s) from the archive
m[ab] - move file(s) in the archive
p - print file(s) found in the archive
q[f] - quick append file(s) to the archive
r[ab][f][u] - replace existing or insert new file(s) into the archive
s - act as ranlib
t - display contents of archive
x[o] - extract file(s) from the archive

command specific modifiers:

[a] - put file(s) after [member-name]
[b] - put file(s) before [member-name] (same as [i])
[D] - use zero for timestamps and uids/gids
[U] - use actual timestamps and uids/gids (default)
[N] - use instance [count] of name
[f] - truncate inserted file names
[P] - use full path names when matching
[o] - preserve original dates
[u] - only replace files that are newer than current archive contents

generic modifiers:

[c] - do not warn if the library had to be created
[s] - create an archive index (cf. ranlib)
[S] - do not build a symbol table
[T] - make a thin archive
[v] - be verbose
[V] - display the version number
@<file> - read options from <file>
--target=BFDNAME - specify the target object format as BFDNAME

optional:

--plugin <p> - load the specified plugin

emulation options:

No emulation specific options

/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ar: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
make[6]: * [libjson-c.la] Error 1
make[6]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11'
make[5]:
* [all-recursive] Error 1
make[5]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11'
make[4]: * [all] Error 2
make[4]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11'
make[3]:
* /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/json-c-0.11/.built Error 2
make[3]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/libs/libjson-c'
make[2]: * [package/libs/libjson-c/compile] Error 2
make[2]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt'
make[1]:
* /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/stamp/.package_compile Error 2
make[1]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt'
make: * [world] Error 2

comment:5 Changed 3 years ago by nbd

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

you seem to be using an external toolchain that is built without plugin support. should be fixed in r43911

comment:6 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

With r43911, I can fixed the issue with libjson-c but faced the new issues with
package/utils/util-linux the issue as following(It seems that the LDFLAGS for this package is not correct. If I move all lib files in external toolchain lib folder to staging_dir/target-arm-openwrt-linux-uclibcgnueabi/usr/lib, I can pass this issue and complete the build):
make package/utils/util-linux/compile V=s
make[1]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt'
make[2]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/libs/toolchain'
if [ -f /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install.clean ]; then rm -f /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install
if [ -f /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install.clean ];

then rm -f /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install.clean; fi; echo "lib

gcc" >> /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/pkginfo/toolchain.default.install
make[2]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/libs/toolchain'
make[2]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/libs/ncurses'
make[2]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/libs/ncurses'
make[2]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/utils/util-linux'
CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -mfloat-abi=hard -fpic -std=gnu99 -I/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_ow
n_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/usr/include -I/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/targ
et-arm-openwrt-linux-uclibcgnueabi/include -I/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " CXXFLAGS="-O
s -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -mfloat-abi=hard -fpic -std=gnu99 -I/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_ap
p/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/usr/include -I/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-ope
nwrt-linux-uclibcgnueabi/include -I/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/VERIK/vinh
.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/usr/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own
_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.3
3.2_eabi/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " make -C /VERIK/vinh.nguyen/ws/02_Working/02_
Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2/. AR="arm-openwrt-linux-uclibcgnueabi-ar" AS="arm-openwrt-linux-uclibc
gnueabi-gcc -c -Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -mfloat-abi=hard -fpic -std=gnu99" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm
-openwrt-linux-uclibcgnueabi-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-o
penwrt-linux-uclibcgnueabi-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objd
ump SIZE=arm-openwrt-linux-uclibcgnueabi-size CROSS="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" ;
make[3]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2'
make all-recursive
make[4]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2'
Making all in po
make[5]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2/po'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2/po'
make[5]: Entering directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2'
/bin/bash ./libtool --tag=CC --mode=link arm-openwrt-linux-uclibcgnueabi-gcc -fsigned-char -fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations -Wmis
sing-parameter-type -Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused
-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu
=vfpv3-d16 -fno-caller-saves -mfloat-abi=hard -fpic -std=gnu99 -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-lin
ux-uclibcgnueabi/usr/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/lib -L/VERIK/vinh.nguye
n/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-li
naro_uClibc-0.9.33.2_eabi/lib -o dmesg sys-utils/dmesg.o lib/boottime.o libcommon.la -lrt
OpenWrt-libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc -fsigned-char -fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations -Wmissing-parameter-type -
Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wu
nused-parameter -Wunused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-calle
r-saves -mfloat-abi=hard -fpic -std=gnu99 -o dmesg sys-utils/dmesg.o lib/boottime.o -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/ta
rget-arm-openwrt-linux-uclibcgnueabi/usr/lib -L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/staging_dir/target-arm-openwrt-linux-uclibcgnueabi/lib

-L/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib ./.libs/libcommon.a -lrt

sys-utils/dmesg.o: In function `close_stream':
dmesg.c:(.text+0x31c): warning: This version of fpending returns bytes remaining in buffer for both narrow and wide streams. glibc's version returns wide chars in buffe
r for the wide stream case.
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3/../../../../ar
m-openwrt-linux-uclibcgnueabi/bin/ld: warning: libdl.so.0, needed by /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eab
i/lib/librt.so, not found (try using -rpath or -rpath-link)
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.8.3/../../../../ar
m-openwrt-linux-uclibcgnueabi/bin/ld: warning: libpthread.so.0, needed by /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.
2_eabi/lib/librt.so, not found (try using -rpath or -rpath-link)
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_create'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_cancel'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_detach'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_once'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_attr_setstacksize'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `dlopen'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_sigmask'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `dlsym'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `
pthread_unwind'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_barrier_init'
/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/tools/gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/librt.so: undefined reference to `pthread_barrier_wait'
collect2: error: ld returned 1 exit status
make[5]: * [dmesg] Error 1
make[5]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2'
make[4]:
* [all-recursive] Error 1
make[4]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2'
make[3]: * [all] Error 2
make[3]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2'
make[2]:
* /VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/build_dir/target-arm-openwrt-linux-uclibcgnueabi/util-linux-2.25.2/.built Error 2
make[2]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt/package/utils/util-linux'
make[1]: * [package/utils/util-linux/compile] Error 2
make[1]: Leaving directory `/VERIK/vinh.nguyen/ws/02_Working/02_Verik/ws/my_own_venus_app/openwrt'
make:
* [package/utils/util-linux/compile] Error 2

comment:7 Changed 3 years ago by florian

When using an external toolchain, there might be additional configuration required for libc, libgcc, etc. Do the paths to these libraries match your toolchain configuration? These settings are in Package -> Base system.

comment:8 Changed 3 years ago by anonymous

Hi Admin,
I did it and check them, but I wonder why the LDFLAGS that included my external toolchain lib dir still didn't work. Now I did worked around by and following commands in toolchain/wrapper/Makefile

diff --git a/openwrt/toolchain/wrapper/Makefile b/openwrt/toolchain/wrapper/Makefile
index 3398e40..e96950f 100644
--- a/openwrt/toolchain/wrapper/Makefile
+++ b/openwrt/toolchain/wrapper/Makefile
@@ -53,6 +53,15 @@ endef

define Host/Install

$(call toolchain_util,--wrap "$(TOOLCHAIN_DIR)/bin")

+ ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
+ mkdir -p $(STAGING_DIR)/usr/lib
+ $(CP) $(CONFIG_TOOLCHAIN_ROOT)/lib/libpthread.so* $(STAGING_DIR)/usr/lib
+ $(CP) $(CONFIG_TOOLCHAIN_ROOT)/lib/libpthread-*.so $(STAGING_DIR)/usr/lib
+ $(CP) $(CONFIG_TOOLCHAIN_ROOT)/lib/librt.so* $(STAGING_DIR)/usr/lib
+ $(CP) $(CONFIG_TOOLCHAIN_ROOT)/lib/librt-*.so $(STAGING_DIR)/usr/lib
+ $(CP) $(CONFIG_TOOLCHAIN_ROOT)/lib/libdl.so.* $(STAGING_DIR)/usr/lib
+ $(CP) $(CONFIG_TOOLCHAIN_ROOT)/lib/libdl-*.so $(STAGING_DIR)/usr/lib
+ endif

endef


define Host/Clean

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.