The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Signed-off-by: vkrawiec <redacted>
---
package/llvm-project/lld/lld.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -18,8 +18,8 @@ HOST_LLD_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
From: Romain Naour via buildroot <hidden> Date: 2025-08-10 20:14:00
Hello Victor, All,
Le 20/01/2025 à 17:28, vkrawiec a écrit :
The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Sorry for the slow reply.
I did a test with make sdk and indeed, the
$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld still points to the location of lld
inside the HOST_DIR directory where host-lld was initially installed.
As soon as the sdk is relocated, the symlink is wrong.
Acked-by: Romain Naour <redacted>
Signed-off-by: vkrawiec <redacted>
Can you fix you name in your SoB line? It should be "Victor Krawiec"
Best regards,
Romain
@@ -18,8 +18,8 @@ HOST_LLD_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS
From: Victor Krawiec <hidden> Date: 2025-08-12 09:28:56
From: vkrawiec <redacted>
The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Signed-off-by: Victor Krawiec <redacted>
---
Changes v1 -> v2:
- Change SoB line to use full name
---
package/llvm-project/lld/lld.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -20,8 +20,8 @@ HOST_LLD_CONF_OPTS += -DLLVM_COMMON_CMAKE_UTILS=$(HOST_DIR)/lib/cmake/llvm# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS
From: Romain Naour via buildroot <hidden> Date: 2025-08-24 15:42:57
Hello Victor,
Le 12/08/2025 à 11:28, Victor Krawiec a écrit :
From: vkrawiec <redacted>
The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Signed-off-by: Victor Krawiec <redacted>
---
Changes v1 -> v2:
- Change SoB line to use full name
It's important to have the commit Author is matching with the SoB line.
WARNING: Author is a single name: "vkrawiec"
WARNING: Author and SoB line do not match, or missing SoB line
After updating your gitconfig, you can update your commit using:
git commit --amend --reset-author
Best regards,
Romain
@@ -20,8 +20,8 @@ HOST_LLD_CONF_OPTS += -DLLVM_COMMON_CMAKE_UTILS=$(HOST_DIR)/lib/cmake/llvm# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS
From: Victor Krawiec <hidden> Date: 2025-09-01 08:22:49
The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Signed-off-by: Victor Krawiec <redacted>
---
Changes v2 -> v3:
- Change commit Author to match SoB line
Changes v1 -> v2:
- Change SoB line to use full name
Signed-off-by: Victor Krawiec <redacted>
---
package/llvm-project/lld/lld.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -20,8 +20,8 @@ HOST_LLD_CONF_OPTS += -DLLVM_COMMON_CMAKE_UTILS=$(HOST_DIR)/lib/cmake/llvm# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS
From: Romain Naour via buildroot <hidden> Date: 2025-09-10 21:38:21
Hello Victor, All,
Le 01/09/2025 à 10:22, Victor Krawiec a écrit :
The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Signed-off-by: Victor Krawiec <redacted>
Applied to master, thanks.
Best regards,
Romain
quoted hunk
---
Changes v2 -> v3:
- Change commit Author to match SoB line
Changes v1 -> v2:
- Change SoB line to use full name
Signed-off-by: Victor Krawiec <redacted>
---
package/llvm-project/lld/lld.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -20,8 +20,8 @@ HOST_LLD_CONF_OPTS += -DLLVM_COMMON_CMAKE_UTILS=$(HOST_DIR)/lib/cmake/llvm# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS
From: Thomas Perale via buildroot <hidden> Date: 2025-09-19 12:56:23
In reply of:
The symlink bin/lld -> $(GNU_TARGET_NAME)/bin/lld is broken inside a SDK containing host-lld package
The symlink still points to the location of lld inside the build's host folder instead of the location of lld inside the SDK
In consequence GCC is not able to find lld linker
Changing the symlink to be relative during host-lld installation fixes the problem
Signed-off-by: Victor Krawiec <redacted>
Applied to 2025.02.x, 2025.05.x & 2025.08.x. Thanks
quoted hunk
---
Changes v2 -> v3:
- Change commit Author to match SoB line
Changes v1 -> v2:
- Change SoB line to use full name
Signed-off-by: Victor Krawiec <redacted>
---
package/llvm-project/lld/lld.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -20,8 +20,8 @@ HOST_LLD_CONF_OPTS += -DLLVM_COMMON_CMAKE_UTILS=$(HOST_DIR)/lib/cmake/llvm# GCC looks for tools in a different path from LLD's default installation pathdefine HOST_LLD_CREATE_SYMLINKSmkdir-p$(HOST_DIR)/$(GNU_TARGET_NAME)/bin-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld-ln-sf$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld+ln-sfr$(HOST_DIR)/bin/lld$(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lldendefHOST_LLD_POST_INSTALL_HOOKS+=HOST_LLD_CREATE_SYMLINKS