[MacPorts] #70877: clang-19 @19.1.0_0+analyzer: Undefined symbols for architecture arm64: "___kmpc_dispatch_deinit"

MacPorts noreply at macports.org
Mon Sep 23 08:05:23 UTC 2024


#70877: clang-19 @19.1.0_0+analyzer: Undefined symbols for architecture arm64:
"___kmpc_dispatch_deinit"
---------------------+-----------------------------
 Reporter:  nilason  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:  clang-19 libomp
---------------------+-----------------------------
 Building `grass` with '+openmp` variant fails with following error
 message:



 {{{
 :info:build /opt/local/bin/clang-mp-19 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os
 -DGL_SILENCE_DEPRECATION
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
 -fno-common
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/include   -I/opt/local/include -I/opt/local/include
 -fopenmp -DPACKAGE=\""grasslibs"\"  -I/opt/local/include/libomp
 -I/opt/local/include/postgresql16
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/include -DRELDIR=\"lib/rst/interp_float\" -o
 OBJ.aarch64-apple-darwin23.6.0/segmen2d_parallel.o -c segmen2d_parallel.c
 :info:build /opt/local/bin/clang-mp-19 -dynamiclib -compatibility_version
 8.4 -current_version 8.4 -install_name
 /opt/local/lib/grass84/lib/libgrass_interpfl.8.4.dylib -o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/lib/libgrass_interpfl.8.4.dylib
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/lib
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/lib -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -arch arm64
 -Wl,-rpath,/opt/local/lib/grass84/lib,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/lib   OBJ.aarch64-apple-darwin23.6.0/distance.o
 OBJ.aarch64-apple-darwin23.6.0/func2d.o OBJ.aarch64-apple-
 darwin23.6.0/init2d.o OBJ.aarch64-apple-darwin23.6.0/input2d.o OBJ.aarch64
 -apple-darwin23.6.0/interp2d.o OBJ.aarch64-apple-darwin23.6.0/matrix.o
 OBJ.aarch64-apple-darwin23.6.0/minmax.o OBJ.aarch64-apple-
 darwin23.6.0/output2d.o OBJ.aarch64-apple-darwin23.6.0/point2d.o
 OBJ.aarch64-apple-darwin23.6.0/resout2d.o OBJ.aarch64-apple-
 darwin23.6.0/ressegm2d.o OBJ.aarch64-apple-darwin23.6.0/secpar2d.o
 OBJ.aarch64-apple-darwin23.6.0/segmen2d.o OBJ.aarch64-apple-
 darwin23.6.0/segmen2d_parallel.o OBJ.aarch64-apple-darwin23.6.0/vinput2d.o
 OBJ.aarch64-apple-darwin23.6.0/write2d.o -lgrass_gis.8.4
 -lgrass_raster.8.4 -lgrass_vector.8.4 -lgrass_gmath.8.4
 -lgrass_dbmiclient.8.4 -lgrass_dbmibase.8.4  -lgrass_bitmap.8.4
 -lgrass_qtree.8.4 -lgrass_interpdata.8.4  -L/opt/local/lib/libomp -lomp
 :info:build Undefined symbols for architecture arm64:
 :info:build   "___kmpc_dispatch_deinit", referenced from:
 :info:build       _IL_interp_segments_2d_parallel.omp_outlined in
 segmen2d_parallel.o
 :info:build ld: symbol(s) not found for architecture arm64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[5]: ***
 [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_grass/grass/work/grass/dist.aarch64
 -apple-darwin23.6.0/lib/libgrass_interpfl.8.4.dylib] Error 1
 }}}


 This was using (the now default) `clang-19 @19.1.0_0` with  `libomp
 @18.1.8_0` installed, building with `clang-18 @18.1.8_2` however works
 fine.
 Maybe libomp needs an update?

-- 
Ticket URL: <https://trac.macports.org/ticket/70877>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list