[MacPorts] #70122: wgrib2 does not respect MacPorts compiler choice
MacPorts
noreply at macports.org
Thu May 30 19:48:25 UTC 2024
#70122: wgrib2 does not respect MacPorts compiler choice
--------------------------+----------------------
Reporter: barracuda156 | Owner: tenomoto
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: wgrib2
--------------------------+----------------------
The port uses OpenMP by default, which should ensure avoiding Xcode gcc,
but it does not: the build picks gcc-4.2, which unsurprisingly fails:
{{{
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Check_pdt_size.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Checksum.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Cluster.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc CodeTable.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Code_Values.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Config.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Cress_lola.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Csv.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Csv_long.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc CubeFace2global.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Cyclic.c
/usr/bin/gcc-4.2 -c -DGFORTRAN -I/opt/local/lib/libaec/include
-I/opt/local/libexec/jasper2/include -DJAS_VERSION_MAJOR=2
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/include
-Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security
-ffast-math -O3 -DGFORTRAN -fopenmp
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/g2clib-1.4.0
-Os -I/opt/local/include/LegacySupport -arch ppc Data.c
Data.c: In function ‘f_stats’:
Data.c:54: error: expected ‘+’, ‘*’, ‘-’, ‘&’, ‘^’, ‘|’, ‘&&’, or ‘||’
before ‘min’
Data.c:54: error: expected ‘+’, ‘*’, ‘-’, ‘&’, ‘^’, ‘|’, ‘&&’, or ‘||’
before ‘max’
Data.c:55: warning: iteration variable ‘i’ is unsigned
make[1]: *** [Data.o] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_wgrib2/wgrib2/work/grib2/wgrib2'
make: *** [wgrib2/wgrib2] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70122>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list