Opened 9 years ago
Closed 7 years ago
#49151 closed defect (fixed)
glib2, glib2-devel: error: Universal builds not supported
Reported by: | andyk@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | nico.mack@…, dgonyier (Dwaine Gonyier), arthur.michaut@…, carlschlemme@… | |
Port: | glib2, glib2-devel |
Description (last modified by mf2k (Frank Schima))
Upgraded to El Capitan, everything else works, but glib2 won't install. Initially wouldn't update, so I uninstalled it (And all versions), cleaned it, but still get:
Computing dependencies for glib2 ---> Building glib2 Error: org.macports.build for port glib2 returned: command execution failed Please see the log file for port glib2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port glib2 failed
Tail of that log file says:
:debug:patch euid/egid changed to: 502/20 :info:patch ---> Patching gutils.c: s|path = "/bin|path = "/opt/local/bin:/bin|g :debug:patch Executing reinplace: /usr/bin/sed {s|path = "/bin|path = "/opt/local/bin:/bin|g} < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.44.1/glib/gutils.c >@ file10 2>@stderr :debug:patch euid/egid changed to: 0/0 deKays-MacBook-Pro:~ andy$ tail /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for glib2: org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Please see the log file for port glib2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log
Attachments (4)
Change History (22)
comment:1 Changed 9 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:2 Changed 9 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
comment:3 Changed 9 years ago by alandir2@…
Defect also happens on Snow Leopard (MacOS 10.6). The actual failure happens further up in the log:
:info:build checking for GNUC visibility attribute... no :info:build checking whether using Sun Studio C compiler... no :info:build checking whether byte ordering is bigendian... universal :info:build configure: error: Universal builds not supported: see https://bugs.gnome.org/742548 :info:build make: *** [config.status] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.0' ...
It points me over to https://bugs.gnome.org/742548, but that gives me a 404 error, so I have no idea what's going on.
Full log file is attached.
Changed 9 years ago by alandir2@…
Attachment: | glib2_no_universal.log added |
---|
Log file for glib2 build failure
comment:4 Changed 9 years ago by nico.mack@…
Cc: | nico.mack@… added |
---|
Running into the same issue on Mountain Lion (OSX 10.8.5)
:info:build checking whether byte ordering is bigendian... universal :info:build configure: error: Universal builds not supported: see https://bugs.gnome.org/742548 :info:build make: *** [config.status] Error 1
Full log file is attached
Changed 9 years ago by nico.mack@…
Attachment: | ports_fail.log added |
---|
comment:6 Changed 9 years ago by dgonyier (Dwaine Gonyier)
If it helps I think this is the bug in question referred to by the log:
comment:7 follow-up: 8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | glib2-devel added |
---|---|
Summary: | Can't install glib2 → glib2, glib2-devel: error: Universal builds not supported |
andyk's error message refers to glib 2.44.1. That's out of date. The port was recently updated to 2.46.0. Usually running "sudo port selfupdate" would fix it, but the rsync server is broken right now, so you'll either have to wait for the administrator to fix it, or else switch to a different syncing method.
The logs attached by nico and alandir2 are from unclean attempts. Please clean and try again.
The message about universal builds being unsupported should not be occurring because we patch the configure script. However, I wonder if the problem is that I am also patching the configure.ac file (an I forgot to include the universal-reenabling patch there), and it is regenerating the configure file from the configure.ac file.
Changed 9 years ago by nico.mack@…
Attachment: | ports_fail2.txt added |
---|
comment:8 Changed 9 years ago by nico.mack@…
Replying to ryandesign@…:
andyk's error message refers to glib 2.44.1. That's out of date. The port was recently updated to 2.46.0. Usually running "sudo port selfupdate" would fix it, but the rsync server is broken right now, so you'll either have to wait for the administrator to fix it, or else switch to a different syncing method.
The logs attached by nico and alandir2 are from unclean attempts. Please clean and try again.
The message about universal builds being unsupported should not be occurring because we patch the configure script. However, I wonder if the problem is that I am also patching the configure.ac file (and I forgot to include the universal-reenabling patch there), and it is regenerating the configure file from the configure.ac file.
Ryan...
I cleaned the offending port
sudo port clean glib2
and ran the upgrade again
sudo port upgrade outdated
The problem unfortunately persists. I've attached the log file from the clean run. Thanks for looking into this.
comment:9 follow-up: 10 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed by r141204.
comment:10 Changed 9 years ago by tomldavis@…
Replying to ryandesign@…:
Should be fixed by r141204.
What does "Should be fixed by r141204" mean? glib2 is still broken for me. Xcode 7.0.1; after port clean glib2. Then sudo ./restore_ports.tcl myports.txt. Using default macports.conf.
Error: Requested variants "" do not match those the build was started with: "+universal". Error: Please use the same variants again, or run 'port clean glib2' first to remove the existing partially completed build. Error: Failed to install glib2 Please see the log file for port glib2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/glib2/main.log
comment:11 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
It means I committed a fix in revision r141204. To receive this and other fixes, you would run "sudo port selfupdate".
The error message you show means you need to run "sudo port clean glib2" then try again.
comment:12 follow-up: 13 Changed 9 years ago by arthur.michaut@…
Hi, OS X 10.11 and Xcode 7.0.1 I've selfupdated and cleaned. It first installed well but then failed rebuilding in order. Thanks
version:1 :debug:archivefetch changing euid/egid - current euid: 0 - current egid: 0 :debug:archivefetch egid changed to: 501 :debug:archivefetch euid changed to: 502 :debug:main Executing org.macports.main (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.archivefetch (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.fetch (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.checksum (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.extract (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.patch (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.configure (glib2) :debug:main Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Mon Oct 19 09:44:54 EDT 2015 :notice:build ---> Building glib2 :debug:build Executing proc-pre-org.macports.build-build-0 :debug:build Executing org.macports.build (glib2) :debug:build Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.11' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1" && /usr/bin/make -j4 -w all V=1' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1" && /usr/bin/make -j4 -w all V=1 :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1' :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1' :info:build Making all in . :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1' :info:build make[2]: Nothing to be done for `all-am'. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1' :info:build Making all in m4macros :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/m4macros' :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am :info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/m4macros' :info:build make[3]: Nothing to be done for `all-am'. :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/m4macros' :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/m4macros' :info:build Making all in glib :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib' :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive :info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib' :info:build Making all in libcharset :info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/libcharset' :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am :info:build make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/libcharset' :info:build make[5]: Nothing to be done for `all-am'. :info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/libcharset' :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/libcharset' :info:build Making all in update-pcre :info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/update-pcre' :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am :info:build make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/update-pcre' :info:build make[5]: Nothing to be done for `all-am'. :info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/update-pcre' :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib/update-pcre' :info:build Making all in . :info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib' :info:build /bin/sh ../libtool --tag=CC --mode=link /usr/bin/clang -fvisibility=hidden -pipe -Os -fstrict-aliasing -arch x86_64 -arch i386 -version-info 4600:1:4600 -export-dynamic -L/opt/local/lib -Wl,-headerpad_max_install_names -lresolv -bind_at_load -arch x86_64 -arch i386 -Wl,-framework,Carbon -Wl,-framework,Foundation -o libglib-2.0.la -rpath /opt/local/lib libglib_2_0_la-gallocator.lo libglib_2_0_la-gcache.lo libglib_2_0_la-gcompletion.lo libglib_2_0_la-grel.lo libglib_2_0_la-gthread-deprecated.lo libglib_2_0_la-garray.lo libglib_2_0_la-gasyncqueue.lo libglib_2_0_la-gatomic.lo libglib_2_0_la-gbacktrace.lo libglib_2_0_la-gbase64.lo libglib_2_0_la-gbitlock.lo libglib_2_0_la-gbookmarkfile.lo libglib_2_0_la-gbytes.lo libglib_2_0_la-gcharset.lo libglib_2_0_la-gchecksum.lo libglib_2_0_la-gconvert.lo libglib_2_0_la-gdataset.lo libglib_2_0_la-gdate.lo libglib_2_0_la-gdatetime.lo libglib_2_0_la-gdir.lo libglib_2_0_la-genviron.lo libglib_2_0_la-gerror.lo libglib_2_0_la-gfileutils.lo libglib_2_0_la-ggettext.lo libglib_2_0_la-ghash.lo libglib_2_0_la-ghmac.lo libglib_2_0_la-ghook.lo libglib_2_0_la-ghostutils.lo libglib_2_0_la-giochannel.lo libglib_2_0_la-gkeyfile.lo libglib_2_0_la-glib-init.lo libglib_2_0_la-glib-private.lo libglib_2_0_la-glist.lo libglib_2_0_la-gmain.lo libglib_2_0_la-gmappedfile.lo libglib_2_0_la-gmarkup.lo libglib_2_0_la-gmem.lo libglib_2_0_la-gmessages.lo libglib_2_0_la-gnode.lo libglib_2_0_la-goption.lo libglib_2_0_la-gpattern.lo libglib_2_0_la-gpoll.lo libglib_2_0_la-gprimes.lo libglib_2_0_la-gqsort.lo libglib_2_0_la-gquark.lo libglib_2_0_la-gqueue.lo libglib_2_0_la-grand.lo libglib_2_0_la-gregex.lo libglib_2_0_la-gscanner.lo libglib_2_0_la-gsequence.lo libglib_2_0_la-gshell.lo libglib_2_0_la-gslice.lo libglib_2_0_la-gslist.lo libglib_2_0_la-gstdio.lo libglib_2_0_la-gstrfuncs.lo libglib_2_0_la-gstring.lo libglib_2_0_la-gstringchunk.lo libglib_2_0_la-gtestutils.lo libglib_2_0_la-gthread.lo libglib_2_0_la-gthreadpool.lo libglib_2_0_la-gtimer.lo libglib_2_0_la-gtimezone.lo libglib_2_0_la-gtranslit.lo libglib_2_0_la-gtrashstack.lo libglib_2_0_la-gtree.lo libglib_2_0_la-guniprop.lo libglib_2_0_la-gutf8.lo libglib_2_0_la-gunibreak.lo libglib_2_0_la-gunicollate.lo libglib_2_0_la-gunidecomp.lo libglib_2_0_la-gurifuncs.lo libglib_2_0_la-gutils.lo libglib_2_0_la-gvariant.lo libglib_2_0_la-gvariant-core.lo libglib_2_0_la-gvariant-parser.lo libglib_2_0_la-gvariant-serialiser.lo libglib_2_0_la-gvarianttypeinfo.lo libglib_2_0_la-gvarianttype.lo libglib_2_0_la-gversion.lo libglib_2_0_la-gwakeup.lo libglib_2_0_la-gprintf.lo libglib_2_0_la-glib-unix.lo libglib_2_0_la-gthread-posix.lo libcharset/libcharset.la giounix.lo gspawn.lo -liconv -L/opt/local/lib -lpcre -lintl :info:build libtool: link: /usr/bin/clang -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o .libs/libglib-2.0.0.dylib .libs/libglib_2_0_la-gallocator.o .libs/libglib_2_0_la-gcache.o .libs/libglib_2_0_la-gcompletion.o .libs/libglib_2_0_la-grel.o .libs/libglib_2_0_la-gthread-deprecated.o .libs/libglib_2_0_la-garray.o .libs/libglib_2_0_la-gasyncqueue.o .libs/libglib_2_0_la-gatomic.o .libs/libglib_2_0_la-gbacktrace.o .libs/libglib_2_0_la-gbase64.o .libs/libglib_2_0_la-gbitlock.o .libs/libglib_2_0_la-gbookmarkfile.o .libs/libglib_2_0_la-gbytes.o .libs/libglib_2_0_la-gcharset.o .libs/libglib_2_0_la-gchecksum.o .libs/libglib_2_0_la-gconvert.o .libs/libglib_2_0_la-gdataset.o .libs/libglib_2_0_la-gdate.o .libs/libglib_2_0_la-gdatetime.o .libs/libglib_2_0_la-gdir.o .libs/libglib_2_0_la-genviron.o .libs/libglib_2_0_la-gerror.o .libs/libglib_2_0_la-gfileutils.o .libs/libglib_2_0_la-ggettext.o .libs/libglib_2_0_la-ghash.o .libs/libglib_2_0_la-ghmac.o .libs/libglib_2_0_la-ghook.o .libs/libglib_2_0_la-ghostutils.o .libs/libglib_2_0_la-giochannel.o .libs/libglib_2_0_la-gkeyfile.o .libs/libglib_2_0_la-glib-init.o .libs/libglib_2_0_la-glib-private.o .libs/libglib_2_0_la-glist.o .libs/libglib_2_0_la-gmain.o .libs/libglib_2_0_la-gmappedfile.o .libs/libglib_2_0_la-gmarkup.o .libs/libglib_2_0_la-gmem.o .libs/libglib_2_0_la-gmessages.o .libs/libglib_2_0_la-gnode.o .libs/libglib_2_0_la-goption.o .libs/libglib_2_0_la-gpattern.o .libs/libglib_2_0_la-gpoll.o .libs/libglib_2_0_la-gprimes.o .libs/libglib_2_0_la-gqsort.o .libs/libglib_2_0_la-gquark.o .libs/libglib_2_0_la-gqueue.o .libs/libglib_2_0_la-grand.o .libs/libglib_2_0_la-gregex.o .libs/libglib_2_0_la-gscanner.o .libs/libglib_2_0_la-gsequence.o .libs/libglib_2_0_la-gshell.o .libs/libglib_2_0_la-gslice.o .libs/libglib_2_0_la-gslist.o .libs/libglib_2_0_la-gstdio.o .libs/libglib_2_0_la-gstrfuncs.o .libs/libglib_2_0_la-gstring.o .libs/libglib_2_0_la-gstringchunk.o .libs/libglib_2_0_la-gtestutils.o .libs/libglib_2_0_la-gthread.o .libs/libglib_2_0_la-gthreadpool.o .libs/libglib_2_0_la-gtimer.o .libs/libglib_2_0_la-gtimezone.o .libs/libglib_2_0_la-gtranslit.o .libs/libglib_2_0_la-gtrashstack.o .libs/libglib_2_0_la-gtree.o .libs/libglib_2_0_la-guniprop.o .libs/libglib_2_0_la-gutf8.o .libs/libglib_2_0_la-gunibreak.o .libs/libglib_2_0_la-gunicollate.o .libs/libglib_2_0_la-gunidecomp.o .libs/libglib_2_0_la-gurifuncs.o .libs/libglib_2_0_la-gutils.o .libs/libglib_2_0_la-gvariant.o .libs/libglib_2_0_la-gvariant-core.o .libs/libglib_2_0_la-gvariant-parser.o .libs/libglib_2_0_la-gvariant-serialiser.o .libs/libglib_2_0_la-gvarianttypeinfo.o .libs/libglib_2_0_la-gvarianttype.o .libs/libglib_2_0_la-gversion.o .libs/libglib_2_0_la-gwakeup.o .libs/libglib_2_0_la-gprintf.o .libs/libglib_2_0_la-glib-unix.o .libs/libglib_2_0_la-gthread-posix.o .libs/giounix.o .libs/gspawn.o -Wl,-force_load,libcharset/.libs/libcharset.a -L/opt/local/lib -lresolv -liconv -lpcre -lintl -Os -arch x86_64 -arch i386 -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,Foundation -install_name /opt/local/lib/libglib-2.0.0.dylib -compatibility_version 4601 -current_version 4601.1 -Wl,-single_module :info:build ld: in '/opt/local/lib/libxslt.1.dylib', file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libxslt.1.dylib for architecture i386 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[4]: *** [libglib-2.0.la] Error 1 :info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib' :info:build make[3]: *** [all-recursive] Error 1 :info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib' :info:build make[2]: *** [all] Error 2 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1/glib' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.46.1" && /usr/bin/make -j4 -w all V=1 :info:build Exit code: 2 :error:build org.macports.build for port glib2 returned: command execution failed :debug:build Error code: CHILDSTATUS 36541 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for glib2: org.macports.activate org.macports.build org.macports.destroot org.macports.install :error:build Failed to install glib2 :debug:build Registry error: glib2-devel not registered as installed & active. while executing "registry::active $portname" :notice:build Please see the log file for port glib2 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log
comment:13 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to arthur.michaut@…:
:info:build ld: in '/opt/local/lib/libxslt.1.dylib', file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libxslt.1.dylib for architecture i386
That looks similar to the previous problem, but with libxslt instead. I will need to investigate why libxslt is being used. The workaround is to install libxslt with the universal variant first.
comment:14 follow-up: 15 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | arthur.michaut@… carlschlemme@… added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:15 follow-up: 16 Changed 9 years ago by davalpi@…
Replying to ryandesign@…:
The libxslt version of the problem was reported again in #49399 and an sqlite3 version of the problem was reported in #49398. Clearly something is still not right and I need to figure out why these additional libraries are being used.
I report my experience because I try different things and I get very different behaviors.
My target is to install wine. This port depend on glib2.
I get the error " file was built for x86_64 which is not the architecture being linked (i386):
" on sqlite3.
My setup is : OSX (10.11.1 El Capitan ) and current XCode (xcodebuild -version -> Xcode 7.1 Build version 7B91b) - I do not have any JDK installed (I do not want one) but I have installed some latest JRE (jre-8u65-macosx-x64.dmg) from Oracle.
I always start cleaning all ( sudo port -f uninstall installed ; sudo rm -rf /opt/local/var/macports/build/* ; sudo port selfupdate
).
Install only wine - all clear
If I install wine right after cleaning all, it works OK :
$ sudo port -f uninstall installed ; sudo rm -rf /opt/local/var/macports/build/* ; sudo port selfupdate . . . $ sudo port install wine ---> Computing dependencies for wine . . . ---> Extracting wine ---> Applying patches to wine ---> Configuring wine ---> Building wine ---> Staging wine into destroot ---> Installing wine @1.6.2_4 ---> Activating wine @1.6.2_4 ---> Cleaning wine ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found.
Install wine after restoring other ports - all clear
If I restore my previously installed port first, I get the error :
$ sudo port -f uninstall installed ; sudo rm -rf /opt/local/var/macports/build/* ; sudo port selfupdate . . . $ sudo ./restore_ports.tcl ports-installed-pre-el-capitan.txt . . . $ sudo port install wine ---> Computing dependencies for wine . . . Computing dependencies for glib2 ---> Building glib2 Error: org.macports.build for port glib2 returned: command execution failed ... $ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_glib2/glib2/main.log . . . :info:build ld: in '/opt/local/lib/libsqlite3.dylib', file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libsqlite3.dylib for architecture i386 . . .
I have used the Migration procedure at wiki:Migration.
I'll attach to this tread ports-installed-pre-el-capitan.txt
.
This is the related list of requested ports: ports-requested-pre-el-capitan.txt
I have used:
gnupg2 gnutar mysql56 pstree py27-pip py27-virtualenv py27-virtualenvwrapper python27 rsync
Note that sqlite3
is among the installed because python27
(and maybe other) depend on it.
The strangest behavior I observe is that even if sqlite3
is installed in the restore_ports.tcl step, the sudo port install wine
step is still trying to install it again .... I'm puzzled about this and I do not have saved full log about this but I can redo the steps and proved complete logs if is needed.
My conclusion
It seem to me that a wild different behavior like this is worth to investigate more.
Changed 9 years ago by davalpi@…
Attachment: | ports-installed-pre-el-capitan.txt added |
---|
port installed to be restored in my experience
comment:16 Changed 9 years ago by gsfgf@…
I encountered the same issue. Installing sqlite3 manually with +universal before attempting to build wine solved the issue. (sudo port install sqlite3 +universal)
comment:17 Changed 9 years ago by andyk@…
Still failing here (same issue as originally) after updating/cleaning/etc.
comment:18 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
The original problem this ticket was about is fixed. The new problem is something I don't think I can fix; I believe it is a bug in Apple's toolchain. If you still see the problem with the latest version of Apple's toolchain, file a bug report with Apple.
In the future, please use WikiFormatting and Cc the port maintainers (
port info --maintainers glib2
), if any.