[MacPorts] #53338: ogre @1.7.3_4 fails on Sierra -- "invalid deployment target"
MacPorts
noreply at macports.org
Tue Jan 17 18:51:23 UTC 2017
#53338: ogre @1.7.3_4 fails on Sierra -- "invalid deployment target"
-----------------------+-------------------
Reporter: starthal | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.5
Resolution: | Keywords:
Port: ogre |
-----------------------+-------------------
Comment (by starthal):
CMakeLists.txt:
{{{
...
elseif (APPLE AND NOT OGRE_BUILD_PLATFORM_IPHONE)
# Set 10.5 as the base SDK by default
set(XCODE_ATTRIBUTE_SDKROOT macosx)
set(CMAKE_OSX_SYSROOT macosx)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
if (NOT CMAKE_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES $(ARCHS_STANDARD_32_64_BIT))
endif()
# Make sure that the OpenGL render system is selected for non-iPhone
Apple builds
set(OGRE_BUILD_RENDERSYSTEM_GL TRUE)
set(OGRE_BUILD_RENDERSYSTEM_GLES FALSE)
endif ()
...
}}}
But if I just try to replace this with 10.7, CMake succeeds, but something
bad happens to the architecture specification:
{{{
> make VERBOSE=1
/opt/local/bin/cmake -H/Users/salbert/builds/ogre_src_v1-7-3
-B/Users/salbert/builds/ogre_src_v1-7-3 --check-build-system
CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start
/Users/salbert/builds/ogre_src_v1-7-3/CMakeFiles
/Users/salbert/builds/ogre_src_v1-7-3/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
OgreMain/CMakeFiles/OgreMain.dir/build.make
OgreMain/CMakeFiles/OgreMain.dir/depend
cd /Users/salbert/builds/ogre_src_v1-7-3 && /opt/local/bin/cmake -E
cmake_depends "Unix Makefiles" /Users/salbert/builds/ogre_src_v1-7-3
/Users/salbert/builds/ogre_src_v1-7-3/OgreMain
/Users/salbert/builds/ogre_src_v1-7-3
/Users/salbert/builds/ogre_src_v1-7-3/OgreMain
/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/CMakeFiles/OgreMain.dir/DependInfo.cmake
--color=
Dependee
"/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/CMakeFiles/OgreMain.dir/DependInfo.cmake"
is newer than depender
"/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/CMakeFiles/OgreMain.dir/depend.internal".
Dependee
"/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/CMakeFiles/CMakeDirectoryInformation.cmake"
is newer than depender
"/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/CMakeFiles/OgreMain.dir/depend.internal".
Scanning dependencies of target OgreMain
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
OgreMain/CMakeFiles/OgreMain.dir/build.make
OgreMain/CMakeFiles/OgreMain.dir/build
[ 0%] Building CXX object
OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
cd /Users/salbert/builds/ogre_src_v1-7-3/OgreMain &&
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-DBOOST_ALL_NO_LIB -DFREEIMAGE_LIB -DOGRE_NONCLIENT_BUILD
-DOgreMain_EXPORTS -D_MT -D_USRDLL
-I/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/include
-I/Users/salbert/builds/ogre_src_v1-7-3/include
-I/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/include/OSX
-I/usr/local/include -I/usr/local/include/freetype2
-I/usr/local/opt/freetype/include/freetype2 -I/opt/local/include/OIS
-I/opt/local/include -I/Users/salbert/builds/ogre_src_v1-7-3
-I/usr/X11R6/include -I/System/Library/Frameworks/Carbon.framework/Headers
-I/System/Library/Frameworks/Cocoa.framework/Headers
-I/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/src/nedmalloc -O2 -g
-DNDEBUG -arch -isysroot macosx -mmacosx-version-min=10.7 -fPIC
-pthread -o CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o -c
/Users/salbert/builds/ogre_src_v1-7-3/OgreMain/src/OgreAlignedAllocator.cpp
clang: error: no such file or directory: 'macosx'
clang: error: invalid arch name '-arch -isysroot'
make[2]: ***
[OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2
}}}
It looks like the arch argument was supposed to be `-arch
$(ARCHS_STANDARD_32_64_BIT)`, so I don't know what happened to
`ARCHS_STANDARD_32_64_BIT`.
I am pulling the source tarball out and trying to build it on its own, so
I don't know if that's causing my problem.
--
Ticket URL: <https://trac.macports.org/ticket/53338#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list