zeromq / czmq

High-level C binding for ØMQ
czmq.zeromq.org
Mozilla Public License 2.0
1.19k stars 526 forks source link

Failed to build on some embedded linux platform #2083

Closed MxDany closed 4 years ago

MxDany commented 4 years ago

CCLD src/libczmq.la libtool: link: warning: library /workteam/MxDany/data/Repo/easybuild/output_zeromq/install/zeromq-device-static/lib/libzmq.la' was moved. libtool: link: warning: library/workteam/MxDany/data/Repo/easybuild/output_zeromq/install/zeromq-device-static/lib/libuuid.la' was moved. aarch64-openwrt-linux-ar: u' modifier ignored sinceD' is the default (see U') /bin/sed: can't read /home/cpl/RTD1296/build_scripts/RTD129x_SDKRelease/OpenWRT-LEDE/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/aarch64-openwrt-linux-gnu/lib/libstdc++.la: No such file or directory libtool: link:/home/cpl/RTD1296/build_scripts/RTD129x_SDKRelease/OpenWRT-LEDE/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/aarch64-openwrt-linux-gnu/lib/libstdc++.la' is not a valid libtool archive make[1]: [src/libczmq.la] error 1 make[1]:正在离开目录 `/data1/data_MxDany/Repo/easybuild/output_zeromq/src/zeromq-device-static/czmq-4.2.0' make: [all-recursive] 错误 1

MxDany commented 4 years ago

My libstdc++.la file is actually in the /opt/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/lib directory. But in this file, it has value libdir='/home/cpl/RTD1296/build_scripts/RTD129x_SDKRelease/OpenWRT-LEDE/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/aarch64-openwrt-linux-gnu/lib' I know that the standard compiler should not have this kind of problem, but I don't have root authority to modify this compiler, and this compiler works well for most source code. So I think czmq should also consider this kind of compatibility issue, skip rather than directly terminate the compilation

sappo commented 4 years ago

You'll need to do something like this: https://github.com/zeromq/czmq/blob/master/builds/rpi/build.sh

MxDany notifications@github.com schrieb am Sa., 23. Mai 2020, 05:03:

My libstdc++.la file is actually in the /opt/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/lib directory. But in this file, it has value libdir='/home/cpl/RTD1296/build_scripts/RTD129x_SDKRelease/OpenWRT-LEDE/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/aarch64-openwrt-linux-gnu/lib'I know this is not something that a standard compiler should have

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zeromq/czmq/issues/2083#issuecomment-632975871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYNOUOLOUOBKOI6JOWGLDRS44HNANCNFSM4NIIETMA .

MxDany commented 4 years ago

You'll need to do something like this: https://github.com/zeromq/czmq/blob/master/builds/rpi/build.sh

MxDany notifications@github.com schrieb am Sa., 23. Mai 2020, 05:03: … My libstdc++.la file is actually in the /opt/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/lib directory. But in this file, it has value libdir='/home/cpl/RTD1296/build_scripts/RTD129x_SDKRelease/OpenWRT-LEDE/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.2.0_glibc/aarch64-openwrt-linux-gnu/lib'I know this is not something that a standard compiler should have

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2083 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYNOUOLOUOBKOI6JOWGLDRS44HNANCNFSM4NIIETMA .

Thank you for your suggestion, I just tried the solution you said, by passing all the FLAG used in this script, such as, --sysroot=, CFLAGS, LDFLAGS, etc. But still getting the same error. I think the problem is not with the FLAG, but with the processing of the libstdc ++.la file.

Finally, I used cmake to complete the compilation instead of autotools.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions.