Opened 12 months ago

Last modified 12 days ago

#55915 assigned defect

mariadb-10.2 @10.2.12: clang: error: unknown argument: '-fwhole-program'

Reported by: ryandesign (Ryan Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: mavericks Cc:
Port: mariadb-10.2

Description

mariadb-10.2 fails to build on Mavericks because its version of clang (Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)) is too old to understand the -fwhole-program flag that mariadb's build system uses.

https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/49701

I'm not sure when this flag was introduced into clang but the build succeeds on Yosemite with its clang (Apple LLVM version 7.0.2 (clang-700.1.81)).

Change History (2)

comment:1 Changed 12 months ago by ryandesign (Ryan Schmidt)

I did some more research and filed an upstream bug report:

https://jira.mariadb.org/browse/MDEV-15435

It appears that -fwhole-program is completely pointless for us. New versions of clang ignore it (they print a warning that the option is not supported), while old versions error out. We could probably just remove the flag.

I'm not clear why we don't see the same error with mariadb-10.1, which contains the flag too. Maybe the particular subsection of the build that involves this flag is off by default on 10.1 but on by default on 10.2.

comment:2 Changed 12 days ago by mf2k (Frank Schima)

Owner: pixilla deleted
Status: newassigned

See #57827

Note: See TracTickets for help on using tickets.