sudo ldconfig ?
tor 2023-05-25 klockan 03:52 +0000 skrev Alec Ari via Emc-developers: > Hi everyone, > > I have built the Gentoo image for LinuxCNC, real-time kernel and all > with WiFi+wired ethernet support for many of the common USB NICs but > now running into trouble building LinuxCNC itself: > > `make -j17`: > > config.status: creating ../scripts/setup_designer > 1 warning generated. > Creating shared library liblinuxcnchal.so.0 > Linking rtapi_app > 1 warning generated. > Syntax checking python script halcompile > Linking liblinuxcnc.a > tooldata: depends: objects/emc/tooldata/tooldata_mmap.o > objects/emc/tooldata/tooldata_common.o > objects/emc/tooldata/tooldata_db.o > tooldata: Linking: libtooldata.so.0 > Linking linuxcnc_module_helper > Linking python module _togl.so > Linking python module lineardeltakins.so > clang++ -std=gnu++17 -L/home/ntu/linuxcnc/lib -Wl,- > rpath,/home/ntu/linuxcnc/lib -ltirpc -shared -o > ../lib/python/lineardeltakins.so > objects/emc/kinematics/lineardeltakins.o -lboost_python311 > Copying python script halcompile > Linking python module rotarydeltakins.so > Linking ../rtlib/boss_plc.so > clang++ -std=gnu++17 -L/home/ntu/linuxcnc/lib -Wl,- > rpath,/home/ntu/linuxcnc/lib -ltirpc -shared -o > ../lib/python/rotarydeltakins.so > objects/emc/kinematics/rotarydeltakins.o -lboost_python311 > Linking ../rtlib/debounce.so > Linking ../rtlib/encoder.so > Linking ../rtlib/enum.so > 1 warning generated. > grep: (standard input): binary file matches > 1 warning generated. > grep: (standard input): binary file matches > grep: (standard input): binary file matches > Linking ../rtlib/counter.so > grep: (standard input): binary file matches > Linking ../rtlib/encoder_ratio.so > Linking ../rtlib/stepgen.so > ld.lld: error: objects/boss_plc.ver:4: ; expected, but got > > > > @; > > > > ^ > ld.lld: error: objects/debounce.ver:4: ; expected, but got > > > > @; > > > > ^ > ld.lld: error: objects/encoder.ver:4: ; expected, but got > > > > @; > > > > ^ > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > Linking ../rtlib/lcd.so > grep: (standard input): binary file matches > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > make: *** [Makefile:1231: ../rtlib/boss_plc.so] Error 1 > make: *** Waiting for unfinished jobs.... > 1 warning generated. > make: *** [Makefile:1234: ../rtlib/debounce.so] Error 1 > make: *** [Makefile:1234: ../rtlib/encoder.so] Error 1 > grep: (standard input): binary file matches > 1 warning generated. > grep: (standard input): binary file matches > grep: (standard input): binary file matches > ld.lld: error: objects/enum.ver:4: ; expected, but got > > > > @; > > > > ^ > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > make: *** [Makefile:1234: ../rtlib/enum.so] Error 1 > ld.lld: error: objects/counter.ver:4: ; expected, but got > > > > @; > > > > ^ > ld.lld: error: objects/encoder_ratio.ver:4: ; expected, but got > > > > @; > > > > ^ > ld.lld: error: objects/stepgen.ver:4: ; expected, but got > > > > @; > > > > ^ > clang-16: clang-16: error: error: linker command failed with exit > code 1 (use -v to see invocation) > linker command failed with exit code 1 (use -v to see invocation) > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > make: *** [Makefile:1234: ../rtlib/counter.so] Error 1 > make: *** [Makefile:1234: ../rtlib/encoder_ratio.so] Error 1 > make: *** [Makefile:1234: ../rtlib/stepgen.so] Error 1 > ld.lld: error: objects/lcd.ver:4: ; expected, but got > > > > @; > > > > ^ > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > make: *** [Makefile:1234: ../rtlib/lcd.so] Error 1 > 1 warning generated. > > Adding `-v` to LDFLAGS gives me: > > Reading 262/262 realtime dependency files > Done reading realtime dependencies > Linking ../rtlib/abs.so > grep: (standard input): binary file matches > clang version 16.0.4 > Target: x86_64-pc-linux-gnu > Thread model: posix > InstalledDir: /usr/lib/llvm/16/bin > Configuration file: /etc/clang/clang.cfg > System configuration file directory: /etc/clang > Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13 > Candidate multilib: .;@m64 > Selected multilib: .;@m64 > "/usr/lib/llvm/16/bin/ld.lld" --hash-style=gnu --eh-frame-hdr -m > elf_x86_64 -shared -o ../rtlib/abs.so /usr/lib/gcc/x86_64-pc-linux- > gnu/13/../../../../lib64/crti.o > /usr/lib/llvm/16/bin/../../../../lib/clang/16/lib/linux/clang_rt.crtb > egin-x86_64.o -L/home/ntu/linuxcnc/lib -L/usr/lib/gcc/x86_64-pc- > linux-gnu/13 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64 > -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux- > gnu/13/../../../../x86_64-pc-linux-gnu/lib -L/lib -L/usr/lib -rpath > /home/ntu/linuxcnc/lib -ltirpc --version-script objects/abs.ver > objects/rtobjects/hal/components/abs.o -lm > /usr/lib/llvm/16/bin/../../../../lib/clang/16/lib/linux/libclang_rt.b > uiltins-x86_64.a --as-needed -lunwind --no-as-needed -lc > /usr/lib/llvm/16/bin/../../../../lib/clang/16/lib/linux/libclang_rt.b > uiltins-x86_64.a --as-needed -lunwind --no-as-needed > /usr/lib/llvm/16/bin/../../../../lib/clang/16/lib/linux/clang_rt.crte > nd-x86_64.o /usr/lib/gcc/x86_64-pc-linux- > gnu/13/../../../../lib64/crtn.o > ld.lld: error: objects/abs.ver:13: ; expected, but got > > > > ; > > > > ^ > clang-16: error: linker command failed with exit code 1 (use -v to > see invocation) > make: *** [Makefile:1234: ../rtlib/abs.so] Error 1 > > Any ideas? This looks pretty bad.. Using git master btw. > > Alec > > > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers