<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">Hi<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>this was a good tip to configure the compiler using the environment variables.<br>
I just changed -m64 to the old xtarget settings, because this is to new for my compiler.<br>
I removed all compiler settings from the CMakeLists.txt and now it seems to work, except from the assembler.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Now I'm using this environment.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>#!/bin/bash<br>
# configure compiler<br>
CC=/home/local/opt/SUNWspro.11/bin/cc<br>
CXX=/home/local/opt/SUNWspro.11/bin/CC<br>
CPP=$CXX<br>
CFLAGS="-xtarget=ultra -xarch=v9"<br>
CXXFLAGS="-xtarget=ultra -xarch=v9"<br>
LDFLAGS="-xarch=v9"<br>
# configure cmake<br>
PATH=$PATH:/home/sag/cmake-2.6.2-SunOS-sparc/bin<br>
export PATH CC CXX CPP CFLAGS CXXFLAGS LDFLAGS<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>When compiling the assembler file I now get the error<br>
/usr/ccs/bin/as: "/path/to/file/platforms/linux/cas32.s", line 7: error: cannot use v8plus instructions in a non-v8plus target binary  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>because it seems not to evaluate the CFLAGS with arch=v9<br>
Is there any other environment variable that is passed to the assembler?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>On Monday 27 October 2008 13:52:01 you wrote:<br>
&gt; Here is the environment I enforce on solaris to build with<br>
&gt; cmake/solaris/suncc64 :<br>
&gt;<br>
&gt; export LINKFLAGS="-m64" ; export CFLAGS="-m64" ; export CPPFLAGS="-m64";<br>
&gt; export CC=/opt/SUNWspro/bin/suncc ; export CPP=/opt/SUNWspro/bin/suncc;<br>
&gt; export CXX=/opt/SUNWspro/bin/sunCC<br>
&gt;<br>
&gt; <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
mit freundlichen Grüßen / best regards<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Gerhard Gappmeier<br>
ascolab GmbH - automation systems communication laboratory<br>
Tel.: +49 9131 691 123<br>
Fax:  +49 9131 691 128<br>
Web: http://www.ascolab.com<br>
GPG-Key: http://www.ascolab.com/gpg/gg.asc<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>