[MacPorts] #70087: plplot fails to build: cc1: error: argument to '-O' should be a non-negative integer, 'g', 's', 'z' or 'fast'

MacPorts noreply at macports.org
Mon May 27 11:10:12 UTC 2024


#70087: plplot fails to build: cc1: error: argument to '-O' should be a non-
negative integer, 'g', 's', 'z' or 'fast'
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.3
Resolution:                |   Keywords:
      Port:  plplot        |
---------------------------+--------------------

Comment (by barracuda156):

 Unfortunately fixing flags does not suffice, it is broken badly further
 down:
 {{{
 [ 62%] Building C object src/CMakeFiles/plplot.dir/__/drivers/mem.c.o
 cd
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/build/src
 && /opt/local/bin/gcc-mp-13 -DPLPLOT_HAVE_CONFIG_H -DUSINGDLL
 -Dplplot_EXPORTS
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/plplot-5.15.0/include
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/plplot-5.15.0/lib/qsastime
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/build
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/build/include
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/build/lib/qsastime
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/build/lib/csa
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/build/lib/nn
 -pipe -Os -DNDEBUG -I/opt/local/include -DUSE_INTERP_RESULT
 -DTcl_Import_TCL_DECLARED -arch ppc -fPIC -MD -MT
 src/CMakeFiles/plplot.dir/__/drivers/mem.c.o -MF
 CMakeFiles/plplot.dir/__/drivers/mem.c.o.d -o
 CMakeFiles/plplot.dir/__/drivers/mem.c.o -c
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/plplot-5.15.0/drivers/mem.c
 In file included from
 /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8,
                  from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_plplot/plplot/work/plplot-5.15.0/drivers/aqt.c:32:
 /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:149:1:
 error: stray '@' in program
   149 | @class NSString, Protocol;
       | ^
 /usr/bin/make  -f
 examples/tcl/CMakeFiles/tclIndex_examples_tcl.dir/build.make
 examples/tcl/CMakeFiles/tclIndex_examples_tcl.dir/depend
 /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:149:2:
 error: unknown type name 'class'; did you mean 'Class'?
   149 | @class NSString, Protocol;
       |  ^~~~~
       |  Class
 /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:151:28:
 error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
   151 | FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
       |                            ^
 /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:152:44:
 error: expected declaration specifiers or '...' before 'NSString'
   152 | FOUNDATION_EXPORT SEL NSSelectorFromString(NSString
 *aSelectorName);
       |                                            ^~~~~~~~
 /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:154:28:
 error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
   154 | FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);
       |                            ^
 /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:155:43:
 error: expected declaration specifiers or '...' before 'NSString'
   155 | FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);
       |                                           ^~~~~~~~

 . . .
 }}}

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


More information about the macports-tickets mailing list