Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2020 11:24:19 +1000
From:      Andy Farkas <andyf@andyit.com.au>
To:        freebsd-ports@freebsd.org
Subject:   lang/gcc9 build fail - cannot run C compiled programs
Message-ID:  <4f57356d-9a3b-d846-9c79-6196e282d6af@andyit.com.au>

next in thread | raw e-mail | index | archive | help

Anyone have any pointers on how to fix this?


Affects only me:


# uname -a
FreeBSD drunkfish.andyit.com.au 12.2-STABLE FreeBSD 12.2-STABLE #0 
r367655: Sat Nov 14 17:29:33 AEST 2020 
root@drunkfish.andyit.com.au:/usr/obj/usr/src/amd64.amd64/sys/DRUNKFISH 
amd64
#

# svnlite co svn://drunkfish.andyit.com.au/ports/head /usr/ports
Checked out revision 555056.
#

# cat /var/db/ports/lang_gcc9/options
# This file is auto-generated by 'make config'.
# Options for gcc9-9.3.0_1
_OPTIONS_READ=gcc9-9.3.0_1
_FILE_COMPLETE_OPTIONS_LIST=BOOTSTRAP GRAPHITE MULTILIB PLUGINS
OPTIONS_FILE_SET+=BOOTSTRAP
OPTIONS_FILE_UNSET+=GRAPHITE
OPTIONS_FILE_SET+=MULTILIB
OPTIONS_FILE_SET+=PLUGINS
#

# cd /usr/ports/lang/gcc9

# make clean

===>  Cleaning for gcc9-9.3.0_1
#

# make all
Making GCC 9.3.0 for x86_64-portbld-freebsd12.2 [c,c++,objc,fortran]
===>  License GPLv3 GPLv3RLE accepted by the user
===>   gcc9-9.3.0_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gcc9-9.3.0_1 for building
===>  Extracting for gcc9-9.3.0_1
=> SHA256 Checksum OK for gcc-9.3.0.tar.xz.


...


checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in 
`/z/work/usr/ports/lang/gcc9/work/.build/x86_64-portbld-freebsd12.2/32/libgcc':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
gmake[4]: *** [Makefile:16762: configure-stage1-target-libgcc] Error 1
gmake[4]: Leaving directory '/z/work/usr/ports/lang/gcc9/work/.build'
gmake[3]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[3]: Leaving directory '/z/work/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/z/work/usr/ports/lang/gcc9/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/gcc9
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc9
#




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f57356d-9a3b-d846-9c79-6196e282d6af>