Cannot build 4.16.2-2, gives this error:
patching file /home/dariost/unreal-engine/src/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs
Hunk #1 succeeded at 395 (offset 8 lines).
patching file /home/dariost/unreal-engine/src/UnrealEngine/Engine/Source/Programs/UnrealLightmass/Private/LightmassCore/Misc/LMStats.h
patching file /home/dariost/unreal-engine/src/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs
Hunk #1 FAILED at 404.
Hunk #2 FAILED at 593.
2 out of 2 hunks FAILED -- saving rejects to file /home/dariost/unreal-engine/src/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs.rej
/home/dariost/unreal-engine/src/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs.rej contains:
--- LinuxToolChain.cs.orig 2017-07-17 14:53:24.847599080 -0400
+++ LinuxToolChain.cs 2017-07-17 14:53:33.137529047 -0400
@@ -404,6 +404,8 @@
Result += " -Wno-invalid-offsetof";
// we use this feature to allow static FNames.
Result += " -Wno-gnu-string-literal-operator-template";
+ // disable PIE which is on by default in Arch since July 2017
+ Result += " -fno-pie";
if (CompileEnvironment.bEnableShadowVariableWarnings)
{
@@ -593,6 +595,9 @@
Result += string.Format(" -Wl,--unresolved-symbols=ignore-in-shared-libs");
}
+ // disable PIE which is on by default in Arch since July 2017
+ Result += " -nopie";
+
// RPATH for third party libs
Result += " -Wl,-rpath=${ORIGIN}";
Result += " -Wl,-rpath-link=${ORIGIN}";
Search Criteria
Package Details: unreal-engine 5.5.0-0
Package Actions
Git Clone URL: | https://aur.archlinux.org/unreal-engine.git (read-only, click to copy) |
---|---|
Package Base: | unreal-engine |
Description: | A 3D game engine by Epic Games which can be used non-commercially for free. |
Upstream URL: | https://www.unrealengine.com/ |
Keywords: | 3D engine game ue5 Unreal |
Licenses: | GPL3, custom:UnrealEngine |
Submitter: | acerix |
Maintainer: | Shatur (Neko-san) |
Last Packager: | Neko-san |
Votes: | 76 |
Popularity: | 1.08 |
First Submitted: | 2016-05-01 18:37 (UTC) |
Last Updated: | 2024-11-16 03:10 (UTC) |
Dependencies (29)
- coreutils (coreutils-gitAUR, busybox-coreutilsAUR, coreutils-hybrid-gitAUR, coreutils-selinuxAUR, coreutils-uutilsAUR, coreutils-hybridAUR)
- dos2unix (dos2unix-gitAUR)
- dotnet-runtime (dotnet-runtime-2.2AUR, dotnet-runtime-3.0AUR, dotnet-runtime-2.1AUR, dotnet-runtime-5.0-binAUR, dotnet-runtime-7.0-binAUR, dotnet-runtime-6.0-binAUR, dotnet-runtime-preview-binAUR, dotnet-runtime-binAUR, dotnet-runtime-8.0-binAUR)
- dotnet-sdk (dotnet-sdk-2.2AUR, dotnet-sdk-2.2-vs2017AUR, dotnet-sdk-3.0AUR, dotnet-sdk-2.1AUR, dotnet-sdk-5.0-binAUR, dotnet-sdk-6.0.110-binAUR, dotnet-sdk-7.0-binAUR, dotnet-sdk-8.0.300-binAUR, dotnet-sdk-6.0-binAUR, dotnet-sdk-preview-binAUR, dotnet-sdk-binAUR, dotnet-sdk-8.0-binAUR)
- findutils (findutils-gitAUR, busybox-coreutilsAUR, findutils-selinuxAUR)
- icu63AUR
- lld (llvm-rocm-gitAUR, llvm-gitAUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- python (python37AUR, python311AUR, python310AUR)
- sdl2 (sdl2-gitAUR, sdl2-compat-gitAUR)
- steam
- vulkan-icd-loader (vulkan-icd-loader-gitAUR)
- xdg-user-dirs
- git (git-gitAUR, git-glAUR) (make)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR) (make)
- grep (grep-gitAUR, busybox-coreutilsAUR, grep-compatAUR) (make)
- openssh (openssh-gitAUR, openssh-dotconfigAUR, openssh-dotconfig-binAUR, openssh-selinuxAUR, openssh-hpn-shimAUR, openssh-gssapiAUR) (make)
- sed (busybox-coreutilsAUR, sed-gitAUR) (make)
- wget (wget-gitAUR, wurlAUR) (make)
- clionAUR (optional) – IDE for projects
- Show 9 more dependencies...
Required by (1)
Sources (6)
Latest Comments
« First ‹ Previous 1 .. 63 64 65 66 67 68 69 70 71 72 73 .. 81 Next › Last »
dariost commented on 2017-07-18 20:06 (UTC)
acerix commented on 2017-07-17 16:58 (UTC) (edited on 2017-07-17 19:07 (UTC) by acerix)
It turns out hardening-wrapper is now deprecated because the clang package in Arch has been modified to use SSP and PIE by default.
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/llvm&id=1d5568f96e56efb2186b3ae081488e1e5a509397
https://www.reddit.com/r/archlinux/comments/6n5tkp/arch_now_enables_pie_and_ssp_by_default_in_gcc/
I don't know what changes the engine needs for it to compile with PIE, so I added "no-pie" flags to the compile/linker which got it building.
kro007 commented on 2017-07-17 07:23 (UTC)
@zerophase hardening-wrapper is not installed on my computer.
" Have any more information on your system ? "
Arch x64 fully update ... many 32bits lib from multilib repo installed
(for steam)
what info do you need ?
Kerrex commented on 2017-07-17 07:08 (UTC)
I confirm that hardening-wrapper is uninstalled here
zerophase commented on 2017-07-16 21:56 (UTC)
@acerix I'm getting the issue too, and don't have hardening-wrapper installed.
zerophase commented on 2017-07-16 21:29 (UTC)
I didn't have any issues with that when I compiled 4.16.2. Have any more information on your system? Are you sure you have enough space to compile Unreal?
Other than that it looks like it could involves a shared library trying to use a static library. If it's an Arch specific issue it might have something to do with the update to makepkg a few days ago.
I'd definitely report the issue to Epic maybe they could provide more help.
kro007 commented on 2017-07-16 18:57 (UTC)
Hello,
I have exactly the same error as Kerrex
some help is welcome
Pinned Comments
Neko-san commented on 2022-11-01 02:32 (UTC) (edited on 2023-06-25 01:19 (UTC) by Neko-san)
@juancarlospaco this is easily done on your own system, not in a PKGBUILD, given that building packages runs as root:
Permission issues like this are already mentioned on the UE Arch wiki page: https://wiki.archlinux.org/title/Unreal_Engine_4#Installing_from_the_AUR
This is a user system problem; I already did what I could without needing users to do the above by giving the
777
permissions. If it still gives you trouble, you'll have to use the example to solve it or change the install location to somewhere you have user permissions by default (as I cannot do this for you).zerophase commented on 2021-05-27 08:15 (UTC) (edited on 2021-05-30 08:41 (UTC) by zerophase)
Will update to 5.0 when it is released.