Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: error: installation or configuration problem: C compiler cannot create executables. #267

Open
leap0x7b opened this issue Sep 15, 2024 · 3 comments

Comments

@leap0x7b
Copy link

I'm building Retro68 on Arch Linux. I have successfully built Retro68 in other distros before like Fedora, NixOS, Void Linux, and also Arch Linux before I switched to those aforementioned distros. But for some reason, after I switched to Arch Linux the second time, it suddenly didn't build and gave me a strange error.

checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

What do you mean my GCC can't create executables? Of course it can! It successfully built the M68K toolchain before I got this error. What the hell is going on??? It can built the M68K toolchain but not PowerPC??? I'm so confused?!

Also here's an extended log, can't do a full log since I don't want to bother building it again so:

...
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc/ssp'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc/ssp'
Making install in .
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc'
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc'
make[5]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[5]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc'
make[3]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libc'
Making install in libm
make[3]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm'
Making install in math
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/math'
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/math'
make[5]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[5]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/math'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/math'
Making install in common
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/common'
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/common'
make[5]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[5]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/common'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/common'
Making install in complex
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/complex'
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/complex'
make[5]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[5]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/complex'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/complex'
Making install in fenv
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/fenv'
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/fenv'
make[5]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[5]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/fenv'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/fenv'
Making install in machine
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine'
Making install in powerpc
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine/powerpc'
make[6]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine/powerpc'
make[6]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[6]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[6]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine/powerpc'
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine/powerpc'
Making install in .
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine'
make[6]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine'
make[6]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[6]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[6]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine'
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm/machine'
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm'
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm'
make[5]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
make[5]: Tidak ada yang harus dilakukan untuk 'install-data-am'.
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm'
make[3]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/libm'
Making install in .
make[3]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
make[4]: Tidak ada yang harus dilakukan untuk 'install-exec-am'.
 /usr/bin/mkdir -p '/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib'
 /usr/bin/install -c -m 644  libm.a libc.a '/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib'
 ( cd '/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib' && /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/bin/ranlib libm.a )
 ( cd '/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib' && /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/bin/ranlib libc.a )
