[CMake] ASM on the Mac
Mike Krus
mike at mve.com
Mon Nov 5 11:55:05 EST 2012
Hi again
Using ASM_NASM works better except the nasm call seems to get all the CXX flags, some of them (-F) being invalid.
FAILED: /usr/bin/nasm -Iproducts/4DMove/tools/sediment -I../../products/4DMove/tools/sediment -I../../products/4DMove -I../../products/4DMove/utilities -Iproducts/4DMove -I/Users/mkrus/utils/Movemain_GCC4.2/Debug/include -I. -I/System/Library/Frameworks/OpenGL.framework/Headers -I/usr/include -F/Library/Frameworks -I/Library/Frameworks/QtOpenGL.framework/Headers -I/Library/Frameworks/QtDesigner.framework/Headers -I/Library/Frameworks/QtScript.framework/Headers -I/usr/include/QtUiTools -I/Library/Frameworks/QtHelp.framework/Headers -I/Library/Frameworks/QtWebKit.framework/Headers -I/Library/Frameworks/QtGui.framework/Headers -I/Library/Frameworks/QtTest.framework/Headers -I/Library/Frameworks/QtXml.framework/Headers -I/Library/Frameworks/QtSql.framework/Headers -I/Library/Frameworks/QtNetwork.framework/Headers -I/Library/Frameworks/QtCore.framework/Headers -I../../libraries/base/mvBaseExport -I../../libraries/base/mvBaseExport/inc -Ilibraries/base/mvBaseExport -Ilibraries/base/mvBaseExport/inc -I../../libraries/base/mvBase -I../../libraries/base/mvBase/include -I../../libraries/base/mvBaseQt -I../../libraries/base/mvBaseQt/ImageUtils/include -I../../libraries/base/mvBaseQt/GPSUtils/include -Ilibraries/base/mvBaseQt -Ilibraries/base/mvBaseQt/ImageUtils/include -Ilibraries/base/mvBaseQt/GPSUtils/include -I../../libraries/base/mvBaseTools/inc -Ilibraries/base/mvBaseTools/inc -I../../libraries/netlib -I../../libraries/aicec/inc -I../../libraries/imports/impCore/include -Ilibraries/imports/impCore/include -I../../libraries/imports/impActual/include -Ilibraries/imports/impActual/include -I../../libraries/GDF/GDFLib/include -I../../libraries/GDF/GDFToolkit/include -I../../libraries/fracNet/sgaShared/include -I../../libraries/fracNet/gpCore/include -I../../libraries/fracNet/fracNet/include -I/Users/mkrus/utils/nurbs/install/nurbs++-3_0_11-Mac64/include -I../../libraries/misc/lsmg/include/lsmg -I../../libraries/misc/lsmg/include -I../../libraries/misc/csparse/include -Wno-unused-parameter -Wno-switch -Wno-switch-default -Wno-switch-enum -Wno-attributes -m64 -fpermissive -Wno-non-template-friend -frounding-math -f macho64 -o products/4DMove/tools/sediment/CMakeFiles/nm_tls_sediment.dir/src/FlowScalarField64.asm.o ../../products/4DMove/tools/sediment/src/FlowScalarField64.asm
nasm: fatal: unrecognized debug format `/Library/Frameworks' for output format `bin'
Any ideas why it's picking up those definitions?
On 5 Nov 2012, at 15:54, Mike Krus wrote:
Hi
got some issues compiling ASM of Mac, mixed with other C++ code. In my CMake file I use:
INCLUDE(CheckLanguage)
check_language(ASM)
if(CMAKE_ASM_COMPILER)
enable_language(ASM)
LIST(APPEND nm_tls_ALL_src src/FlowScalarField64.asm)
ADD_DEFINITIONS( -DINTEL_SIMD )
else()
message(STATUS "No ASM support")
endif()
nm_tls_ALL_src is a list of C++ files. It's then used to create a shared library.
Using the ninja generator, I get this error when compiling:
Building ASM object products/4DMove/tools/sediment/CMakeFiles/nm_tls_sediment.dir/src/FlowScalarField64.asm.o
i686-apple-darwin11-llvm-gcc-4.2: ../../products/4DMove/tools/sediment/src/FlowScalarField64.asm: linker input file unused because linking not done
Seems that gcc is thinking that file is an object file already and trying to link it rather than compile it.
Any suggestions?
Mike
----
Mike Krus (PhD) - Principal Software Engineer
Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792
--
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
----
Mike Krus (PhD) - Principal Software Engineer
Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121105/bb17db3b/attachment.htm>
More information about the CMake
mailing list