Hello Mark, First I have to say that I do not know to much about this contribution and neither about its functionality but anyway let's try to get it working (or compiling at least).
As you are using Mac os the first thing we have to be sure is that you are building the code in 32 bits mode. In the snow leopard version of the OS gcc build 64 bits (when the hardware allows it) by default unless the option "-arch i386" is specified to the compiler and linker. Can you please tell me which version of the OS are you using? Does the package you are trying to build use ozmake or a regular make file?, this is, could you tell me what is the command line instruction you are using to install it? (right now I don not have access to mogul). Regards, Gustavo 2010/12/7 mark hamlin <[email protected]> > I have an architecture problem installing the mogul:/duchier/select > package (others packages installed without error). I'm planning to > reinstall Mozart/Oz from source and try again. If anyone has any > better suggestions I'd be glad of the advice. > > /Applications/Mozart.app/Contents/Resources/include/mozart.h:731: > error: cast from ‘OZ_Container*’ to ‘unsigned int’ loses precision > In file included from /var/tmp/tmp.0.vxlJvY/mozart_cpi_extra.hh:4, > from /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:1: > > > Environment: > > 1. Mozart Engine 1.4.0 (20080703) playing Oz 3 (this is the latest > macos binary available from the website) > 2. Strasheela r1741 | t-anders | 2009-03-08 23:50:57 +0000 (Sun, 08 > Mar 2009) | 2 lines > 3. Mac OSX / Darwin 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 > 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 > > > Thanks, > Mark > > > ozmake --install > --package= > http://www.mozart-oz.org/mogul/populate/duchier/select/duchier-select__1.3.0__source__1.8.pkg > downloading package > > http://www.mozart-oz.org/mogul/populate/duchier/select/duchier-select__1.3.0__source__1.8.pkg > mkdir /var/tmp/tmp.0.vxlJvY > ozc -c Select.oz -o Select.ozf > oztool c++ -c -O3 -I/Users/nana/.oz/1.4.0/platform/darwin-i386/include > -I/Users/nana/.oz/1.4.0/include > -I/Applications/Mozart.app/Contents/Resources/platform/darwin-i386/include > -I/Applications/Mozart.app/Contents/Resources/include > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc -o > /var/tmp/tmp.0.vxlJvY/SeqSelect.o > In file included from > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:33, > from /var/tmp/tmp.0.vxlJvY/mozart_cpi_extra.hh:4, > from /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:1: > /Applications/Mozart.app/Contents/Resources/include/mozart.h: In > member function ‘void OZ_Container::cacMark(OZ_Container*)’: > /Applications/Mozart.app/Contents/Resources/include/mozart.h:731: > error: cast from ‘OZ_Container*’ to ‘unsigned int’ loses precision > In file included from /var/tmp/tmp.0.vxlJvY/mozart_cpi_extra.hh:4, > from /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:1: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh: In > member function ‘OZ_CPIVar::operator OZ_Term() const’: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:881: > error: cast from ‘OZ_Term*’ to ‘OZ_Term’ loses precision > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh: In > member function ‘int OZ_Expect::expectBoolVar(OZ_Term, OZ_Return&)’: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1350: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1350: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh: In > member function ‘int OZ_Expect::expectIntVarBounds(OZ_Term, > OZ_Return&)’: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1352: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1352: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh: In > member function ‘int OZ_Expect::expectVectorIntVarBounds(OZ_Term, > OZ_Return&)’: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1354: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1354: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh: In > member function ‘int OZ_Expect::expectInt(OZ_Term, OZ_Return&)’: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1356: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1356: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh: In > member function ‘int OZ_Expect::expectVectorInt(OZ_Term, OZ_Return&)’: > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1358: > warning: deprecated conversion from string constant to ‘char*’ > /Applications/Mozart.app/Contents/Resources/include/mozart_cpi.hh:1358: > warning: deprecated conversion from string constant to ‘char*’ > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc: At global scope: > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:25: warning: deprecated conversion > from string constant to ‘char*’ > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc: In function ‘OZ_Return > set_seqselect(OZ_Term**)’: > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:51: warning: deprecated conversion > from string constant to ‘char*’ > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:54: warning: deprecated conversion > from string constant to ‘char*’ > /var/tmp/tmp.0.vxlJvY/SeqSelect.cc:55: warning: deprecated conversion > from string constant to ‘char*’ > rm -R /var/tmp/tmp.0.vxlJvY > > %********************** ozmake [build] error ******************** > %** > %** shell command failed > %** > %** Shell command: > '/Applications/Mozart.app/Contents/Resources/bin/oztool' 'c++' '-c' > '-O3' '-I/Users/nana/.oz/1.4.0/platform/darwin-i386/include' > '-I/Users/nana/.oz/1.4.0/include' > > '-I/Applications/Mozart.app/Contents/Resources/platform/darwin-i386/include' > '-I/Applications/Mozart.app/Contents/Resources/include' > '/var/tmp/tmp.0.vxlJvY/SeqSelect.cc' '-o' > '/var/tmp/tmp.0.vxlJvY/SeqSelect.o' > > _________________________________________________________________________________ > mozart-users mailing list > [email protected] > http://www.mozart-oz.org/mailman/listinfo/mozart-users > -- Gustavo Gutierrez
_________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
