Skip to contentSkip to conversation

package/skeleton: create lib64 symlink on s390x

PATCH Applied Reza Arbab 3 participants 3 messages Dec 11, 2024 – Jan 6, 2025

lore
Share & tools
lore

Reza Arbab

author
#0 lore raw

PATCH 1/1 package/skeleton: create lib64 symlink on s390x

Building on a s390x host, we currently end up with:

output/host/lib
output/host/lib32 -> lib
output/host/lib64

host-libopenssl installs to lib64, but since the kernel build doesn't explicitly search there, it breaks:

Quoted 1 line
Quoted 1 line
Quoted 1 line

linux 6.6.32 Building

[...]
HOSTCC scripts/sign-file
/usr/bin/ld: cannot find -lcrypto: No such file or directory
collect2: error: ld returned 1 exit status

Fix this by creating a lib64 link instead of lib32, so we get:

output/host/lib
output/host/lib64 -> lib

---
 package/skeleton/skeleton.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/skeleton/skeleton.mk +1 -1
index 1bb397119153..dc754f12448a 100644
@@ -23,7 +23,7 @@ define HOST_SKELETON_INSTALL_CMDS
 	$(Q)mkdir -p $(HOST_DIR)/lib
 	$(Q)mkdir -p $(HOST_DIR)/include
 	$(Q)case $(HOSTARCH) in \
-		(*64) ln -snf lib $(HOST_DIR)/lib64;; \
+		(*64|s390x) ln -snf lib $(HOST_DIR)/lib64;; \
 		(*)   ln -snf lib $(HOST_DIR)/lib32;; \
 	esac
 endef
Signature · 6 lines
2.47.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 17 lines · On Wed, 11 Dec 2024 11:03:41 -0600 Reza Arbab <[email protected]> wrote:

Building on a s390x host, we currently end up with:

output/host/lib
output/host/lib32 -> lib
output/host/lib64

host-libopenssl installs to lib64, but since the kernel build doesn't explicitly search there, it breaks:

Quoted 1 line
Quoted 1 line
Quoted 1 line

linux 6.6.32 Building

[...]
HOSTCC scripts/sign-file
/usr/bin/ld: cannot find -lcrypto: No such file or directory
collect2: error: ld returned 1 exit status

Fix this by creating a lib64 link instead of lib32, so we get:

Quoted 7 lines

output/host/lib
output/host/lib64 -> lib

---
 package/skeleton/skeleton.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Reza Arbab
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Reza" == Reza Arbab <[email protected]> writes:

Building on a s390x host, we currently end up with:
output/host/lib
output/host/lib32 -> lib output/host/lib64

host-libopenssl installs to lib64, but since the kernel build doesn't explicitly search there, it breaks:

Quoted 1 line
Quoted 1 line
Quoted 1 line

linux 6.6.32 Building

[...]
HOSTCC scripts/sign-file
/usr/bin/ld: cannot find -lcrypto: No such file or directory
collect2: error: ld returned 1 exit status

Quoted 6 lines

Fix this by creating a lib64 link instead of lib32, so we get:

output/host/lib
output/host/lib64 -> lib

Committed to 2024.02.x and 2024.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot