[MacPorts] #61137: glib2 @2.58.3 +universal+x11: compile error: unterminated conditional directive (clang version?)
MacPorts
noreply at macports.org
Tue Sep 8 00:19:14 UTC 2020
#61137: glib2 @2.58.3 +universal+x11: compile error: unterminated conditional
directive (clang version?)
---------------------+------------------------
Reporter: JDLH | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: glib2 |
---------------------+------------------------
Comment (by JDLH):
Ah, a little problem. When I installed **glib2**, MacPorts wanted to run
`port rev-upgrade`. The rev-upgrade of **gobject-introspection
@1.60.2+universal** failed.
{{{
% sudo port install glib2 +universal+x11
---> Computing dependencies for glib2
---> Fetching archive for glib2
---> Attempting to fetch
glib2-2.58.3_1+universal+x11.darwin_17.i386-x86_64.tbz2 from
https://packages.macports.org/glib2
---> Attempting to fetch
glib2-2.58.3_1+universal+x11.darwin_17.i386-x86_64.tbz2 from
https://ywg.ca.packages.macports.org/mirror/macports/packages/glib2/glib2
---> Attempting to fetch
glib2-2.58.3_1+universal+x11.darwin_17.i386-x86_64.tbz2 from
https://kmq.jp.packages.macports.org/glib2
---> Building glib2
---> Staging glib2 into destroot
---> Installing glib2 @2.58.3_1+universal+x11
---> Activating glib2 @2.58.3_1+universal+x11
---> Cleaning glib2
---> Scanning binaries for linking errors
---> Found 19 broken files, matching files to ports
---> Found 9 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
gobject-introspection @1.60.2+universal
py27-gobject @2.28.7+x11
py27-gobject3 @3.36.1
py36-gobject3 @3.36.1
py37-gobject3 @3.36.1
py38-gobject3 @3.36.1
llvm-8.0 @8.0.1
llvm-9.0 @9.0.1
rust @1.46.0
Continue? [Y/n]: y
---> Computing dependencies for gobject-introspection
---> Fetching archive for gobject-introspection
---> Attempting to fetch gobject-
introspection-1.60.2_1+universal.darwin_17.i386-x86_64.tbz2 from
https://packages.macports.org/gobject-introspection
---> Attempting to fetch gobject-
introspection-1.60.2_1+universal.darwin_17.i386-x86_64.tbz2 from
https://ywg.ca.packages.macports.org/mirror/macports/packages/gobject-
introspection/gobject-introspection
---> Attempting to fetch gobject-
introspection-1.60.2_1+universal.darwin_17.i386-x86_64.tbz2 from
https://kmq.jp.packages.macports.org/gobject-introspection
---> Fetching distfiles for gobject-introspection
---> Verifying checksums for gobject-introspection
---> Extracting gobject-introspection
---> Applying patches to gobject-introspection
---> Configuring gobject-introspection
---> Building gobject-introspection
Error: Failed to build gobject-introspection: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_release_tarballs_ports_gnome_gobject-introspection/gobject-
introspection/main.log for details.
Error: rev-upgrade failed: Error rebuilding gobject-introspection
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
}}}
The interesting part of the failure appears to be that the linker was
looking for `/opt/local/lib/libffi.6.dylib`, but all I had was
`/opt/local/lib/libffi.7.dylib`. (Sorry, I worked around the problem, and
lost that copy of the log file.)
I blundered around trying workarounds. Upgrading some of the ports apart
from **gobject-introspection** succeeded.
{{{
% sudo port upgrade rust
---> Computing dependencies for llvm-9.0
---> Fetching archive for llvm-9.0
---> Attempting to fetch llvm-9.0-9.0.1_1.darwin_17.x86_64.tbz2 from
https://packages.macports.org/llvm-9.0
---> Attempting to fetch llvm-9.0-9.0.1_1.darwin_17.x86_64.tbz2.rmd160
from https://packages.macports.org/llvm-9.0
---> Installing llvm-9.0 @9.0.1_1
---> Cleaning llvm-9.0
---> Computing dependencies for llvm-9.0
---> Deactivating llvm-9.0 @9.0.1_0
---> Cleaning llvm-9.0
---> Activating llvm-9.0 @9.0.1_1
---> Cleaning llvm-9.0
---> Computing dependencies for rust
---> Fetching archive for rust
---> Attempting to fetch rust-1.46.0_1.darwin_17.x86_64.tbz2 from
https://packages.macports.org/rust
---> Attempting to fetch rust-1.46.0_1.darwin_17.x86_64.tbz2.rmd160 from
https://packages.macports.org/rust
---> Installing rust @1.46.0_1
---> Cleaning rust
---> Computing dependencies for rust
---> Deactivating rust @1.46.0_0
---> Cleaning rust
---> Activating rust @1.46.0_1
---> Cleaning rust
---> Scanning binaries for linking errors
---> Found 15 broken files, matching files to ports
---> Found 7 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
gobject-introspection @1.60.2+universal
py27-gobject @2.28.7+x11
py27-gobject3 @3.36.1
py36-gobject3 @3.36.1
py37-gobject3 @3.36.1
py38-gobject3 @3.36.1
llvm-8.0 @8.0.1
Continue? [Y/n]: n
}}}
For some reason, doing this trick on **py27-gobject +x11** also repaired
**gobject-introspection**:
{{{
% sudo port upgrade py27-gobject +x11
Warning: Skipping upgrade since py27-cairo 1.18.2_0 >= py27-cairo
1.18.2_0, even though installed variants "" do not match "+x11". Use
'upgrade --enforce-variants' to switch to the requested variants.
---> Computing dependencies for gobject-introspection
---> Fetching archive for gobject-introspection
---> Attempting to fetch gobject-
introspection-1.60.2_1+universal.darwin_17.i386-x86_64.tbz2 from
https://packages.macports.org/gobject-introspection
---> Attempting to fetch gobject-
introspection-1.60.2_1+universal.darwin_17.i386-x86_64.tbz2 from
https://ywg.ca.packages.macports.org/mirror/macports/packages/gobject-
introspection/gobject-introspection
---> Attempting to fetch gobject-
introspection-1.60.2_1+universal.darwin_17.i386-x86_64.tbz2 from
https://kmq.jp.packages.macports.org/gobject-introspection
---> Building gobject-introspection
---> Staging gobject-introspection into destroot
---> Installing gobject-introspection @1.60.2_1+universal
---> Cleaning gobject-introspection
---> Computing dependencies for gobject-introspection
---> Deactivating gobject-introspection @1.60.2_0+universal
---> Cleaning gobject-introspection
---> Activating gobject-introspection @1.60.2_1+universal
---> Cleaning gobject-introspection
---> Computing dependencies for py27-gobject
---> Fetching archive for py27-gobject
---> Attempting to fetch py27-gobject-2.28.7_1+x11.darwin_17.x86_64.tbz2
from https://packages.macports.org/py27-gobject
---> Attempting to fetch
py27-gobject-2.28.7_1+x11.darwin_17.x86_64.tbz2.rmd160 from
https://packages.macports.org/py27-gobject
---> Installing py27-gobject @2.28.7_1+x11
---> Cleaning py27-gobject
---> Computing dependencies for py27-gobject
---> Deactivating py27-gobject @2.28.7_0+x11
---> Cleaning py27-gobject
---> Activating py27-gobject @2.28.7_1+x11
---> Cleaning py27-gobject
---> Updating database of binaries
---> Scanning binaries for linking errors
---> Found 4 broken files, matching files to ports
---> Found 4 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
py27-gobject3 @3.36.1
py36-gobject3 @3.36.1
py37-gobject3 @3.36.1
py38-gobject3 @3.36.1
Continue? [Y/n]: Y
---> Computing dependencies for py27-gobject3
[ …snip… ]
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
}}}
So, all's well that ends well? I'm running a `port upgrade outdated`
again.
--
Ticket URL: <https://trac.macports.org/ticket/61137#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list