Bug 258733 - science/libghemical: Fails to build on aarch64
Summary: science/libghemical: Fails to build on aarch64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-26 10:49 UTC by Mikael Urankar
Modified: 2021-09-26 17:45 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
v0 (593 bytes, patch)
2021-09-26 10:49 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2021-09-26 10:49:57 UTC
Created attachment 228192 [details]
v0

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 freebsd_triage 2021-09-26 17:45:20 UTC
I removed this line altogether.

Thanks.
Comment 2 commit-hook freebsd_committer freebsd_triage 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(-)