View Issue Details

IDProjectCategoryView StatusLast Update
0006058ardourbugspublic2020-04-19 20:16
Reporterovaskerri Assigned Tox42  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Summary0006058: Ardour 3.5.403 won't compile on Mac >=10.9 Xcode >= 5.1 due to clang error
DescriptionArdour won't compile due to Xcode changes in LLVM:

Checking for header boost/shared_ptr.hpp
==>
#include <boost/shared_ptr.hpp>

int main() {
    return 0;
}

<==
[1/2] cxx: build/.conf_check_43c16238e1719f560a373b381cf3157e/test.cpp -> build/.conf_check_43c16238e1719f560a373b381cf3157e/testbuild/test.cpp.1.o

['/usr/bin/g++', '-I/Users/Marius/Downloads/Ardour3-3.5.403', '-O0', '-g', '-fshow-column', '-DWAF_BUILD', '-DARCH_X86', '-DBUILD_VECLIB_OPTIMIZATIONS', '-DMAC_OS_X_VERSION_MIN_REQUIRED=1070', '-mmacosx-version-min=10.7', '-Wall', '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-DBOOST_SYSTEM_NO_DEPRECATED', '-D_ISOC9X_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-DENABLE_NLS', '-Woverloaded-virtual', '-D__STDC_LIMIT_MACROS', '-D__STDC_FORMAT_MACROS', '-I/opt/local/include', '-I/Users/Marius/Downloads/Ardour3-3.5.403/build/.conf_check_43c16238e1719f560a373b381cf3157e/testbuild', '-DNEED_INTL=1', '-DHAVE_COREAUDIO=1', '-DAUDIOUNIT_SUPPORT=1', '-DGTKOSX=1', '-DTOP_MENUBAR=1', '-DINTERNAL_SHARED_LIBS=1', '-DHAVE_GLIB=1', '-DHAVE_GTHREAD=1', '-DHAVE_GLIBMM=1', '-DHAVE_SNDFILE=1', '-DHAVE_GIOMM=1', '-DHAVE_CURL=1', '-DHAVE_LO=1', '-DHAVE_DLOPEN=1', '-DPHONE_HOME=1', '-DENABLE_NLS=1', '-DWINDOWS_KEY="Mod4><Super"', '-DCONFIG_ARCH="x86_64"', '-DHAVE_XML=1', '-DHAVE_SIGCPP=1', '../test.cpp', '-c', '-o', 'test.cpp.1.o']
[2/2] cxxprogram: build/.conf_check_43c16238e1719f560a373b381cf3157e/testbuild/test.cpp.1.o -> build/.conf_check_43c16238e1719f560a373b381cf3157e/testbuild/testprog

['/usr/bin/g++', '-Xlinker', '-headerpad_max_install_names', '-framework Accelerate', 'test.cpp.1.o', '-o', '/Users/Marius/Downloads/Ardour3-3.5.403/build/.conf_check_43c16238e1719f560a373b381cf3157e/testbuild/testprog']
err: clang: error: unknown argument: '-framework Accelerate'

from /Users/Marius/Downloads/Ardour3-3.5.403/libs/pbd: Test does not build: Traceback (most recent call last):
  File "/Users/Marius/Downloads/Ardour3-3.5.403/.waf-1.6.11-8a0f4c5ce0657e24fa64022baa2c02a5/waflib/Tools/c_config.py", line 445, in run_c_code
    bld.compile()
  File "/Users/Marius/Downloads/Ardour3-3.5.403/.waf-1.6.11-8a0f4c5ce0657e24fa64022baa2c02a5/waflib/Build.py", line 190, in compile
    raise Errors.BuildError(self.producer.error)
BuildError: Build failed
 -> task in 'testprog' failed (exit status 1):
    {task 4509350608: cxxprogram test.cpp.1.o -> testprog}
['/usr/bin/g++', '-Xlinker', '-headerpad_max_install_names', '-framework Accelerate', 'test.cpp.1.o', '-o', '/Users/Marius/Downloads/Ardour3-3.5.403/build/.conf_check_43c16238e1719f560a373b381cf3157e/testbuild/testprog']

not found
from /Users/Marius/Downloads/Ardour3-3.5.403/libs/pbd: The configuration failed



The Error

err: clang: error: unknown argument: '-framework Accelerate'

can not be changed to a warning as it was possible in xcode 5.1 - xcode 6 prohibits this.


Any way around this?
Additional InformationFrom http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on-mavericks-and-xcode-5-1-unknown-argument-mul

The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified.
Projects using invalid compiler options will need to be changed to remove those options. To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning:

-Wno-error=unused-command-line-argument-hard-error-in-future

To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning.

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName

It seems that all gems violating the compiler options must be updated to use valid options. It is explicitly stated that: This option [downgrading error to warning] will not be supported in the future.

The clang note we are seeing (this will be a hard error (cannot be downgraded to a warning) in the future) corresponds to the change announced in the release notes.
TagsNo tags attached.

Activities

x42

2014-12-05 23:39

administrator   ~0016015

This is already fixed in ardour-git (sometime around 3.5-3000)

The current ardour release 3.5.403 is based on the old 3.5 branch which pre-dates both Xcode 5.1 and OSX Yosemite.

In any case, unless the intention is to contribute to ardour-development,
there is no need to compile on OSX. see http://nightly.ardour.org/

system

2020-04-19 20:16

developer   ~0023347

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2014-12-04 11:09 ovaskerri New Issue
2014-12-05 23:39 x42 Note Added: 0016015
2014-12-05 23:39 x42 Status new => resolved
2014-12-05 23:39 x42 Resolution open => fixed
2014-12-05 23:39 x42 Assigned To => x42
2020-04-19 20:16 system Note Added: 0023347
2020-04-19 20:16 system Status resolved => closed