I updated unreal from git to the latest and since the clang toochain was upgraded, libudev no longer links properly.
I tried to fix it same was last time (with v16_clang-9.0.1-centos7
) buy adding a symlink to the system linudev.so
in .../Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/
but now I get linker errors.
codyw@cody-gpu1:/link/UnrealEngine$ make
bash "/link/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping
Fixing inconsistent case in filenames.
Setting up Mono
Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe CrashReportClient Linux Shipping
Using 'git status' to determine working set for adaptive non-unity build (/link/UnrealEngine).
Creating makefile for CrashReportClient (Build.version is newer)
Performing 2 actions (12 in parallel)
[1/2] Link (lld) UnrealHeaderTool
ld.lld: error: /link/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1- centos7/x86_64-unknown-linux-gnu/usr/lib64/libudev.so: undefined reference to gettid
ld.lld: error: /link/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libudev.so: undefined reference to reallocarray
ld.lld: error: /link/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libudev.so: undefined reference to fcntl64
ld.lld: error: /link/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libudev.so: undefined reference to getrandom
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:327: CrashReportClient-Linux-Shipping] Error 6`
nm
shows the symbols are in libudev.so
codyw@cody-gpu1:~$ nm -D
"/link/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/usr/lib64/libudev.so" |grep "gettid\|reallocarray\|fcntl64\|getrandom"
U fcntl64
U getrandom
U gettid
U reallocarray
Edit:
System Info:
KDE neon User Edition 5.20
focal
Linux 5.4.0-58-generic x86_64
System: KDE neon User Edition 5.20
Desktop: KDE
Shell: /usr/share/xsessions/plasma
Win Man: KWin
Server: x11
plasmashell 5.20.4
kwin 5.20.4
Qt: 5.15.2
KDE Framework: 5.77.0