[ODE] ODE and Itanium processors

Bram Stolk bram at sara.nl
Mon Jul 31 02:25:21 MST 2006


Chris,


The problem is that a '-fPIC' flag is missing.
In ode/src/Makefile.am there is:

if X86_64_SYSTEM
libode_a_CPPFLAGS += -fPIC
endif

However, the -fPIC should be enabled for itanium as well.

I wonder: on what platform can this be left out?
Why is -fPIC not enabled on all platforms?

   Bram


Chris M. wrote:
> Trying to compile ODE 0.6 on some Itanium2 processors today, it didn't work.
> Heres how I had it configured
> Configuration:
>   Target system type:      ia64-unknown-linux-gnu
>   Build  system type:      ia64-unknown-linux-gnu
>   Host   system type:      ia64-unknown-linux-gnu
>   Use double precision:    yes
>   Use OPCODE:              yes
>   Use gyroscopic term:     yes
>   Is this a Pentium:       no
>   Is the CPU x86-64:       no
>   Is this a release build: yes
> 
> And heres the errors I got.
> 
> collision_trimesh_trimesh.cpp: In function `void
>    GetTriangleGeometryCallback(unsigned int, Opcode::VertexPointers&, 
> unsigned
>    int)':
> collision_trimesh_trimesh.cpp:947: warning: cast to pointer from integer of
>    different size
> /tmp/ccJ1wpgH.s: Assembler messages:
> /tmp/ccJ1wpgH.s:9555: Warning: Additional NOP may be necessary to workaround 
> Itanium processor A/B step errata
> 
> and then the compilation went on for a while and stopped here
> /usr/lib/gcc-lib/ia64-suse-linux/3.3.3/../../../../ia64-suse-linux/bin/ld: 
> libode_a-collision_trimesh_ccylinder.o: @gprel relocation against dynamic 
> symbol gCylinder
> /usr/lib/gcc-lib/ia64-suse-linux/3.3.3/../../../../ia64-suse-linux/bin/ld: 
> libode_a-collision_trimesh_ccylinder.o: @gprel relocation against dynamic 
> symbol gTriMesh
> collect2: ld returned 1 exit status
> 
> with is on suse entreprise linux 9 with gcc 3.3.3.  Lemme know if I can 
> provide more information.  I have limited access to this machine so it may 
> take couple of days before I can try again.
> 
> 
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list