Packages: collectd not compiling under glibc

Created on 1 Jan 2021  路  12Comments  路  Source: openwrt/packages

Maintainer: @jow- @hnyman @PolynomialDivision
Environment: glibc

https://downloads.openwrt.org/snapshots/faillogs/arc_archs/packages/collectd/compile.txt

All 12 comments

This is CONFIG_TARGET_archs38=y, or? I can have a look at this. But currently, my toolchain fails to compile on my buildserver for this target.

Just ran an x86/64, its ok there. Must be isolated. Ya arc_archs = archs38

This is CONFIG_TARGET_archs38=y, or? I can have a look at this. But currently, my toolchain fails to compile on my buildserver for this target.

Why is that?

This is CONFIG_TARGET_archs38=y, or? I can have a look at this. But currently, my toolchain fails to compile on my buildserver for this target.

Why is that?

gdb fails to compile. But the server runs with an old centos version. I have to free some diskspace on my laptop and then I can try again.

Oohhh yeah glibc doesn't compile on CentOS7 as it wrongly uses OS make instead of tools/make.

I just compiled for CONFIG_TARGET_archs38=y and it worked?

Select all mods and try again.

configure:4484: checking whether the C compiler works
configure:4506: ccache_cc -Os -pipe -matomic -mcpu=arc700 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/mangix/devstuff/openwrt/build_dir/target-arc_arc700_glibc/collectd-5.12.0=collectd-5.12.0 -Wformat -Werror=format-security -fstack-protector >
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlopen'
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlclose'
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlerror'
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlsym'
configure:4484: checking whether the C compiler works
configure:4506: ccache_cc -Os -pipe -matomic -mcpu=arc700 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/mangix/devstuff/openwrt/build_dir/target-arc_arc700_glibc/collectd-5.12.0=collectd-5.12.0 -Wformat -Werror=format-security -fstack-protector >
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlopen'
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlclose'
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlerror'
/home/mangix/devstuff/openwrt/staging_dir/toolchain-arc_arc700_gcc-8.4.0_glibc/lib/gcc/arc-openwrt-linux-gnu/8.4.0/../../../../arc-openwrt-linux-gnu/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/target-arc_arc700_glibc/usr/lib/liblua.so: undefined reference to `dlsym'

Seems like we should change

LDFLAGS="$$$$LDFLAGS -lm -lz" \

to

LDFLAGS="$$$$LDFLAGS -lm -lz -ldl" \

I think it's a lua problem actually. I sent a patch: https://patchwork.ozlabs.org/project/openwrt/patch/[email protected]/

Can be closed, or? @aparcar merged lua patch.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ja-pa picture ja-pa  路  11Comments

u8wdz7 picture u8wdz7  路  4Comments

domomg picture domomg  路  9Comments

zivkovic picture zivkovic  路  12Comments

aparcar picture aparcar  路  3Comments