Opened 6 weeks ago

Last modified 6 weeks ago

#74502 new defect

groff @1.24.2: configure: error: C compiler cannot create executables

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.12.6
Keywords: lion mountainlion mavericks yosemite elcapitan sierra highsierra Cc: thetrial (alabay), ballapete (Peter "Pete" Dyballa)
Port: groff

Description

​https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/299471/steps/install-port/logs/stdio

Executing:  cd "/opt/local/var/macports/build/groff-cbc7a233/work/groff-1.24.2" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man --without-x --disable-silent-rules ac_cv_prog_AWK=/usr/bin/awk 
DEBUG: system:  cd "/opt/local/var/macports/build/groff-cbc7a233/work/groff-1.24.2" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man --without-x --disable-silent-rules ac_cv_prog_AWK=/usr/bin/awk 
checking that groff version string has valid format... 1.24.2 valid
checking for gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in '/opt/local/var/macports/build/groff-cbc7a233/work/groff-1.24.2':
configure: error: C compiler cannot create executables
See 'config.log' for more details
Command failed:  cd "/opt/local/var/macports/build/groff-cbc7a233/work/groff-1.24.2" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man --without-x --disable-silent-rules ac_cv_prog_AWK=/usr/bin/awk 
Exit code: 77

Attachments (1)

main.log​ (8.9 KB) - added by ballapete (Peter "Pete" Dyballa) 6 weeks ago.
Main.log from PPC Leopard, Mac OS X 10.5.8

Download all attachments as: .zip

Change History (9)

comment:1 Changed 6 weeks ago by thetrial (alabay)

Cc: thetrial added

comment:2 Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

The reason on Mac OS X 10.5.8 (Leopard) is:

configure:5798: checking whether the C compiler works
configure:5820: /usr/bin/gcc-4.2 -pipe -Os -std=gnu17 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
cc1: error: unrecognized command line option "-std=gnu17"
configure:5824: $? = 1
configure:5865: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU roff"
| #define PACKAGE_TARNAME "groff"
| #define PACKAGE_VERSION "1.24.2"
| #define PACKAGE_STRING "GNU roff 1.24.2"
| #define PACKAGE_BUGREPORT "http://savannah.gnu.org/bugs/?group=groff"
| #define PACKAGE_URL "https://www.gnu.org/software/groff/"
| /* end confdefs.h.  */
| 
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:5870: error: in '/opt/local/var/macports/build/groff-0d3342e4/work/groff-1.24.2':
configure:5872: error: C compiler cannot create executables

comment:3 Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

Cc: ballapete added

Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log​ added

Main.log from PPC Leopard, Mac OS X 10.5.8

comment:4 Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

It built, tested, and upgraded with GCC 15 fine. On PPC Mac OS X 10.5.8, Leopard.

comment:5 Changed 6 weeks ago by thetrial (alabay)

Interesting. I tried:

sudo port upgrade groff configure.compiler=macports-clang-16

And that built, too.

I had these messages:

--->  Configuring groff
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  alignof: found in groff-1.24.2/config.log
  strchr: found in groff-1.24.2/config.log
  __GNUC_PREREQ: found in groff-1.24.2/config.log
  unreachable: found in groff-1.24.2/config.log
Warning: Configuration logfiles contain indications of -Wimplicit-int; check that features were not accidentally disabled:
  found in groff-1.24.2/config.log
--->  Building groff

Hm.

System: Sierra 10.12.6.

Last edited 6 weeks ago by thetrial (alabay) (previous) (diff)

comment:6 Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

This line from config.log explains a lot (I hope):

cc1: error: unrecognized command line option "-std=gnu17"

comment:7 Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

On macOS High Sierra, Version 10.13.6 this version built at once, almost without any problem. The problem left is that it configured with an arcane and strange paper size: "letter" – I stopped writing letters, I am using eMail!

comment:8 Changed 6 weeks ago by ballapete (Peter "Pete" Dyballa)

The compiler used to build the software is /usr/bin/clang = Apple LLVM version 10.0.0 (clang-1000.11.45.5), which seems to understand "-std=gnu17".

The inadequate "letter" was removed by using "PAGE=A4" as another configure argument.

Note: See TracTickets for help on using tickets.