Bug 244773 - emulators/qemu30: Fix build with lld 10.0.0
Summary: emulators/qemu30: Fix build with lld 10.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks: 244251
  Show dependency treegraph
 
Reported: 2020-03-12 20:51 UTC by Dimitry Andric
Modified: 2020-03-21 01:17 UTC (History)
0 users

See Also:
bofh: maintainer-feedback+


Attachments
Fix emulators/qemu30 build with lld 10.0.0 (4.65 KB, patch)
2020-03-12 20:51 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2020-03-12 20:51:16 UTC
Created attachment 212363 [details]
Fix emulators/qemu30 build with lld 10.0.0

As reported in bug 244251, with clang and lld 10.0.0 the emulators/qemu30 port fails in the configure stage:

===>  Configuring for qemu30-3.0.1

ERROR: We need to link the QEMU user mode binaries at a
       specific text address. Unfortunately your linker
       doesn't support either the -Ttext-segment option or
       printing the default linker script with --verbose.
       If you don't want the user mode binaries, pass the
       --disable-user option to configure.

===>  Script "configure" failed unexpectedly.
Please report the problem to bofh@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/emulators/qemu30/work/qemu-3.0.1/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

This is because lld 10.0.0 no longer supports the -Ttext-segment option, and uses --image-base for similar functionality.

I am proposing a patch that makes the configure script check for the --image-base option first, then the -Ttext-segment option.
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2020-03-21 01:17:50 UTC
Fixed at r528819

Author: bofh
Date: Sat Mar 21 01:15:02 2020
New Revision: 528819
URL: https://svnweb.freebsd.org/changeset/ports/528819

Log:
 emulators/qemu30: Fix build with lld 10.0.0

 - Mark DEPRECATED as no longer maintained by upstream

Modified:
 head/emulators/qemu30/Makefile
 head/emulators/qemu30/files/patch-configure