Open littleforce163 opened 4 years ago
I don't know what's the issue here. I don't have a Ubuntu 18.04 environment setup here to test this right now. Can you do me a favor and see if you can build a Debug build? (Use a different build directory or at least remove CMakeCache.txt
from the build directory you used for the Release build.)
I have met the same problem. OS is Ubuntu 16.04.
using Debug option has no problem. Why?
I don't know exactly what's going on here; the error seems to stem from the usage of a link-time flag enabling a read-only GOT (which is enabled for both Debug and Release builds), but since it's enabled for both builds, it might be a clash with something that's enabled only in Release builds. My money is in LTO.
I might install a Ubuntu 18.04 VM here to experiment with this. No promises, though, as I'm taking a sabbatical from open source work; however, if I end up doing this, these are some of the things I'm going to try:
gold
linker instead: passing -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold
to CMakeclang
by setting the CC=clang
environment variable before invoking CMakeCMakeLists.txt
and seeing if removing options to enable the read-only GOT, building without a PLT, or things like this, will affect the outcome.I'm getting the exact same error when building on a Raspberry Pi 3B+, Raspbian (not a fresh install) (Raspberry Pi is ARMv7 I think) The same error happens with both Release and RelWithDebugInfo, but lwan builds fine with Debug
when I build with make I found an error. Any more dependencies required? Please advice. Thanks. The OS is Ubuntu 18.04, AMD64.
[ 77%] Linking C executable lwan
I paste cmake, too.