Ticket #28473 (closed defect: fixed)
atk 1.33.6: universal build fails
| Reported by: | ryandesign@… | Owned by: | singingwolfboy@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | kirk.stork@… | |
| Port: | atk |
Description
atk 1.33.6 universal build fails:
ld: warning: in ./.libs/libatk-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
atk 1.30.0 had no problem with universal build.
Attachments
Change History
comment:2 Changed 2 years ago by suv-sf@…
Same issue was described earlier for pango and gobject-introspection disabled to allow pango to build universal (until this was undone in revision [76190] for pango again) - see ticket #26697:
GObject introspection is disabled for now since it causes the universal build to break. The problem appears to be due to improper handling of arch flags in the giscanner python tool provided by gobject-introspection. Introspection works fine in a non-universal build.
comment:3 Changed 2 years ago by ryandesign@…
- Cc kirk.stork@… added
Kirk, the error you reported above is completely different from the universal build failure this ticket is about. Please "sudo port selfupdate" to get the latest port definitions (atk was inadvertently updated to 1.33.6; this has been corrected and it is now at the latest stable version 1.32.0) and if you still see a problem building 1.32.0 that does not relate to building universal, then file a new ticket.


This is while doing sudo port upgrade -u outdated, given
...
:info:build ld: symbol(s) not found :info:build collect2: ld returned 1 exit status :info:build Traceback (most recent call last): :info:build File "/opt/local/bin/g-ir-scanner", line 45, in <module> :info:build sys.exit(scanner_main(sys.argv)) :info:build File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 405, in scanner_main :info:build shlibs = create_binary(transformer, options, args) :info:build File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 309, in create_binary :info:build gdump_parser.get_get_type_functions()) :info:build File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 238, in compile_introspection_binary :info:build return dc.run() :info:build File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 140, in run :info:build self._link(bin_path, o_path) :info:build File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 233, in _link :info:build subprocess.check_call(args) :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 488, in check_call :info:build raise CalledProcessError(retcode, cmd) :info:build subprocess.CalledProcessError: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.33.6-i386/atk/tmp-introspectK3k0b0/Atk-1.0', '-export-dynamic', '-L.', '-L/opt/local/lib', 'libatk-1.0.la', '-L/opt/local/lib', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lglib-2.0', '-lintl', '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.33.6-i386/atk/tmp-introspectK3k0b0/Atk-1.0.o']' returned non-zero exit status 1 :info:build make[3]: *** [Atk-1.0.gir] Error 1 :info:build make[2]: *** [all] Error 2 :info:build make[1]: *** [all-recursive] Error 1 :info:build make: *** [all] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.33.6-i386" && /usr/bin/make -j8 all " returned error 2 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "$procedure $targetname" :info:build Warning: the following items did not execute (for atk): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for atk is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/main.log