Bug 259138 - lang/gcc10{-devel}: Fails to configure: configure: error: cannot run C compiled programs.
Summary: lang/gcc10{-devel}: Fails to configure: configure: error: cannot run C compil...
Status: Open
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: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-13 15:00 UTC by trust_no_1
Modified: 2021-10-13 23:30 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trust_no_1 2021-10-13 15:00:25 UTC

    
Comment 1 trust_no_1 2021-10-13 15:14:47 UTC
I cannot build lang/gcc10 in poudriere. I' have tried to use the option MAKE_JOBS_UNSAFE=yes but it doesn't help. The same occours with lang/gcc10-devel.
I have attached the full log of poudriere.
Strange is that if I try to compile it in a jail set up by hands, it DOES compile.
The last lines of the logs are:

configure: creating cache ./config.cache
checking build system type... x86_64-portbld-freebsd12.2
checking host system type... x86_64-portbld-freebsd12.2
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-freebsd12.2-ar... /usr/local/x86_64-portbld-freebsd12.2/bin/ar
checking for x86_64-portbld-freebsd12.2-lipo... lipo
checking for x86_64-portbld-freebsd12.2-nm... /wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/nm
checking for x86_64-portbld-freebsd12.2-ranlib... /usr/local/x86_64-portbld-freebsd12.2/bin/ranlib
checking for x86_64-portbld-freebsd12.2-strip... /usr/local/x86_64-portbld-freebsd12.2/bin/strip
checking whether ln -s works... yes
checking for x86_64-portbld-freebsd12.2-gcc... /wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd12.2/bin/ -B/usr/local/x86_64-portbld-freebsd12.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd12.2/include -isystem /usr/local/x86_64-portbld-freebsd12.2/sys-include   -fno-checking
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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd12.2/bin/ -B/usr/local/x86_64-portbld-freebsd12.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd12.2/include -isystem /usr/local/x86_64-portbld-freebsd12.2/sys-include   -fno-checking accepts -g... yes
checking for /wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd12.2/bin/ -B/usr/local/x86_64-portbld-freebsd12.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd12.2/include -isystem /usr/local/x86_64-portbld-freebsd12.2/sys-include   -fno-checking option to accept ISO C89... none needed
checking how to run the C preprocessor... cpp
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of double... 8
checking size of long double... 16
checking for inttypes.h... yes
checking for stdint.h... yes
checking for stdlib.h... yes
checking for ftw.h... yes
checking for unistd.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for memory.h... yes
checking for sys/auxv.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking whether decimal floating point is supported... no
configure: WARNING: decimal float is not supported for this target, ignored
checking whether fixed-point is supported... no
checking whether the compiler is configured for setjmp/longjmp exceptions... no
checking for CET support... no
checking if the linker (/wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/collect-ld) is GNU ld... yes
checking for thread model used by GCC... posix
checking whether assembler supports CFI directives... yes
checking for target glibc version... 0.0
checking for __attribute__((visibility("hidden")))... yes
checking for .cfi_sections .debug_frame... yes
checking whether the target assembler supports thread-local storage... yes
checking whether the thread-local storage support is from emutls... no
checking if the assembler supports AVX... yes
checking for init priority support... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating auto-target.h
config.status: executing default commands
Adding multilib support to Makefile in /wrkdirs/usr/ports/lang/gcc10/work/gcc-10.3.0/libgcc
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /wrkdirs/usr/ports/lang/gcc10/work/.build/x86_64-portbld-freebsd12.2/libgcc
Running configure in multilib subdir 32
pwd: /wrkdirs/usr/ports/lang/gcc10/work/.build/x86_64-portbld-freebsd12.2
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-portbld-freebsd12.2
checking host system type... x86_64-portbld-freebsd12.2
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-freebsd12.2-ar... /usr/local/x86_64-portbld-freebsd12.2/bin/ar
checking for x86_64-portbld-freebsd12.2-lipo... lipo
checking for x86_64-portbld-freebsd12.2-nm... /wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/nm
checking for x86_64-portbld-freebsd12.2-ranlib... /usr/local/x86_64-portbld-freebsd12.2/bin/ranlib
checking for x86_64-portbld-freebsd12.2-strip... /usr/local/x86_64-portbld-freebsd12.2/bin/strip
checking whether ln -s works... yes
checking for x86_64-portbld-freebsd12.2-gcc... /wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/xgcc -B/wrkdirs/usr/ports/lang/gcc10/work/.build/./gcc/ -B/usr/local/x86_64-portbld-freebsd12.2/bin/ -B/usr/local/x86_64-portbld-freebsd12.2/lib/ -isystem /usr/local/x86_64-portbld-freebsd12.2/include -isystem /usr/local/x86_64-portbld-freebsd12.2/sys-include -fno-checking  -m32
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 `/wrkdirs/usr/ports/lang/gcc10/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[3]: *** [Makefile:17191: configure-stage1-target-libgcc] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc10/work/.build'
gmake[2]: *** [Makefile:22903: stage1-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc10/work/.build'
gmake[1]: *** [Makefile:23235: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc10/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: stopped in /usr/ports/lang/gcc10
=>> Cleaning up wrkdir
===>  Cleaning for gcc10-10.3.0
build of lang/gcc10 | gcc10-10.3.0 ended at Wed Oct 13 11:57:10 CEST 2021
build time: 00:21:10
!!! build failure encountered !!!
Comment 2 Gerald Pfeifer freebsd_committer 2021-10-13 21:22:03 UTC
I'm afraid I won't be able to debug this from where I sit, but looking
at the output you shared I recommend you locate and look into the file

  config.log

and see what it reports on the failed test.

My guess (looking at the output you shared) is that you are trying to
build in the multilib case, alas something is going wrong there. If I
am right, removing the line

  OPTIONS_DEFAULT_amd64+= MULTILIB

from the Makefile should make a difference.

Since this works in a jail, and I have not received any other reports
(also not from the FreeBSD package cluster), something appears to be
special with your Poudriere environment. Check any special settings,
anything extra, non-default.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-13 23:30:43 UTC
^Triage: Maintainer provided feedback (set to +)

@Reporter Could you please provide additional information, including:

- uname -a output
- full build log (as an attachment)
- /etc/make.conf contents if not empty (as an attachment)
- the OPTIONS used (enabled/disabled) for the build
- Test/confirm reproduction and build with default OPTIONS (make rmconfig)
- Test/confirm reproduction and build with MULTILIB option disabled