[MacPorts] #72630: gpredict fails to require correct C standard: cc1: error: unrecognized command line option "-std=c11"

MacPorts noreply at macports.org
Fri Jun 20 23:49:22 UTC 2025


#72630: gpredict fails to require correct C standard: cc1: error: unrecognized
command line option "-std=c11"
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.7
Resolution:                |   Keywords:
      Port:  gpredict      |
---------------------------+--------------------

Comment (by ryandesign):

 Presumably Sergey is intending to demonstrate that the software requires
 C11 and therefore you should add the line `compiler.c_standard 2011` to
 the Portfile.

 However, we had
 [https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/224453/steps
 /install-port/logs/stdio a successful build on 10.7] where the log says:

 {{{
 checking for /usr/bin/clang option to enable C11 features... unsupported
 checking for /usr/bin/clang option to enable C99 features... none needed
 }}}

 So C11 support was not available and yet the build succeeded. Therefore,
 Sergey, a main.log and config.log from the failing build would indeed be
 helpful to see why the situation is different on your system.

 The build unfortunately uses silent rules so we cannot see the exact
 compiler commands and flags that were used on the buildbot. Marius, please
 disable silent rules so that build logs would be more useful.

-- 
Ticket URL: <https://trac.macports.org/ticket/72630#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list