Bug 227694 - lang/gcc6 configure:error: cannot compute suffix of object files: cannot compile
Summary: lang/gcc6 configure:error: cannot compute suffix of object files: cannot compile
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: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-22 11:57 UTC by Rob Belics
Modified: 2018-04-23 13:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Belics 2018-04-22 11:57:48 UTC
Configuring stage 1 in x86_64-portbld-freebsd11.1/libgcc
configure: creating cache ./config.cache
checking build system type... x86_64-portbld-freebsd11.1
checking host system type... x86_64-portbld-freebsd11.1
DEFAULT_VERSIONS+=ssl=openssl
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... /usr/bin/awk
checking for x86_64-portbld-freebsd11.1-ar... /usr/local/x86_64-portbld-freebsd11.1/bin/ar
checking for x86_64-portbld-freebsd11.1-lipo... lipo
checking for x86_64-portbld-freebsd11.1-nm... /usr/ports/lang/gcc6/work/.build/./gcc/nm
checking for x86_64-portbld-freebsd11.1-ranlib... /usr/local/x86_64-portbld-freebsd11.1/bin/ranlib
checking for x86_64-portbld-freebsd11.1-strip... /usr/local/x86_64-portbld-freebsd11.1/bin/strip
checking whether ln -s works... yes
checking for x86_64-portbld-freebsd11.1-gcc... /usr/ports/lang/gcc6/work/.build/./gcc/xgcc -B/usr/ports/lang/gcc6/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd11.1/bin/ -B/usr/local/x86_64-portbld-freebsd11.1/lib/ -isystem /usr/local/x86_64-portbld-freebsd11.1/include -isystem /usr/local/x86_64-portbld-freebsd11.1/sys-include   
checking for suffix of object files... configure: error: in `/usr/ports/lang/gcc6/work/.build/x86_64-portbld-freebsd11.1/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[4]: *** [Makefile:14944: configure-stage1-target-libgcc] Error 1
gmake[4]: Leaving directory '/usr/ports/lang/gcc6/work/.build'
gmake[3]: *** [Makefile:21516: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc6/work/.build'
gmake[2]: *** [Makefile:21848: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc6/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/gcc6
*** Error code 1
Comment 1 Gerald Pfeifer freebsd_committer freebsd_triage 2018-04-22 14:25:57 UTC
(In reply to Rob Belics from comment #0)
> See `config.log' for more details.

So, what does config.log say?

I bet it's some special compiler options or something you have
somewhere in your environment.  (In 99% of reports like this that
is the case.)
Comment 2 Rob Belics 2018-04-22 19:15:12 UTC
I tried to find config.log but don't see it under /var/log/ Had to leave so can't look for it till tomorrow. Can someone point me to it and I might be able to check sooner.
Comment 3 Rob Belics 2018-04-23 13:03:18 UTC
The issue was math/mpc which was linking to an older version of math/mpfr which, I presume, was built out of order.
Comment 4 Gerald Pfeifer freebsd_committer freebsd_triage 2018-04-23 13:43:14 UTC
Thank you for following up with your findings, Rob!