Hi
Been having problems building on Linux, Arch recently moved to clang 3.9. I updated my kernel today and am now unable to use clang 3.5.
Tried building 4.13, then 4.14. I modified the toolchain to supress warnings which caused clang to fail. Under Epic employee advice I am now trying to build the master branch. The warnings are supressed or addressed by default. Curiously I still get the same errors with thirdparty linkers. Excerpt from log and terminal output below. I am unsure how to recompile with -fPIC.
libraries with errors, zlib, jemalloc, sdl2
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_dspaudio.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_alsa_audio.c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_pulseaudio.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11xinput2.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11keyboard.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11mouse.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11window.c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(imKStoUCS.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11opengles.c.o): relocation R_X86_64_32S against hidden symbol `X11_GL_LoadLibrary' can not be used when making a shared object
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11opengl.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11shape.c.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11clipboard.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_x11framebuffer.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(edid-parse.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty/SDL2/SDL-gui-backend/lib/Linux/x86_64-unknown-linux-gnu/libSDL2.a(SDL_audiodev.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: UBT ERROR: Failed to produce item: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Binaries/Linux/BlankProgram
Total build time: 33.41 seconds
make: *** [Makefile:228: BlankProgram] Error 5
RCL
(Arciel Rekman)
November 1, 2016, 8:38pm
2
4.14 should build with clang 3.9 without any local changes - maybe try a clean build from github?
Tried that 4.14 won’t build with clang warnings and when suppressed generates same linker errors
Only change on clean 4.14 is to set clang as setup requirement over clang35
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp:15:
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMisc.cpp:106:3: error: ignoring
return value of function declared with ‘warn_unused_result’ attribute [-Werror,-Wunused-result]
fscanf(SysFsFile, “%d”, &SystemLineSize);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp:17:
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp:1141:2: error:
ignoring return value of function declared with ‘warn_unused_result’ attribute [-Werror,-Wunused-result]
getcwd(CurrentDir, sizeof(CurrentDir));
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp:1395:2: error:
ignoring return value of function declared with ‘warn_unused_result’ attribute [-Werror,-Wunused-result]
fscanf(FilePtr, “%d %s %c %d”, &DummyNumber, Buf, &DummyChar, &ParentPID);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
[10/12] Compile Module.Core.2_of_7.cpp
[11/12] Compile Module.Core.1_of_7.cpp
ERROR: UBT ERROR: Failed to produce item: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Binaries/Linux/BlankProgram
Total build time: 35.50 seconds
make: *** [Makefile:228: BlankProgram] Error 5
Only change on clean 4.14 is to set clang as setup requirement over clang35
errors on make BlankProgram ARGS=-verbose
bash "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" BlankProgram Linux Development -verbose
Building BlankProgram...
Found uprojectdirs file /mnt/Media/Developer/unreal/UnrealEngine/UE4Games.uprojectdirs
Found 2 directories to search
Searching /mnt/Media/Developer/unreal/UnrealEngine
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/.git
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/.kdev4
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Engine
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/FeaturePacks
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Samples
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Templates
Searching /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Developer
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Editor
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Programs
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime
Found subdir /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/ThirdParty
UnrealBuildTool (DEBUG OUTPUT MODE)
Command-line: BlankProgram Linux Development -verbose
Searching for ToolChains, BuildPlatforms, BuildDeploys and ProjectGenerators...
Registering build platform: UnrealBuildTool.MacPlatformFactory
UnrealBuildTool.MacPlatformSDK using manually installed SDK
Registering for Mac
Registering build platform: UnrealBuildTool.TVOSPlatformFactory
UnrealBuildTool.IOSPlatformSDK using manually installed SDK
Registering for TVOS
Registering build platform: UnrealBuildTool.AndroidPlatformFactory
UnrealBuildTool.AndroidPlatformSDK has no valid SDK
Registering build platform: UnrealBuildTool.IOSPlatformFactory
UnrealBuildTool.IOSPlatformSDK using manually installed SDK
Registering for IOS
Registering build platform: UnrealBuildTool.HTML5PlatformFactory
UnrealBuildTool.HTML5PlatformSDK has no valid SDK
Registering build platform: UnrealBuildTool.LinuxPlatformFactory
UnrealBuildTool.LinuxPlatformSDK using manually installed SDK v8_clang-3.9.0-centos7
Registering for Linux
Registering build platform: UnrealBuildTool.WindowsPlatformFactory
UnrealBuildTool.WindowsPlatformSDK using manually installed SDK
Registering for Win64
Registering for Win32
Registering project generator: UnrealBuildTool.MacProjectGenerator
Registering for Mac
Registering project generator: UnrealBuildTool.TVOSProjectGenerator
Registering for TVOS
Registering project generator: UnrealBuildTool.AndroidProjectGenerator
Registering for Android
Skipping project file generator registration for Android due to no valid BuildPlatform.
Registering project generator: UnrealBuildTool.IOSProjectGenerator
Registering for IOS
Registering project generator: UnrealBuildTool.HTML5ProjectGenerator
Registering for HTML5
Skipping project file generator registration for HTML5 due to no valid BuildPlatform.
Registering project generator: UnrealBuildTool.LinuxProjectGenerator
Registering for Linux
Registering project generator: UnrealBuildTool.WindowsProjectGenerator
Registering for Win32
Registering for Win64
which clang++ result: (0) /usr/lib/hardening-wrapper/bin/clang++
which g++ result: (0) /opt/cuda/bin/g++
which ar result: (0) /usr/bin/ar
which ranlib result: (0) /usr/bin/ranlib
which strip result: (0) /usr/bin/strip
Using clang version '3.9.0' (string), 3 (major), 9 (minor), 0 (patch)
Module.Core.3_of_7.cpp: Produced item "Module.Core.3_of_7.cpp.o" doesn't exist.
Outdated action: Module.Core.3_of_7.cpp
-> DEEP include scan: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp
BlankProgram: Produced item "BlankProgram" doesn't exist.
12 actions, 2 outdated and requested actions
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/CorePrivatePCH.h" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/CorePrivatePCH.h
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextCache.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextCache.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextFormatArgumentModifier.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextFormatArgumentModifier.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextFormatter.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextFormatter.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextHistory.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextLocalizationManager.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextLocalizationManager.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextNamespaceUtil.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Internationalization/TextNamespaceUtil.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxApplication.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxApplication.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxCriticalSection.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxCriticalSection.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxCursor.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxCursor.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformCrashContext.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformCrashContext.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformFile.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformFile.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMemory.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMemory.cpp
Performing 2 actions (4 in parallel)
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMisc.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMisc.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformOutputDevices.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformOutputDevices.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformSplash.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformSplash.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformStackWalk.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformStackWalk.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformString.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformString.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformSurvey.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformSurvey.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformTime.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformTime.cpp
Resolved included file "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxWindow.cpp" to: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxWindow.cpp
Executing: /usr/lib/hardening-wrapper/bin/clang++ -c -pipe -nostdinc++ -IThirdParty/Linux/LibCxx/include/ -IThirdParty/Linux/LibCxx/include/c++/v1 -Wall -Werror -funwind-tables -Wsequence-point -fno-math-errno -fno-rtti -Wno-unused-private-field -Wno-tautological-compare -Wno-undefined-bool-conversion -Wno-unused-local-typedef -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-delete-non-virtual-dtor -Wno-expansion-to-defined -Wno-null-dereference -Wno-literal-conversion -Wno-unused-variable -Wno-unused-function -Wno-switch -Wno-unknown-pragmas -Wno-invalid-offsetof -Wno-gnu-string-literal-operator-template -Wshadow -Wno-error=shadow -gdwarf-3 -O2 -fno-exceptions -DPLATFORM_EXCEPTIONS_DISABLED=1 -D_LINUX64 -I"/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source" -I"Developer/DerivedDataCache/Public" -I"Runtime/SynthBenchmark/Public" -I"Runtime/Core/Private" -I"Runtime/Core/Private/Misc" -I"Runtime/Core/Private/Internationalization" -I"Runtime/Core/Private/Internationalization/Cultures" -I"Runtime/Engine/Public" -I"Runtime/Core/Public" -I"Runtime/Core/Public/Internationalization" -I"Runtime/Core/Public/Async" -I"Runtime/Core/Public/Containers" -I"Runtime/Core/Public/Delegates" -I"Runtime/Core/Public/GenericPlatform" -I"Runtime/Core/Public/HAL" -I"Runtime/Core/Public/Logging" -I"Runtime/Core/Public/Math" -I"Runtime/Core/Public/Misc" -I"Runtime/Core/Public/Modules" -I"Runtime/Core/Public/Modules/Boilerplate" -I"Runtime/Core/Public/ProfilingDebugging" -I"Runtime/Core/Public/Serialization" -I"Runtime/Core/Public/Serialization/Csv" -I"Runtime/Core/Public/Stats" -I"Runtime/Core/Public/Templates" -I"Runtime/Core/Public/UObject" -I"Runtime/Core/Public/Linux" -I"Runtime/Core" -I"ThirdParty/zlib/v1.2.8/include/Linux/x86_64-unknown-linux-gnu" -I"ThirdParty/zlib" -I"ThirdParty/jemalloc/include/Linux/x86_64-unknown-linux-gnu" -I"ThirdParty/jemalloc" -I"ThirdParty/elftoolchain/include/x86_64-unknown-linux-gnu" -I"ThirdParty/elftoolchain" -I"ThirdParty/SDL2/SDL-gui-backend/include" -I"ThirdParty/SDL2" -I"ThirdParty/ICU" -I"Developer/TargetPlatform/Public" -I"Developer/TargetPlatform/Public/Common" -I"Developer/TargetPlatform/Public/Interfaces" -I"Developer/TargetPlatform" -I"Developer/DerivedDataCache" -I"Runtime/InputDevice/Public" -I"Runtime/InputDevice" -I"Runtime/Analytics/Analytics/Public" -I"Runtime/Analytics/Analytics/Public/Interfaces" -I"Runtime/Analytics/Analytics" -I"Runtime/RHI/Public" -I"Runtime/RHI" -I"ThirdParty/ICU/icu4c-53_1/include" -D "IS_PROGRAM=1" -D "WITH_DEV_AUTOMATION_TESTS=1" -D "WITH_PERF_AUTOMATION_TESTS=1" -D "UNICODE" -D "_UNICODE" -D "__UNREAL__" -D "IS_MONOLITHIC=1" -D "WITH_ENGINE=0" -D "WITH_UNREAL_DEVELOPER_TOOLS=0" -D "WITH_COREUOBJECT=0" -D "USE_STATS_WITHOUT_ENGINE=0" -D "WITH_PLUGIN_SUPPORT=0" -D "WITH_PERFCOUNTERS=0" -D "USE_LOGGING_IN_SHIPPING=0" -D "WITH_LOGGING_TO_MEMORY=0" -D "USE_CHECKS_IN_SHIPPING=0" -D "UE_BUILD_MINIMAL=1" -D "WITH_EDITOR=0" -D "WITH_SERVER_CODE=1" -D "UBT_COMPILED_PLATFORM=Linux" -D "UBT_COMPILED_TARGET=Program" -D "PLATFORM_LINUX=1" -D "LINUX=1" -D "PLATFORM_SUPPORTS_JEMALLOC=1" -D "WITH_DATABASE_SUPPORT=0" -D "NDEBUG=1" -D "UE_BUILD_DEVELOPMENT=1" -D "USE_NEW_ASYNC_IO=0" -D "ORIGINAL_FILE_NAME=\"BlankProgram\"" -D "UE_ENABLE_ICU=1" -D "WITH_DIRECTXMATH=0" -D "UE_ENABLE_ICU=1" -D "WITH_DIRECTXMATH=0" -D "CORE_API=" -D "SDL_WITH_EPIC_EXTENSIONS=1" -D "U_USING_ICU_NAMESPACE=0" -D "U_STATIC_IMPLEMENTATION" -D "U_NO_DEFAULT_INCLUDE_UTF_HEADERS=1" -D "UNISTR_FROM_CHAR_EXPLICIT=explicit" -D "UNISTR_FROM_STRING_EXPLICIT=explicit" -D "UCONFIG_NO_TRANSLITERATION=1" -D "NEEDS_ICU_DLLS=0" -D "TARGETPLATFORM_API=" -D "DERIVEDDATACACHE_API=" -D "INPUTDEVICE_API=" -D "ANALYTICS_API=" -D "RHI_API=" -x c++ -std=c++11 -include "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/CorePrivatePCH.h" -o "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp.o" "/mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp"
Couldn't resolve included file "PS4/PS4PlatformCompilerPreSetup.h"
Couldn't resolve included file "XboxOne/XboxOnePlatformCompilerPreSetup.h"
Couldn't resolve included file "WolfPlat/WolfPlatformCompilerPreSetup.h"
Couldn't resolve included file "stddef.h"
Couldn't resolve included file "PS4/PS4Platform.h"
Couldn't resolve included file "XboxOne/XboxOnePlatform.h"
Couldn't resolve included file "WolfPlat/WolfPlatform.h"
Couldn't resolve included file "PS4/PS4CompilerSetup.h"
Couldn't resolve included file "XboxOne/XboxOneCompilerSetup.h"
Couldn't resolve included file "WolfPlat/WolfPlatformCompilerSetup.h"
Couldn't resolve included file "sal.h"
Couldn't resolve included file "linux/version.h"
Couldn't resolve included file "new"
Couldn't resolve included file "wchar.h"
Couldn't resolve included file "stddef.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "math.h"
Couldn't resolve included file "float.h"
Couldn't resolve included file "string.h"
Couldn't resolve included file "PS4/PS4Memory.h"
Couldn't resolve included file "XboxOne/XboxOneMemory.h"
Couldn't resolve included file "WolfPlat/WolfPlatformMemory.h"
Couldn't resolve included file "wchar.h"
Couldn't resolve included file "string.h"
Couldn't resolve included file "intrin.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "tchar.h"
Couldn't resolve included file "intsafe.h"
Couldn't resolve included file "strsafe.h"
Couldn't resolve included file "CodeAnalysis/SourceAnnotations.h"
Couldn't resolve included file "CodeAnalysis/Warnings.h"
Couldn't resolve included file "windows.h"
Couldn't resolve included file "PS4/PS4String.h"
Couldn't resolve included file "XboxOne/XboxOneString.h"
Couldn't resolve included file "WolfPlat/WolfPlatformString.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "wctype.h"
Couldn't resolve included file "PS4/PS4Misc.h"
Couldn't resolve included file "XboxOne/XboxOneMisc.h"
Couldn't resolve included file "WolfPlat/WolfPlatformMisc.h"
Couldn't resolve included file "Carbon/Carbon.h"
Couldn't resolve included file "CoreServices/CoreServices.h"
Couldn't resolve included file "CoreFoundation/CoreFoundation.h"
Couldn't resolve included file "string.h"
Couldn't resolve included file "alloca.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "float.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "limits.h"
Couldn't resolve included file "sys/time.h"
Couldn't resolve included file "math.h"
Couldn't resolve included file "mach/mach_time.h"
Couldn't resolve included file "wchar.h"
Couldn't resolve included file "wctype.h"
Couldn't resolve included file "errno.h"
Couldn't resolve included file "unistd.h"
Couldn't resolve included file "pthread.h"
Couldn't resolve included file "libkern/OSAtomic.h"
Couldn't resolve included file "sys/types.h"
Couldn't resolve included file "sys/stat.h"
Couldn't resolve included file "pwd.h"
Couldn't resolve included file "fcntl.h"
Couldn't resolve included file "dirent.h"
Couldn't resolve included file "dlfcn.h"
Couldn't resolve included file "copyfile.h"
Couldn't resolve included file "utime.h"
Couldn't resolve included file "mach/mach_host.h"
Couldn't resolve included file "mach/task.h"
Couldn't resolve included file "execinfo.h"
Couldn't resolve included file "signal.h"
Couldn't resolve included file "sys/sysctl.h"
Couldn't resolve included file "malloc/malloc.h"
Couldn't resolve included file "xmmintrin.h"
Couldn't resolve included file "CoreFoundation/CoreFoundation.h"
Couldn't resolve included file "string.h"
Couldn't resolve included file "alloca.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "float.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "limits.h"
Couldn't resolve included file "sys/time.h"
Couldn't resolve included file "math.h"
Couldn't resolve included file "mach/mach_time.h"
Couldn't resolve included file "wchar.h"
Couldn't resolve included file "wctype.h"
Couldn't resolve included file "errno.h"
Couldn't resolve included file "unistd.h"
Couldn't resolve included file "pthread.h"
Couldn't resolve included file "libkern/OSAtomic.h"
Couldn't resolve included file "sys/types.h"
Couldn't resolve included file "sys/stat.h"
Couldn't resolve included file "pwd.h"
Couldn't resolve included file "fcntl.h"
Couldn't resolve included file "dirent.h"
Couldn't resolve included file "dlfcn.h"
Couldn't resolve included file "copyfile.h"
Couldn't resolve included file "utime.h"
Couldn't resolve included file "mach/mach.h"
Couldn't resolve included file "mach/mach_host.h"
Couldn't resolve included file "execinfo.h"
Couldn't resolve included file "signal.h"
Couldn't resolve included file "sys/sysctl.h"
Couldn't resolve included file "xmmintrin.h"
Couldn't resolve included file "arm_neon.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "wctype.h"
Couldn't resolve included file "pthread.h"
Couldn't resolve included file "limits.h"
Couldn't resolve included file "fcntl.h"
Couldn't resolve included file "sys/stat.h"
Couldn't resolve included file "utime.h"
Couldn't resolve included file "emscripten/emscripten.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "wctype.h"
Couldn't resolve included file "limits.h"
Couldn't resolve included file "intrin.h"
Couldn't resolve included file "string.h"
Couldn't resolve included file "alloca.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "float.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "limits.h"
Couldn't resolve included file "sys/time.h"
Couldn't resolve included file "math.h"
Couldn't resolve included file "wchar.h"
Couldn't resolve included file "wctype.h"
Couldn't resolve included file "errno.h"
Couldn't resolve included file "unistd.h"
Couldn't resolve included file "pthread.h"
Couldn't resolve included file "sys/types.h"
Couldn't resolve included file "sys/stat.h"
Couldn't resolve included file "pwd.h"
Couldn't resolve included file "fcntl.h"
Couldn't resolve included file "dirent.h"
Couldn't resolve included file "dlfcn.h"
Couldn't resolve included file "utime.h"
Couldn't resolve included file "execinfo.h"
Couldn't resolve included file "signal.h"
Couldn't resolve included file "sys/sysctl.h"
Couldn't resolve included file "xmmintrin.h"
Couldn't resolve included file "sys/utsname.h"
Couldn't resolve included file "libgen.h"
Couldn't resolve included file "wchar.h"
Couldn't resolve included file "PS4/PS4StackWalk.h"
Couldn't resolve included file "XboxOne/XboxOneStackWalk.h"
Couldn't resolve included file "WolfPlat/WolfPlatformStackWalk.h"
Couldn't resolve included file "PS4/PS4Math.h"
Couldn't resolve included file "XboxOne/XboxOneMath.h"
Couldn't resolve included file "WolfPlat/WolfPlatformMath.h"
Couldn't resolve included file "XboxOne/XboxOneSystemIncludes.h"
Couldn't resolve included file "PS4/PS4Time.h"
Couldn't resolve included file "XboxOne/XboxOneTime.h"
Couldn't resolve included file "WolfPlat/WolfPlatformTime.h"
Couldn't resolve included file "sys/time.h"
Couldn't resolve included file "time.h"
Couldn't resolve included file "sys/timeb.h"
Couldn't resolve included file "time.h"
Couldn't resolve included file "emscripten/emscripten.h"
Couldn't resolve included file "PS4/PS4Process.h"
Couldn't resolve included file "XboxOne/XboxOneProcess.h"
Couldn't resolve included file "WolfPlat/WolfPlatformProcess.h"
Couldn't resolve included file "tlhelp32.h"
Couldn't resolve included file "PS4/PS4CriticalSection.h"
Couldn't resolve included file "XboxOne/XboxOneCriticalSection.h"
Couldn't resolve included file "IOS/IOSCriticalSection.h"
Couldn't resolve included file "WolfPlat/WolfCriticalSection.h"
Couldn't resolve included file "pthread.h"
Couldn't resolve included file "errno.h"
Couldn't resolve included file "PS4/PS4OutputDevices.h"
Couldn't resolve included file "XboxOne/XboxOneOutputDevices.h"
Couldn't resolve included file "WolfPlat/WolfPlatformOutputDevices.h"
Couldn't resolve included file "PS4/PS4Atomics.h"
Couldn't resolve included file "XboxOne/XboxOneAtomics.h"
Couldn't resolve included file "WolfPlat/WolfPlatformAtomics.h"
Couldn't resolve included file "PS4/PS4TLS.h"
Couldn't resolve included file "XboxOne/XboxOneTLS.h"
Couldn't resolve included file "WolfPlat/WolfPlatformTLS.h"
Couldn't resolve included file "sys/syscall.h"
Couldn't resolve included file "PS4/PS4Splash.h"
Couldn't resolve included file "XboxOne/XboxOneSplash.h"
Couldn't resolve included file "WolfPlat/WolfPlatformSplash.h"
Couldn't resolve included file "PS4/PS4File.h"
Couldn't resolve included file "XboxOne/XboxOneFile.h"
Couldn't resolve included file "WolfPlat/WolfPlatformFile.h"
Couldn't resolve included file "jni.h"
Couldn't resolve included file "PS4/PS4Survey.h"
Couldn't resolve included file "XboxOne/XboxOneSurvey.h"
Couldn't resolve included file "WolfPlat/WolfPlatformSurvey.h"
Couldn't resolve included file "XboxOne/XBoxOneAffinity.h"
Couldn't resolve included file "PS4/PS4Affinity.h"
Couldn't resolve included file "IOS/IOSPlatformAffinity.h"
Couldn't resolve included file "WolfPlat/WolfPlatformAffinity.h"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "new"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "PS4/PS4Properties.h"
Couldn't resolve included file "XboxOne/XboxOneProperties.h"
Couldn't resolve included file "WolfPlat/WolfPlatformProperties.h"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "new"
Couldn't resolve included file "initializer_list"
Couldn't resolve included file "DirectXMath.h"
Couldn't resolve included file "DirectXPackedVector.h"
Couldn't resolve included file "emmintrin.h"
Couldn't resolve included file "arm_neon.h"
Couldn't resolve included file "sys/types.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "stddef.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "malloc.h"
Couldn't resolve included file "stddef.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "memory.h"
Couldn't resolve included file "string.h"
Couldn't resolve included file "strings.h"
Couldn't resolve included file "inttypes.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "ctype.h"
Couldn't resolve included file "math.h"
Couldn't resolve included file "float.h"
Couldn't resolve included file "iconv.h"
Couldn't resolve included file "sal.h"
Couldn't resolve included file "alloca.h"
Couldn't resolve included file "malloc.h"
Couldn't resolve included file "malloc.h"
Couldn't resolve included file "malloc.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "SDL_config_premake.h"
Couldn't resolve included file "AvailabilityMacros.h"
Couldn't resolve included file "TargetConditionals.h"
Couldn't resolve included file "winapifamily.h"
Couldn't resolve included file "sdkddkver.h"
Couldn't resolve included file "AvailabilityMacros.h"
Couldn't resolve included file "stdarg.h"
Couldn't resolve included file "signal.h"
Couldn't resolve included file "mbarrier.h"
Couldn't resolve included file "endian.h"
Couldn't resolve included file "process.h"
Couldn't resolve included file "intrin.h"
Couldn't resolve included file "intrin.h"
Couldn't resolve included file "altivec.h"
Couldn't resolve included file "mmintrin.h"
Couldn't resolve included file "mm3dnow.h"
Couldn't resolve included file "xmmintrin.h"
Couldn't resolve included file "emmintrin.h"
Couldn't resolve included file "spawn.h"
Couldn't resolve included file "sys/wait.h"
Couldn't resolve included file "sys/resource.h"
Couldn't resolve included file "sys/ioctl.h"
Couldn't resolve included file "sys/file.h"
Couldn't resolve included file "asm/ioctls.h"
Couldn't resolve included file "sys/file.h"
Couldn't resolve included file "pthread.h"
Couldn't resolve included file "sys/utsname.h"
Couldn't resolve included file "signal.h"
Couldn't resolve included file "sys/file.h"
Couldn't resolve included file "sys/stat.h"
Couldn't resolve included file "sys/sysinfo.h"
Couldn't resolve included file "sys/file.h"
Couldn't resolve included file "sys/mman.h"
Couldn't resolve included file "unistd.h"
Couldn't resolve included file "mach/mach.h"
Couldn't resolve included file "cpuid.h"
Couldn't resolve included file "sys/sysinfo.h"
Couldn't resolve included file "sched.h"
Couldn't resolve included file "fcntl.h"
Couldn't resolve included file "signal.h"
Couldn't resolve included file "sys/vfs.h"
Couldn't resolve included file "sys/ioctl.h"
Couldn't resolve included file "ifaddrs.h"
Couldn't resolve included file "net/if.h"
Couldn't resolve included file "net/if_arp.h"
Couldn't resolve included file "syslog.h"
Couldn't resolve included file "spawn.h"
Couldn't resolve included file "sys/wait.h"
Couldn't resolve included file "sys/resource.h"
Couldn't resolve included file "sys/ioctl.h"
Couldn't resolve included file "sys/file.h"
Couldn't resolve included file "asm/ioctls.h"
Couldn't resolve included file "sys/file.h"
Couldn't resolve included file "GL/glcorearb.h"
Couldn't resolve included file "GL/glext.h"
Couldn't resolve included file "ImageWrapper.h"
Couldn't resolve included file "ft2build.h"
Couldn't resolve included file "execinfo.h"
Couldn't resolve included file "dlfcn.h"
Couldn't resolve included file "cxxabi.h"
Couldn't resolve included file "stdio.h"
Couldn't resolve included file "sys/types.h"
Couldn't resolve included file "stdint.h"
Couldn't resolve included file "sys/queue.h"
Couldn't resolve included file "machine/elf_machdep.h"
Couldn't resolve included file "machine/exec.h"
Couldn't resolve included file "stdlib.h"
Couldn't resolve included file "osreldate.h"
Couldn't resolve included file "sys/endian.h"
Couldn't resolve included file "endian.h"
Couldn't resolve included file "osreldate.h"
Couldn't resolve included file "sys/endian.h"
Couldn't resolve included file "sys/param.h"
Couldn't resolve included file "sys/endian.h"
Couldn't resolve included file "sys/param.h"
Couldn't resolve included file "sys/endian.h"
Couldn't resolve included file "sys/resource.h"
In file included from /mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp:15:
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformMisc.cpp:106:3: error: ignoring
return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
fscanf(SysFsFile, "%d", &SystemLineSize);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /mnt/Media/Developer/unreal/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/BlankProgram/Development/Core/Module.Core.3_of_7.cpp:17:
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp:1141:2: error:
ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
getcwd(CurrentDir, sizeof(CurrentDir));
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/Media/Developer/unreal/UnrealEngine/Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp:1395:2: error:
ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
fscanf(FilePtr, "%d %s %c %d", &DummyNumber, Buf, &DummyChar, &ParentPID);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
Cumulative thread seconds (4 processors): 1.22
ERROR: UBT ERROR: Failed to produce item: /mnt/Media/Developer/unreal/UnrealEngine/Engine/Binaries/Linux/BlankProgram
Cumulative action seconds (4 processors): 0.00 building projects, 1.22 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
Total build time: 1.83 seconds
Execution time: 1.830043
make: *** [Makefile:228: BlankProgram] Error 5
Issues appear to be with linking monolithic thirdparty libraries (not sure what monolithic means). If I point the build at the fpic built libraries the errors building blankprogram go away.
is there a way to switch to the non monolithic build more easily?
Will try building UEeditor now
RCL
(Arciel Rekman)
November 1, 2016, 10:02pm
8
I am not sure why this started to happen, might be libc headers have been updated? At least compiling with clang 3.9.0 against glibc 2.17 (i.e. v8 cross-toolchain) does not produce those warnings.
These warnings have been fixed in one of the branches, but the change is not yet in main (master) branch - meanwhile you will have to suppress the warning.
RCL
(Arciel Rekman)
November 1, 2016, 10:50pm
9
BlankProgram should be monolithic. Try building SlateViewer, this is also a monolithic program.
OK I get similar errors. Interesting that things appear to build against the fpic libraries fine. Im not familiar with why their needs to be seperate versions of the dependancies but the issues do seem to stem from there.
Shame the fix is long winded and hacky. Not sure if any of this helps to narrow down the actual causes.
M-Pixel
(M-Pixel)
May 17, 2018, 12:59am
11
What exactly was the long winded and hacky solution?