rm -f /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib/libg.a
ln /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib/libc.a /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib/libg.a >/dev/null 2>/dev/null || cp /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib/libc.a /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib/libg.a
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CCASFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=/home/leap123/Retro68/gcc/missing makeinfo --split-size=5000000 --split-size=5000000   " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/leap123/Retro68-build/toolchain" "infodir=/home/leap123/Retro68-build/toolchain/share/info" "libdir=/home/leap123/Retro68-build/toolchain/lib" "prefix=/home/leap123/Retro68-build/toolchain" "tooldir=/home/leap123/Retro68-build/toolchain/powerpc-apple-macos" "top_toollibdir=/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib" "AR=/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/bin/ar" "AS=/home/leap123/Retro68-build/gcc-build-ppc/./gcc/as" "CC=/home/leap123/Retro68-build/gcc-build-ppc/./gcc/xgcc -B/home/leap123/Retro68-build/gcc-build-ppc/./gcc/ -nostdinc -B/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/ -isystem /home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib/targ-include -isystem /home/leap123/Retro68/gcc/newlib/libc/include -B/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/bin/ -B/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib/ -isystem /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include -isystem /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/sys-include   " "LD=/home/leap123/Retro68-build/gcc-build-ppc/./gcc/collect-ld" "LIBCFLAGS=-g -O2" "NM=/home/leap123/Retro68-build/gcc-build-ppc/./gcc/nm" "PICFLAG=" "RANLIB=/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/bin/ranlib" "DESTDIR=" DO=install multi-do # make
make[5]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
make[5]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
if [ -z "" ]; then \
  /bin/sh /home/leap123/Retro68/gcc/newlib/../mkinstalldirs /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/include/*.h; do \
   /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/`basename $i`; \
  done; \
  /usr/bin/install -c -m 644 newlib.h /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/newlib.h; \
  /usr/bin/install -c -m 644 _newlib_version.h /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/_newlib_version.h; \
  /bin/sh /home/leap123/Retro68/gcc/newlib/../mkinstalldirs /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/include/machine/*.h; do \
   /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine/`basename $i`; \
  done; \
  if [ -n "" ]; then \
    for i in /home/leap123/Retro68/gcc/newlib/libc/machine//machine/*.h; do \
      if [ -f $i ]; then \
       /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine/`basename $i`; \
      else true; fi ; \
    done; \
  fi ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/machine/powerpc/machine/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine/`basename $i`; \
    else true; fi ; \
  done; \
  /bin/sh /home/leap123/Retro68/gcc/newlib/../mkinstalldirs /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/rpc; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/include/rpc/*.h; do \
   /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/rpc/`basename $i`; \
  done; \
  /bin/sh /home/leap123/Retro68/gcc/newlib/../mkinstalldirs /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/ssp; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/include/ssp/*.h; do \
   /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/ssp/`basename $i`; \
  done; \
  /bin/sh /home/leap123/Retro68/gcc/newlib/../mkinstalldirs /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/sys; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/include/sys/*.h; do \
   /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/sys/`basename $i`; \
  done; \
  if [ -n "" ]; then \
    for i in /home/leap123/Retro68/gcc/newlib/libc/machine//sys/*.h; do \
      if [ -f $i ]; then \
       /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/sys/`basename $i`; \
      else true; fi ; \
    done ; \
    for i in /home/leap123/Retro68/gcc/newlib/libc/machine//include/*.h; do \
      if [ -f $i ]; then \
       /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/`basename $i`; \
      else true; fi ; \
    done ; \
  fi ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/machine/powerpc/sys/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/sys/`basename $i`; \
    else true; fi ; \
  done ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/machine/powerpc/include/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/`basename $i`; \
    else true; fi ; \
  done ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/sys//sys/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/sys/`basename $i`; \
    else true; fi ; \
  done ; \
  /bin/sh /home/leap123/Retro68/gcc/newlib/../mkinstalldirs /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/bits; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/sys//bits/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/bits/`basename $i`; \
    else true; fi ; \
  done ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/sys//machine/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine/`basename $i`; \
    else true; fi ; \
  done ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/sys//include/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/`basename $i`; \
    else true; fi ; \
  done ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/sys//include/*; do \
    if [ -d $i ]; then \
        for j in $i/*.h; do \
            /usr/bin/install -c -m 644 $j /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/`basename $i`/`basename $j`; \
        done ; \
    else true; fi ; \
  done ; \
  for i in /home/leap123/Retro68/gcc/newlib/libc/sys//machine/powerpc/include/*.h; do \
    if [ -f $i ]; then \
     /usr/bin/install -c -m 644 $i /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine/`basename $i`; \
    else true; fi ; \
  done ; \
  for i in rpc/types.h rpc/xdr.h; do \
    if [ -f /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/$i ]; then \
        rm /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/$i; \
    else true; fi ; \
  done ; \
else true; fi
mkdir -p -- /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/machine
mkdir -p -- /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/rpc
mkdir -p -- /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/ssp
mkdir -p -- /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/sys
mkdir -p -- /home/leap123/Retro68-build/toolchain/powerpc-apple-macos/include/bits
 /usr/bin/mkdir -p '/home/leap123/Retro68-build/toolchain/powerpc-apple-macos/lib'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
make[3]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
make[2]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/newlib'
make[2]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make  DO=all multi-do # make
make[3]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make[3]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make[3]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make  DO=install multi-do # make
make[4]: Memasuki direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make[4]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
 /usr/bin/mkdir -p '/home/leap123/Retro68-build/toolchain/share/info'
 /usr/bin/install -c -m 644 /home/leap123/Retro68/gcc/libquadmath/libquadmath.info '/home/leap123/Retro68-build/toolchain/share/info'
 install-info --info-dir='/home/leap123/Retro68-build/toolchain/share/info' '/home/leap123/Retro68-build/toolchain/share/info/libquadmath.info'
make[3]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make[2]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc/powerpc-apple-macos/libquadmath'
make[1]: Meninggalkan direktori '/home/leap123/Retro68-build/gcc-build-ppc'
loading cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
@kanjitalk755
Copy link
Contributor

kanjitalk755 commented Sep 15, 2024

I had a similar error on macOS, so I submitted #268.

The message displayed in the terminal is same as first post.

configure: error: installation or configuration problem: C compiler cannot create executables.

@ryandesign
Copy link
Contributor

What do you mean my GCC can't create executables?

You would need to look in the config.log to see why it couldn't.

@sentient06
Copy link

Confirmed, #268 fixes this.

I'm on macOS 15.1, running Homebrew and following the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants