[cgma-dev] Fwd: Re: Problems compiling Lasso with CUBIT-linked CGM and MOAB

Tim Tautges tautges at engr.wisc.edu
Wed Dec 14 09:13:52 CST 2011


[Forwarding in case others are seeing issues...]

-------- Original Message --------
Subject: Re: Problems compiling Lasso with CUBIT-linked CGM and MOAB
Date: Wed, 14 Dec 2011 09:12:54 -0600
From: Tim Tautges <tautges at mcs.anl.gov>
To: Michael Fladerer <fladerer at fnb.tu-darmstadt.de>

Are you grabbing the nightly source tarballs for CGM, Lasso, and MOAB?  The error you're having below looks like your
Lasso is out of date.

For you MOAB build, if you'll be linking with CGM through Lasso later, I suggest configuring *MOAB* without CGM, though
I don't know whether that will always fail (I doubt it, assuming you're using the same version of CGM).

The only other thing I see that might be an issue is that your path (PATH) env variable should include cubit's bin
directory.

For each of the libraries, make sure to run 'make check' after building, to make sure the build worked (for that to
work, though, MOAB needs to be configured with netcdf).

One other simplification is that, in your makefile, you can include iRel-Defs.inc, then use IMESH_INCLUDES,
IGEOM_INCLUDES, and IREL_INCLUDES make variables on your compile line, and IXXX_LIBS on your link line (XXX=GEOM, MESH,
REL); that'll pull in the proper include/lib search paths and other options.

- tim

On 12/14/2011 08:58 AM, Michael Fladerer wrote:
> Dear Mr. Tautges,
>
> my name is Michael Fladerer and I work as a system administrator for
> the Chair of Numerical Methods in Mechanical Engineering at Technische
> Universität Darmstadt, Germany.  A couple of months ago obtained a
> license for the software CUBIT from Sandia.
>
> Now I'm trying to compile and install CGM, MOAB, Lasso, Mesquite and
> EBMeshKit with as much interfaces to each other as possible, but when I
> try to compile Lasso from scratch I run into the following error:
>
> libtool: compile:  mpiCC -DHAVE_CONFIG_H -DUSE_MPI -DIGEOM -DIMESH -I. -I. -I. -I. -I/data/software/cgm_cubit/include -I/data/software/moab_cubit/include -DSRCDIR=. -DENABLE_IGEOM -DENABLE_IMESH -I/data/software/moab_cubit/include -I/data/software/cgm_cubit/include -Wall -pipe -pedantic -Wno-long-long -O2 -DNDEBUG -MT Lasso.lo -MD -MP -MF .deps/Lasso.Tpo -c Lasso.cpp  -fPIC -DPIC -o .libs/Lasso.o
> MeshAssocPairSide.cpp: In member function 'virtual int MeshAssocPairSide::get_iterator(iBase_EntitySetHandle_Private*, iBase_EntityIterator_Private**)':
> MeshAssocPairSide.cpp:258: error: invalid conversion from 'int' to 'iBase_EntityIterator_Private**'
> MeshAssocPairSide.cpp:258: error: cannot convert 'iBase_EntityIterator_Private**' to 'int*' for argument '6' to 'void imesh_initentiter_(iMesh_Instance_Private*, iBase_EntitySetHandle_Private*, int, int, iBase_EntityIterator_Private**, int*)'
> make[2]: *** [MeshAssocPairSide.lo] Error 1
>
>
> CGM v12.2.0b2pre was configured to install to the local directory
> '/data/software/cgm_cubit' and to link against CUBIT v12.2 build 44970.
>
> Next MOAB v4.1.0pre was configured to install to
> '/data/software/moab_cubit' and to link against this CGM installation.
>
> With these two installed I first tried to configure and compile Lasso
> v3.0pre which failed with the above error message.  Unfortunately,
> compiling Lasso v2.5 also failed, but with a different error message:
>
> libtool: compile:  mpiCC -DHAVE_CONFIG_H -DUSE_MPI -DIGEOM -DIMESH -I. -I. -I. -I. -I/data/software/moab_cubit/include -I/data/software/cgm_cubit/include -I/data/software/moab_cubit/include -I/data/software/cgm_cubit/include -O2 -DNDEBUG -MT AssocPairC.lo -MD -MP -MF .deps/AssocPairC.Tpo -c AssocPairC.cpp -fPIC -DPIC -o .libs/AssocPairC.o
> In file included from AssocPair.hpp:4,
>                   from AssocPair.cpp:1:
> 		 iRel_Lasso.hpp:7: error: 'iBase_Error' does not name a type
> 		 iRel_Lasso.hpp: In function 'int iRel_processError(int, const char*)':
> 		 iRel_Lasso.hpp:28: error: 'iRel_LAST_ERROR' was not declared in this scope
>
>
> The following environment variables are set to specify the additional
> libraries and includes from CUBIT, CGM and MOAB:
>
> LD_RUN_PATH=/data/software/moab_cubit/lib:/data/software/cgm_cubit/lib:/data/software/cubit-12.2-44970/bin
>
> LD_LIBRARY_PATH=/data/software/moab_cubit/lib:/data/software/cgm_cubit/lib:/data/software/cubit-12.2-44970/bin
>
> LDFLAGS='-Wl,-rpath -Wl,/data/software/moab_cubit/lib -Wl,-rpath -Wl,/data/software/cgm_cubit/lib -Wl,-rpath -Wl,/data/software/cubit-12.2-44970/bin
>
> CPPFLAGS='-I/data/software/moab_cubit/include -I/data/software/cgm_cubit/include'
>
>
> Any advice would be highly appreciated.
>
> Regards,
>   Michael Fladerer
>

-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
  phone (gvoice): (608) 354-1459      1500 Engineering Dr.
             fax: (608) 263-4499      Madison, WI 53706



More information about the cgma-dev mailing list