Opened 7 weeks ago

Closed 3 weeks ago

#70877 closed defect (fixed)

clang-19 @19.1.0_0+analyzer: Undefined symbols for architecture arm64: "___kmpc_dispatch_deinit"

Reported by: nilason (Nicklas Larsson) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: eborisch (Eric A. Borisch), cjones051073 (Chris Jones)
Port: clang-19 libomp

Description

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?

Attachments (1)

main.log.zip (245.8 KB) - added by nilason (Nicklas Larsson) 7 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 7 weeks ago by nilason (Nicklas Larsson)

Attachment: main.log.zip added

comment:1 Changed 7 weeks ago by jmroot (Joshua Root)

Cc: cjones051073 added

comment:2 Changed 3 weeks ago by nilason (Nicklas Larsson)

This seems to have been fixed with commit a7a21db.

comment:3 Changed 3 weeks ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.