Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/skeleton: create lib64 symlink on s390x
@ 2024-12-11 17:03 Reza Arbab
  2024-12-29 21:10 ` Thomas Petazzoni via buildroot
  2025-01-06 14:03 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Reza Arbab @ 2024-12-11 17:03 UTC (permalink / raw)
  To: buildroot

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:

  >>> 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

Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
---
 package/skeleton/skeleton.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/skeleton/skeleton.mk b/package/skeleton/skeleton.mk
index 1bb397119153..dc754f12448a 100644
--- a/package/skeleton/skeleton.mk
+++ b/package/skeleton/skeleton.mk
@@ -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
-- 
2.47.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/skeleton: create lib64 symlink on s390x
  2024-12-11 17:03 [Buildroot] [PATCH] package/skeleton: create lib64 symlink on s390x Reza Arbab
@ 2024-12-29 21:10 ` Thomas Petazzoni via buildroot
  2025-01-06 14:03 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-12-29 21:10 UTC (permalink / raw)
  To: Reza Arbab; +Cc: buildroot

On Wed, 11 Dec 2024 11:03:41 -0600
Reza Arbab <arbab@linux.ibm.com> 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:
> 
>   >>> 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
> 
> Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
> ---
>  package/skeleton/skeleton.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH] package/skeleton: create lib64 symlink on s390x
  2024-12-11 17:03 [Buildroot] [PATCH] package/skeleton: create lib64 symlink on s390x Reza Arbab
  2024-12-29 21:10 ` Thomas Petazzoni via buildroot
@ 2025-01-06 14:03 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2025-01-06 14:03 UTC (permalink / raw)
  To: Reza Arbab; +Cc: buildroot

>>>>> "Reza" == Reza Arbab <arbab@linux.ibm.com> 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:

 >>>> 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

 > Signed-off-by: Reza Arbab <arbab@linux.ibm.com>

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

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-06 14:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 17:03 [Buildroot] [PATCH] package/skeleton: create lib64 symlink on s390x Reza Arbab
2024-12-29 21:10 ` Thomas Petazzoni via buildroot
2025-01-06 14:03 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox