Opened 5 months ago
Last modified 5 months ago
#70122 assigned defect
wgrib2 does not respect MacPorts compiler choice
Reported by: | barracuda156 | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | Cc: | Dave-Allured (Dave Allured) | |
Port: | wgrib2 |
Description
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
Attachments (1)
Change History (2)
Changed 5 months ago by barracuda156
Attachment: | wgrib2.log added |
---|
comment:1 Changed 5 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
Note: See
TracTickets for help on using
tickets.