Summary: | Visibility problems with Apple's Xcode/clang compilers | ||
---|---|---|---|
Product: | [Frameworks and Libraries] extra-cmake-modules | Reporter: | RJVB <rjvbertin> |
Component: | general | Assignee: | ecm-bugs-null <ecm-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | kdelibs-bugs |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | macOS | ||
URL: | https://phabricator.kde.org/D16894 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
libkcddb 18.08.3 build log with AppleClang 602
build log with clang 5.0.2 from MacPorts AppleClang build commands for configpage.cpp, sites.cpp and the failed link command formatted for side-by-side comparison clang build commands for configpage.cpp, sites.cpp and the failed link command formatted for side-by-side comparison sites.cpp preprocessed by AppleClang sites.cpp preprocessed by clang 5.0.2 |
Description
RJVB
2018-11-13 22:52:01 UTC
Created attachment 116293 [details]
libkcddb 18.08.3 build log with AppleClang 602
Created attachment 116294 [details]
build log with clang 5.0.2 from MacPorts
Created attachment 116295 [details]
AppleClang build commands for configpage.cpp, sites.cpp and the failed link command formatted for side-by-side comparison
Created attachment 116296 [details]
clang build commands for configpage.cpp, sites.cpp and the failed link command formatted for side-by-side comparison
Created attachment 116297 [details]
sites.cpp preprocessed by AppleClang
Created attachment 116298 [details]
sites.cpp preprocessed by clang 5.0.2
Moving this to KConfig because it looks like kconfig_compiler_kf5 fails with AppleClang, generating empty export macros:
```
> diff -u libkcddb-18.08.3/build-*clang/libkcddb/kcddb_export.h
--- libkcddb-18.08.3/build-appleclang/libkcddb/kcddb_export.h 2018-11-14 00:04:58.000000000 +0100
+++ libkcddb-18.08.3/build-clang/libkcddb/kcddb_export.h 2018-11-13 23:18:12.000000000 +0100
@@ -9,15 +9,15 @@
# ifndef KCDDB_EXPORT
# ifdef KF5Cddb_EXPORTS
/* We are building this library */
-# define KCDDB_EXPORT
+# define KCDDB_EXPORT __attribute__((visibility("default")))
# else
/* We are using this library */
-# define KCDDB_EXPORT
+# define KCDDB_EXPORT __attribute__((visibility("default")))
# endif
# endif
# ifndef KCDDB_NO_EXPORT
-# define KCDDB_NO_EXPORT
+# define KCDDB_NO_EXPORT __attribute__((visibility("hidden")))
# endif
#endif
```
Why this happens only for certain projects is a mystery to me (as is the way this command can know what compiler syntax to generate).
Apologies, my initial hunch was right, this is an ECM issue. See https://phabricator.kde.org/D16894 Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |