Bug 197926 - emulators/qemu-user-static fails due to syntax error in config-host.ld:14
Summary: emulators/qemu-user-static fails due to syntax error in config-host.ld:14
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Juergen Lock
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-22 17:34 UTC by Kalle Richter
Modified: 2015-12-14 02:05 UTC (History)
1 user (show)

See Also:


Attachments
log of `make reinstall` of `emulators/qemu-user-static` (46.80 KB, text/x-log)
2015-02-22 17:34 UTC, Kalle Richter
no flags Details
the config-host.ld file containing the syntax error (1.75 KB, text/plain)
2015-02-22 17:41 UTC, Kalle Richter
no flags Details
./work/seanbruno-qemu-bsd-user-87de5f9/config.log (88.86 KB, text/x-log)
2015-02-23 03:47 UTC, Kalle Richter
no flags Details
the output of ld --verbose (8.50 KB, text/x-log)
2015-02-23 03:47 UTC, Kalle Richter
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kalle Richter 2015-02-22 17:34:32 UTC
Created attachment 153324 [details]
log of `make reinstall` of `emulators/qemu-user-static`

Reproduced with both `emulators/qemu-devel` and `emulators/qemu-sbruno`. The full error message is `../config-host.ld:14: syntax error`. Find the complete build log attached (with `emulators/qemu-sbruno` 2.2.50.g20150215 installed).
Comment 1 Kalle Richter 2015-02-22 17:41:00 UTC
Created attachment 153325 [details]
the config-host.ld file containing the syntax error
Comment 2 Juergen Lock freebsd_committer freebsd_triage 2015-02-22 19:40:19 UTC
Which FreeBSD version is this?  Can you show the config.log too?  Looks like the fallback code in the configure script for when

        $CC -Wl,-Ttext-segment=...

doesn't work is out of date, but that fallback code shouldn't even be reached...  So we need to find out why it is reached in your case.
Comment 3 Juergen Lock freebsd_committer freebsd_triage 2015-02-22 20:28:11 UTC
Hmm or maybe it should be reached in some cases but then your linker script would be unexpected...  Can you show output of:

       ld --verbose

too?

Thanx!
Comment 4 Kalle Richter 2015-02-23 03:46:13 UTC
> Which FreeBSD version is this?
9.3-RELEASE-p8
Comment 5 Kalle Richter 2015-02-23 03:47:01 UTC
Created attachment 153351 [details]
./work/seanbruno-qemu-bsd-user-87de5f9/config.log

The only config.log in `/usr/ports/emulator/qemu-user-static`
Comment 6 Kalle Richter 2015-02-23 03:47:23 UTC
Created attachment 153352 [details]
the output of ld --verbose
Comment 7 Juergen Lock freebsd_committer freebsd_triage 2015-02-23 09:48:06 UTC
(In reply to Kalle Richter from comment #6)
Yeah looks like something is odd on your box, possibly something in the environment?  Can you show output of

       env

too?
Comment 8 Kalle Richter 2015-02-23 19:36:51 UTC
    # env
    CCACHE_PREFIX=distcc
    SHELL=/bin/csh
    TERM=xterm
    DISTCC_HOSTS=192.168.178.21,cpp,lzo 192.168.178.2,cpp,lzo
    http_proxy=http://192.168.178.121:3128/
    USER=root
    SUDO_USER=richter
    SUDO_UID=1001
    FTP_PROXY=ftp://192.168.178.121:3128/
    ftp_proxy=ftp://192.168.178.121:3128/
    USERNAME=root
    MAIL=/var/mail/root
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/root/bin:/usr/local/fusion-io
    RSYNC_PROXY=rsync://192.168.178.121:3128/
    rsync_proxy=rsync://192.168.178.121:3128/
    PWD=/usr/ports/emulators/qemu-user-static
    SOCKS_PROXY=socks://192.168.178.121:3128/
    socks_proxy=socks://192.168.178.121:3128/
    HTTPS_PROXY=https://192.168.178.121:3128/
    https_proxy=https://192.168.178.121:3128/
    SHLVL=1
    SUDO_COMMAND=/usr/sbin/jexec 3 /usr/local/bin/bash
    HOME=/root
    HTTP_PROXY=http://192.168.178.121:3128/
    LOGNAME=root
    SUDO_GID=1001
    _=/usr/bin/env
    OLDPWD=/
Comment 9 Juergen Lock freebsd_committer freebsd_triage 2015-02-24 11:05:59 UTC
Yeah...  Try this:

        PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/local/fusion-io

Putting /usr/local/{s,}bin first in PATH can cause all kinds of issues.

HTH, :)
Juergen
Comment 10 Sean Bruno freebsd_committer freebsd_triage 2015-09-02 16:19:52 UTC
(In reply to Kalle Richter from comment #0)
Is this resolved for you?