Opened 2 years ago

Closed 2 years ago

#65467 closed defect (worksforme)

atk fails to build

Reported by: dyne2meter Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: atk

Description

Fails to build in Mojave; I have linking errors reported that require rebuilding gimp and ImageMagick, which both depend on atk

:info:build WARNING: ['otool'] does not work. Relinking will always happen on source changes.
:info:build /opt/local/libexec/llvm-13/bin/llvm-objdump: error: unknown argument '-cho'
:info:build [146/152] /usr/bin/clang  -o tests/testrole tests/testrole.p/testrole.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-rpath,@loader_path/../atk -Wl,-rpath,/opt/local/lib atk/libatk-1.0.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib
:info:build [147/152] /usr/bin/clang  -o tests/testdocument tests/testdocument.p/testdocument.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-rpath,@loader_path/../atk -Wl,-rpath,/opt/local/lib atk/libatk-1.0.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib
:info:build [148/152] /usr/bin/clang  -o tests/testrelation tests/testrelation.p/testrelation.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-rpath,@loader_path/../atk -Wl,-rpath,/opt/local/lib atk/libatk-1.0.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib
:info:build [149/152] /usr/bin/clang  -o tests/teststateset tests/teststateset.p/teststateset.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-rpath,@loader_path/../atk -Wl,-rpath,/opt/local/lib atk/libatk-1.0.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib
:info:build [150/152] /usr/bin/clang  -o tests/testvalue tests/testvalue.p/testvalue.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-rpath,@loader_path/../atk -Wl,-rpath,/opt/local/lib atk/libatk-1.0.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib
:info:build [151/152] /opt/local/bin/g-ir-scanner --no-libtool --namespace=Atk --nsversion=1.0 --warn-all --output atk/Atk-1.0.gir --quiet --c-include=atk/atk.h -DATK_COMPILATION -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk --filelist=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk/libatk-1.0.0.dylib.p/Atk_1.0_gir_filelist --include=GObject-2.0 --symbol-prefix=atk --identifier-prefix=Atk --pkg-export=atk --cflags-begin -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gobject-introspection-1.0 -I/opt/local/include --cflags-end --add-include-path=/opt/local/share/gir-1.0 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk --library atk-1.0 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib --extra-library=glib-2.0 --extra-library=intl --extra-library=gobject-2.0 --extra-library=girepository-1.0 --sources-top-dirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/subprojects/ --sources-top-dirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/subprojects/
:info:build FAILED: atk/Atk-1.0.gir 
:info:build /opt/local/bin/g-ir-scanner --no-libtool --namespace=Atk --nsversion=1.0 --warn-all --output atk/Atk-1.0.gir --quiet --c-include=atk/atk.h -DATK_COMPILATION -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk --filelist=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk/libatk-1.0.0.dylib.p/Atk_1.0_gir_filelist --include=GObject-2.0 --symbol-prefix=atk --identifier-prefix=Atk --pkg-export=atk --cflags-begin -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/atk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gobject-introspection-1.0 -I/opt/local/include --cflags-end --add-include-path=/opt/local/share/gir-1.0 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/atk --library atk-1.0 -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib --extra-library=glib-2.0 --extra-library=intl --extra-library=gobject-2.0 --extra-library=girepository-1.0 --sources-top-dirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/atk-2.38.0/subprojects/ --sources-top-dirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/subprojects/
:info:build /opt/local/libexec/llvm-13/bin/llvm-objdump: error: unknown argument '-cho'
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/bin/g-ir-scanner", line 99, in <module>
:info:build     sys.exit(scanner_main(sys.argv))
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 609, in scanner_main
:info:build     shlibs = create_binary(transformer, options, args)
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 434, in create_binary
:info:build     shlibs = resolve_shlibs(options, binary, options.libraries)
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/shlibs.py", line 185, in resolve_shlibs
:info:build     _resolve_non_libtool(options, binary, non_libtool))
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/shlibs.py", line 105, in _resolve_non_libtool
:info:build     output = subprocess.check_output(args)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 420, in check_output
:info:build     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 524, in run
:info:build     raise CalledProcessError(retcode, process.args,
:info:build subprocess.CalledProcessError: Command '['otool', '-L', '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build/tmp-introspect4qab_ooi/Atk-1.0']' returned non-zero exit status 1.
:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/work/build" && /opt/local/bin/ninja -j4 -v 
:info:build Exit code: 1
:error:build Failed to build atk: command execution failed
:debug:build Error code: CHILDSTATUS 96221 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_atk/atk/main.log for details.

Attachments (1)

main.log.gz (7.0 KB) - added by dyne2meter 2 years ago.

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by dyne2meter

Attachment: main.log.gz added

comment:1 in reply to:  description Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to dyne2meter:

:info:build WARNING: ['otool'] does not work. Relinking will always happen on source changes.
:info:build /opt/local/libexec/llvm-13/bin/llvm-objdump: error: unknown argument '-cho'

Why doesn't otool work? Let's solve that first.

You appear to be using an otool installed by the cctools port with the +llvm13 variant. Is that the default variant of cctools on your system? Try reinstalling cctools without specifying a variant (sudo port install cctools) and see if it gives you a different variant. If it does, clean the affected port (sudo port clean atk) and try building it again.

Comments in the cctools port say that Xcode 11 and newer contain newer versions of tools than what the cctools port provides, so certainly with Xcode 11 and later the port should select the +xcode variant. Your log shows you're using Xcode 10.3, so maybe it doesn't do that on your system. If the default variant MacPorts chooses still won't build atk, try explicitly requesting the +xcode variant (sudo port install cctools +xcode), clean (sudo port clean atk) and try again.

comment:2 Changed 2 years ago by dyne2meter

Yes, that works. I chose the +xcode variant and did not bother with the default. Until I did this, the installation of atk also didn't work with an even older version of xcode (High Sierra, Xcode 10.1).

Thanks for your expertise in understanding the toolset.

comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: assignedclosed

Great, glad the issue is resolved!

Note: See TracTickets for help on using tickets.