https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244777

            Bug ID: 244777
           Summary: emulators/qemu-user-static-devel: Fix build with lld
                    10.0.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: emulat...@freebsd.org
          Reporter: d...@freebsd.org
            Blocks: 244251
             Flags: maintainer-feedback?(emulat...@freebsd.org)
          Assignee: emulat...@freebsd.org

Created attachment 212366
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212366&action=edit
Fix emulators/qemu-user-static-devel build with lld 10.0.0

As reported in bug 244251, with clang and lld 10.0.0 the
emulators/qemu-user-static-devel port fails in the configure stage:

===>  Configuring for qemu-user-static-devel-3.1.0_3

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 emulat...@freebsd.org [maintainer] and attach
the
"/wrkdirs/usr/ports/emulators/qemu-user-static-devel/work/qemu-bsd-user-e21442a/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.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244251
[Bug 244251] [exp-run] Against projects/clang1000-import branch
-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to