Opened 4 years ago

Last modified 4 years ago

#61137 closed defect

glib2 @2.58.3 +universal+x11: compile error: unterminated conditional directive (clang version?) — at Initial Version

Reported by: JDLH (Jim DeLaHunt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: dbevans (David B. Evans)
Port: glib2

Description

When updating glib2 to @2.58.3 +universal+x11 on macOS 10.13.6 High Sierra, the compile of gclosure.c failed. The relevant part of the main.log reads,

:info:build In file included from gclosure.c:28:
:info:build /opt/local/include/ffi.h:44:2: error: unterminated conditional directive
:info:build #ifndef LIBFFI_H
:info:build  ^
:info:build In file included from gclosure.c:1160:
:info:build /opt/local/include/ffi.h:44:2: error: unterminated conditional directive
:info:build #ifndef LIBFFI_H
:info:build  ^

Full main.log attached.

/opt/local/include/ffi.h is provided by: libffi (per port provides).

The glib2 Portfile changed on Sep 5, 2020 with commit bd5d680 "ports that link with libffi: rebuild with libffi 3.3". It looks like just the revision number incremented, to force a rebuild.

The libffi Portfile changed on Sept 4, 2020 with commit 81c3c7d "libffi: Fix universal variant". As far as I can tell, this did not changed the contents of ffi.h.

The error message, "unterminated conditional directive", is mentioned in several bug reports. Many of those reports point to https://github.com/Sarcasm/flycheck-irony/issues/20, where it is described as a bug in LLVM, fixed in January 2018. Maybe that fix does not propagate back to macOS 10.13 High Sierra?

Change History (1)

Changed 4 years ago by JDLH (Jim DeLaHunt)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log

Note: See TracTickets for help on using tickets.