Bug 258733

Summary: science/libghemical: Fails to build on aarch64
Product: Ports & Packages Reporter: Mikael Urankar <mikael>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (yuri)
Priority: ---    
Version: Latest   
Hardware: arm64   
OS: Any   
Description Flags
v0 none

Description Mikael Urankar freebsd_committer 2021-09-26 10:49:57 UTC
Created attachment 228192 [details]

ld-elf.so.1: /usr/local/lib/gcc10/libgcc_s.so: invalid file format
===>  Script "configure" failed unexpectedly.

/usr/local/lib/gcc10/libgcc_s.so is a file on aarch64:
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library.  */
GROUP ( libgcc_s.so.1 -lgcc )

The lib is /usr/local/lib/gcc10/libgcc_s.so.1

see attached patch. not sure why CONFIGURE_ENV is needed as it builds fine on aarch64 (haven't tried amd64)
Comment 1 Yuri Victorovich freebsd_committer 2021-09-26 17:45:20 UTC
I removed this line altogether.

Comment 2 commit-hook freebsd_committer 2021-09-26 17:45:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c0f1282a1cfc26c5d3dc6a2cbacf8f6aadb2c1c2

commit c0f1282a1cfc26c5d3dc6a2cbacf8f6aadb2c1c2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-09-26 16:47:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-09-26 17:43:55 +0000

    science/libghemical: Remove LD_PRELOAD vecause it configured now without it

    PR:             258733
    Reported by:    mikael

 science/libghemical/Makefile | 2 --
 1 file changed, 2 deletions(-)