<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi again
<div><br>
</div>
<div><br>
</div>
<div>Using ASM_NASM works better except the nasm call seems to get all the CXX flags, some of them (-F) being invalid.</div>
<div><br>
</div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; ">
<!--StartFragment--><span style=" color:#aa0000;">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</span></div>
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; ">
<span style=" color:#aa0000;">nasm: fatal: unrecognized debug format `/Library/Frameworks' for output format `bin'</span><!--EndFragment--></div>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; "><br>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">Any ideas why it's picking up those definitions?</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font>
<div>
<div>On 5 Nov 2012, at 15:54, Mike Krus wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi
<div><br>
</div>
<div>got some issues compiling ASM of Mac, mixed with other C++ code. In my CMake file I use:</div>
<div>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">INCLUDE</span>(CheckLanguage)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">check_language</span>(ASM)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">if</span>(CMAKE_ASM_COMPILER)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">enable_language</span>(ASM)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">LIST</span>(APPEND<span style=" color:#c0c0c0;"> </span>nm_tls_ALL_src<span style=" color:#c0c0c0;"> </span>src/FlowScalarField64.asm)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">ADD_DEFINITIONS</span>(<span style=" color:#c0c0c0;"> </span>-DINTEL_SIMD<span style=" color:#c0c0c0;"> </span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">else</span>()</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#808000;">message</span>(STATUS<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"No</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">ASM</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">support"</span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">endif</span>()</pre>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br><!--EndFragment--></pre>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">nm_tls_ALL_src <span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">is a list of C++ files. It's then used to create a shared library.</span></pre>
</div>
<div><br>
</div>
<div>Using the ninja generator, I get this error when compiling:</div>
<div>
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; ">
<span style=" color:#aa0000;">Building ASM object products/4DMove/tools/sediment/CMakeFiles/nm_tls_sediment.dir/src/FlowScalarField64.asm.o</span></div>
<div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; ">
<span style=" color:#aa0000;">i686-apple-darwin11-llvm-gcc-4.2: ../../products/4DMove/tools/sediment/src/FlowScalarField64.asm: linker input file unused because linking not done</span></div>
</div>
<div><br>
</div>
<div>Seems that gcc is thinking that file is an object file already and trying to link it rather than compile it.</div>
<div><br>
</div>
<div>Any suggestions?</div>
<div><br>
</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>
<div apple-content-edited="true">----<br>
Mike Krus (PhD) - Principal Software Engineer<br>
<br>
Midland Valley Exploration<br>
144 West George Street<br>
Glasgow G2 2HG, UK<br>
Tel: +44 141 332 2681<br>
Fax: +44 141 332 6792 </div>
<br>
</div>
</div>
--<br>
<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">
http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote>
</div>
<br>
<div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">----<br>
Mike Krus (PhD) - Principal Software Engineer<br>
<br>
Midland Valley Exploration<br>
144 West George Street<br>
Glasgow G2 2HG, UK<br>
Tel: +44 141 332 2681<br>
Fax: +44 141 332 6792</span> </div>
<br>
</div>
</body>
</html>