Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2023 23:38:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271374] emulators/mame-0.254 fails to build on {amd64,i386}-14-CURRENT
Message-ID:  <bug-271374-7788-o2v2DZI4Mj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271374-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271374-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271374

--- Comment #8 from Robert Clausecker <fuz@FreeBSD.org> ---
Took a crack at fixing the linking problem on armv7 today.  I tried to use =
the
bfd and gold linkers, but neither reduced memory usage, even with all memory
saving options enabled.  Even compiling with -Os didn't help.

Weirdly enough, lld crashes at 2 GB of memory usage.  I thought armv7 progr=
ams
can use 4 GB of virtual address space on arm64 hosts, but it seems like I'm
wrong.

What finally did the trick was passing LDFLAGS=3D-s to the makefile, stripp=
ing
the binary as it was linked.

Another solution I had so far not checked might be to unbundle bundled
dependencies, reducing the total amount of text and data involved in the li=
nk.

Note also that as of now, mame ignores CC and CXX passed in from the host a=
nd
instead hard codes to cc and c++.  This is wrong.  I've a patch ready that
should address this.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271374-7788-o2v2DZI4Mj>