You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This occurs on macOS when using a Homebrew installed MySQL 5.6 and on Ubuntu when using an apt installed MySQL client 5.7. These installations properly place a pkgconfig file which SPM is able to locate. However, these pkgconfig files utilize Cflags which are not white listed by SPM, thus building against them fails with the following:
error: nonWhitelistedFlags("Non whitelisted flags found: ["-fabi-version=2", "-fno-omit-frame-pointer"] in pc file mysqlclient")
The only way to complete the build is to edit the pc files; a suboptimal solution.
Whether or not MySQL client has any real need or business specifying these flags, I do not know, but at this point MySQL client is not usable from Swift "out of the box".
If "-f" and "-D" are added as whitelisted prefixes for CFLAGS, then both SDL and MySQL client should build correctly. Honestly though, I'm not sure what the point of having a whitelist is here, since the "whitelist" allows anything with the correct prefixes and doesn't even properly separate CFLAGS from LDFLAGS. My recommendation would be to remove the whitelist altogether.
Environment
Homebrew installed MySQL 5.6. Ubuntu apt installed MySQL client 5.7.
Additional Detail from JIRA
md5: ec1b505e3ef97c3584ba5334306e1e6b
duplicates:
Issue Description:
This occurs on macOS when using a Homebrew installed MySQL 5.6 and on Ubuntu when using an apt installed MySQL client 5.7. These installations properly place a pkgconfig file which SPM is able to locate. However, these pkgconfig files utilize Cflags which are not white listed by SPM, thus building against them fails with the following:
error: nonWhitelistedFlags("Non whitelisted flags found: ["-fabi-version=2", "-fno-omit-frame-pointer"] in pc file mysqlclient")
The only way to complete the build is to edit the pc files; a suboptimal solution.
Whether or not MySQL client has any real need or business specifying these flags, I do not know, but at this point MySQL client is not usable from Swift "out of the box".
The Cflags in question are:
ubuntu: -fabi-version=2, -fno-omit-frame-pointer
macOS: -fno-omit-frame-pointer
The text was updated successfully, but these errors were encountered: