close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 14 years ago

Closed 14 years ago

#1310 closed defect (fixed)

compile fails in ubuntu 10.04 64 bits

Reported by: Jorge Owned by: Jorge
Priority: highest Milestone: Mantainance
Component: Kernel Version: 2.0.1
Severity: critical Keywords:
Cc: hacarralero@…, apalonso@…

Description

On ubuntu 10.0.4 64 bits, the compilation fails with:

btol/vmatrix_type/vmat_io.cpp:511: error: call of overloaded ‘Write(size_t&, BStream*&)’ is ambiguous
./tol/tol_oiscreator.h:60: note: candidates are: bool BOisCreator::Write(const char&, BStream*)
./tol/tol_oiscreator.h:61: note:                 bool BOisCreator::Write(const unsigned char&, BStream*)
./tol/tol_oiscreator.h:62: note:                 bool BOisCreator::Write(const short int&, BStream*)
./tol/tol_oiscreator.h:63: note:                 bool BOisCreator::Write(const short unsigned int&, BStream*)
./tol/tol_oiscreator.h:64: note:                 bool BOisCreator::Write(const int&, BStream*)
./tol/tol_oiscreator.h:65: note:                 bool BOisCreator::Write(const unsigned int&, BStream*)
...

Change History (4)

comment:1 Changed 14 years ago by Jorge

The same happens to Read

btol/vmatrix_type/vmat_io.cpp:530: error: no matching function for call to ‘BOisLoader::Read(size_t&, BStream*&)’
./tol/tol_oisloader.h:94: note: candidates are: bool BOisLoader::Read(void*, size_t, size_t, BStream*)
...

comment:2 Changed 14 years ago by Jorge

Other errors:

./tol/tol_bvmat_bsr.h:168: error: cast from ‘const char*’ to ‘int’ loses precision
contrib/alglib/ap.cpp:437: error: ‘fopen’ was not declared in this scope
contrib/alglib/ap.cpp:442: error: ‘fgets’ was not declared in this scope
contrib/alglib/ap.cpp:458: error: ‘fclose’ was not declared in this scope
contrib/alglib/ap.cpp:478: error: ‘fclose’ was not declared in this scope
contrib/alglib/ap.cpp: In function ‘void ap::explodestring(std::string, char, st
contrib/cint/tolCint.cpp:669: error: cast from ‘double*’ to ‘int’ loses precision
contrib/cint/tolCint.cpp:678: error: cast from ‘double*’ to ‘int’ loses precision
contrib/cint/tolCint.cpp:690: error: cast from ‘char*’ to ‘int’ loses precision

comment:3 Changed 14 years ago by Jorge

Status: newaccepted

The problem is due to bjam is not invoking gcc with the correct options in order to generate a 32 bit program.

comment:4 Changed 14 years ago by Jorge

Resolution: fixed
Status: acceptedclosed

TOL only compile for 32 bit, so make sure -m32 is used when compiling

Note: See TracTickets for help on using tickets.