Opened 7 weeks ago

Last modified 7 weeks ago

#70923 new defect

tepl @5.0.1_5: clang: error: unknown argument: '-export-symbols

Reported by: kencu (Ken) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc:
Port: tepl

Description (last modified by kencu (Ken))

:info:build /usr/bin/clang  -o tepl/libtepl-5.0.dylib tepl/libtepl-static.a.p/tepl-abstract-factory.c.o tepl/libtepl-static.a.p/tepl-application.c.o tepl/libtepl-static.a.p/tepl-application-window.c.o tepl/libtepl-static.a.p/tepl-buffer.c.o tepl/libtepl-static.a.p/tepl-file.c.o tepl/libtepl-static.a.p/tepl-file-chooser.c.o tepl/libtepl-static.a.p/tepl-file-loader.c.o tepl/libtepl-static.a.p/tepl-file-saver.c.o tepl/libtepl-static.a.p/tepl-fold-region.c.o tepl/libtepl-static.a.p/tepl-goto-line-bar.c.o tepl/libtepl-static.a.p/tepl-gutter-renderer-folds.c.o tepl/libtepl-static.a.p/tepl-info-bar.c.o tepl/libtepl-static.a.p/tepl-init.c.o tepl/libtepl-static.a.p/tepl-io-error-info-bars.c.o tepl/libtepl-static.a.p/tepl-iter.c.o tepl/libtepl-static.a.p/tepl-menu-shell.c.o tepl/libtepl-static.a.p/tepl-metadata.c.o tepl/libtepl-static.a.p/tepl-metadata-manager.c.o tepl/libtepl-static.a.p/tepl-notebook.c.o tepl/libtepl-static.a.p/tepl-panel.c.o tepl/libtepl-static.a.p/tepl-statusbar.c.o tepl/libtepl-static.a.p/tepl-style-scheme-chooser-widget.c.o tepl/libtepl-static.a.p/tepl-tab.c.o tepl/libtepl-static.a.p/tepl-tab-group.c.o tepl/libtepl-static.a.p/tepl-tab-label.c.o tepl/libtepl-static.a.p/tepl-tab-loading.c.o tepl/libtepl-static.a.p/tepl-tab-saving.c.o tepl/libtepl-static.a.p/tepl-utils.c.o tepl/libtepl-static.a.p/tepl-view.c.o tepl/libtepl-static.a.p/tepl-close-confirm-dialog-single.c.o tepl/libtepl-static.a.p/tepl-icu.c.o tepl/libtepl-static.a.p/tepl-io-error-info-bar.c.o tepl/libtepl-static.a.p/tepl-metadata-attic.c.o tepl/libtepl-static.a.p/tepl-metadata-parser.c.o tepl/libtepl-static.a.p/tepl-progress-info-bar.c.o tepl/libtepl-static.a.p/tepl-signal-group.c.o tepl/libtepl-static.a.p/tepl-window-actions-edit.c.o tepl/libtepl-static.a.p/tepl-window-actions-file.c.o tepl/libtepl-static.a.p/tepl-window-actions-search.c.o tepl/libtepl-static.a.p/meson-generated_.._tepl-enum-types.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -shared -install_name @rpath/libtepl-5.0.dylib -compatibility_version 0 -current_version 0 -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -Wl,-rpath,/opt/local/lib '-export-symbols /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_tepl/tepl/work/tepl-5.0.1/tepl/symbol.map' /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgtk-3.dylib /opt/local/lib/libgdk-3.dylib -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics /opt/local/lib/libpangocairo-1.0.dylib /opt/local/lib/libpango-1.0.dylib /opt/local/lib/libharfbuzz.dylib /opt/local/lib/libatk-1.0.dylib /opt/local/lib/libcairo-gobject.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libgdk_pixbuf-2.0.dylib /opt/local/lib/libgtksourceview-4.dylib -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics /opt/local/lib/libamtk-5.dylib -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics /opt/local/lib/libicuuc.dylib /opt/local/lib/libicudata.dylib /opt/local/lib/libicui18n.dylib
3195	:info:build clang: error: unknown argument: '-export-symbols /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_tepl/tepl/work/tepl-5.0.1/tepl/symbol.map'

Attachments (2)

tepl-fail-sequoia.log (325.5 KB) - added by kencu (Ken) 7 weeks ago.
patch-tepl-symbols.diff (473 bytes) - added by kencu (Ken) 7 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 7 weeks ago by kencu (Ken)

Attachment: tepl-fail-sequoia.log added

comment:1 Changed 7 weeks ago by kencu (Ken)

easy enough to just strip out the symbol controls:

% diff -u tepl/meson.build.orig tepl/meson.build     
--- tepl/meson.build.orig	2024-09-25 11:30:09
+++ tepl/meson.build	2024-09-25 11:52:07
@@ -132,12 +132,6 @@
 tepl_lib_link_args = []
 tepl_lib_link_depends = []
 
-if meson.get_compiler('c').get_argument_syntax() != 'msvc'
-  symbol_map = meson.current_source_dir() / 'symbol.map'
-  tepl_lib_link_args = '-export-symbols ' + symbol_map
-  tepl_lib_link_depends = symbol_map
-endif
-
 tepl_lib = library(
   'tepl-@0@'.format(TEPL_API_VERSION),
   dependencies: TEPL_DEPS,

but it is proving a bit messy to get meson and tepl to accept a macos syntax, with -exported_symbols_list as the link line keeps tripping over the single quotes meson adds and I haven't been able to yet figure out how to stop those from being added.

Changed 7 weeks ago by kencu (Ken)

Attachment: patch-tepl-symbols.diff added

comment:2 Changed 7 weeks ago by kencu (Ken)

Description: modified (diff)
Note: See TracTickets for help on using tickets.