Bug 244654 - sysutils/bhyve-firmware: Fails to build: configure: error: cannot compute suffix of object files: cannot compile
Summary: sysutils/bhyve-firmware: Fails to build: configure: error: cannot compute suf...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Keywords: needs-qa
Depends on:
Reported: 2020-03-07 07:29 UTC by b0cspa
Modified: 2020-10-22 13:42 UTC (History)
3 users (show)

See Also:

make.conf (741 bytes, text/plain)
2020-03-07 23:43 UTC, b0cspa
no flags Details
src.conf (653 bytes, text/plain)
2020-03-07 23:44 UTC, b0cspa
no flags Details
pkg version -v (38.27 KB, text/plain)
2020-03-07 23:50 UTC, b0cspa
no flags Details
kernel config just incase (5.80 KB, text/plain)
2020-03-07 23:53 UTC, b0cspa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description b0cspa 2020-03-07 07:29:11 UTC
It just doesnt build, hasnt for a bit, ive often resorted to just downloading the pkg and installing, im using synth, heres full build log, this might be related to other bugs, synth build log is attached

checking for x86_64-portbld-freebsd12.1-ranlib... /usr/local/x86_64-portbld-freebsd12.1/bin/ranlib
checking for x86_64-portbld-freebsd12.1-strip... /usr/local/x86_64-portbld-freebsd12.1/bin/strip
checking whether ln -s works... yes
checking for x86_64-portbld-freebsd12.1-gcc... /construction/xports/lang/gcc48/work/.build/./gcc/xgcc -B/construction/xports/lang/gcc48/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd12.1/bin/ -B/usr/local/x86_64-portbld-freebsd12.1/lib/ -isystem /usr/local/x86_64-portbld-freebsd12.1/include -isystem /usr/local/x86_64-portbld-freebsd12.1/sys-include
checking for suffix of object files... configure: error: in `/construction/xports/lang/gcc48/work/.build/x86_64-portbld-freebsd12.1/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[3]: *** [Makefile:13844: configure-stage1-target-libgcc] Error 1
gmake[3]: Leaving directory '/construction/xports/lang/gcc48/work/.build'
gmake[2]: *** [Makefile:18677: stage1-bubble] Error 2
gmake[2]: Leaving directory '/construction/xports/lang/gcc48/work/.build'
gmake[1]: *** [Makefile:18993: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/construction/xports/lang/gcc48/work/.build'
*** Error code 1

make: stopped in /xports/lang/gcc48

--  Termination
Finished: Saturday, 7 MAR 2020 at 06:26:44 UTC
Duration: 00:11:26
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-03-07 13:00:40 UTC
@Reporter Could you please 

Add additional information including:

- Exact FreeBSD version (uname -a)
- /etc/make.conf contents (as an attachment)
- pkg version -v output (as an attachment)
- Attach the complete build log (as an attachment)
- Attach the config.log file from the build (as an attachment)

And additionally:

- Try to reproduce the issue building directly from ports (without synth), using an up to date ports tree (head version), and report back
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2020-03-07 13:04:37 UTC
For what it's worth this appears to be an issue for lang/gcc48, which is deprecated (as of January 2020), which is being built as a dependency, not (apparently) related to sysutils/bhyve-firmware

lang/gcc48 in a current version of the ports tree is only depended on by the following ports:


See ports r524029
Comment 3 b0cspa 2020-03-07 23:43:26 UTC
Created attachment 212233 [details]
Comment 4 b0cspa 2020-03-07 23:44:05 UTC
Created attachment 212234 [details]
Comment 5 b0cspa 2020-03-07 23:50:28 UTC
Created attachment 212235 [details]
pkg version -v
Comment 6 b0cspa 2020-03-07 23:51:15 UTC
it is related to that, so i was unsure where to submit

the synth build log was 30 mb
so i uploaded it to another site
FreeBSD mouserpad 12.1-STABLE FreeBSD 12.1-STABLE r358686 FREESTEP  amd64
Comment 7 b0cspa 2020-03-07 23:53:31 UTC
Created attachment 212236 [details]
kernel config just incase
Comment 8 b0cspa 2020-03-08 03:39:23 UTC
I guess ill just close this bug and wait on news for when these ports will use newer gcc, i guess that is really more the question, is their any active work on uefi-ed2k-bhyve to make it compile with new versions of gcc?
Comment 9 Gerald Pfeifer freebsd_committer 2020-10-18 09:17:41 UTC
I believe this is caused by 
set in /etc/make.conf.

GCC 4.8 went end of life more than five years ago and does not know about
the Intel Ivy Bridge micro architecture.

I'll work around this in lang/gcc48 in the next days.

The better/long term fix is upgrade sysutils/uefi-edk2-bhyve to use a
current version of GCC (or clang) and then remove lang/gcc48 altogether.
Comment 10 commit-hook freebsd_committer 2020-10-22 13:42:14 UTC
A commit references this bug:

Author: gerald
Date: Thu Oct 22 13:41:32 UTC 2020
New revision: 552977
URL: https://svnweb.freebsd.org/changeset/ports/552977

  Remove -march=ivybridge from CFLAGS and CXXFLAGS if present since this
  version of GCC does not support the Intel Ivy Bridge architecture.

  PR:		244654