[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 07:11:27 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
Keywords: | Port: gpredict
--------------------------+----------------------
{{{
configure:13659: checking for sin in -lm
configure:13688: /usr/bin/gcc-4.2 -std=gnu99 -o conftest -pipe -Os -arch
ppc -Wall -Wextra -std=c11 -pedantic -I/opt/local/include -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc conftest.c -lm >&5
cc1: error: unrecognized command line option "-std=c11"
configure:13688: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gpredict"
| #define PACKAGE_TARNAME "gpredict"
| #define PACKAGE_VERSION "UNKNOWN"
| #define PACKAGE_STRING "gpredict UNKNOWN"
| #define PACKAGE_BUGREPORT "https://community.libre.space/c/gpredict"
| #define PACKAGE_URL ""
| #define PACKAGE "gpredict"
| #define VERSION "UNKNOWN"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_SYS_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_GETOPT_H 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply.
| The 'extern "C"' is for builds by C++ compilers;
| although this is not generally supported in C code supporting it here
| has little cost and some practical benefit (sr 110532). */
| #ifdef __cplusplus
| extern "C"
| #endif
| char sin (void);
| int
| main (void)
| {
| return sin ();
| ;
| return 0;
| }
configure:13700: result: no
configure:13709: error: Can not find libm. Check your libc installation
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72630>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list