Opened 4 months ago

Closed 3 months ago

#65672 closed defect (fixed)

netcdf fails to build on Rosetta with gcc-4.2: error: redefinition of typedef ‘uint64’

Reported by: barracuda156 Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, rosetta, snowleopard Cc:
Port: netcdf

Description (last modified by barracuda156)

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_netcdf/netcdf/work/netcdf-c-4.9.0/nc_test/nc_test.c:11:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_netcdf/netcdf/work/netcdf-c-4.9.0/nc_test/tests.h:223: error: redefinition of typedef ‘uint64’
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_netcdf/netcdf/work/netcdf-c-4.9.0/include/ncconfigure.h:156: error: previous declaration of ‘uint64’ was here
:info:build [ 45%] Building C object nc_test/CMakeFiles/tst_diskless3.dir/tst_diskless3.c.o
:info:build make[2]: *** [nc_test/CMakeFiles/nc_test.dir/nc_test.c.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_netcdf/netcdf/work/build'
:info:build make[1]: *** [nc_test/CMakeFiles/nc_test.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

With gcc12 it builds fine though.

Change History (3)

comment:1 Changed 4 months ago by barracuda156

Owner: set to tenomoto
Status: newassigned

comment:2 Changed 4 months ago by barracuda156

Description: modified (diff)
Summary: netcdf fails to build on Rosetta: error: redefinition of typedef ‘uint64’netcdf fails to build on Rosetta with gcc-4.2: error: redefinition of typedef ‘uint64’

comment:3 Changed 3 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 28bc52cc21e89b22ad8d98bd47f8cc93f7755c4b/macports-ports (master):

netcdf: do not use gcc-4.2 and archaic Xcode clang
Fixes: #65672

Note: See TracTickets for help on using tickets.