[ODE] Help with building under CygWin

Tom Maciukenas tommaciukenas at hotmail.com
Tue Dec 3 19:57:02 2002


Hello ODE members,

Let me just start by saying that ODE is a wonderful program and
cheers to Russell for creating it.

That said, I am having trouble building the library on my
computer, under cygwin.  Can anyone help?

Here are the details:

OS: Windows 2000 Professional
Architecture: Intel Pentium 3
cygwin version: 1.3.17-1 (the latest as of 12/2/2002)
ode version: 0.03

Hmm... anything else?

Below I've included a log of the build.  Here's a summary:

1. I have edited config/user-settings to say PLATFORM=cygwin
2. I downloaded the make program off the ODE web page.
3. ran 'make'

    the configurator completed successfully.
    ode-lib and drawstuff-lib completed successfully (with warnings).
    ode/test/test_ode.exe completed successfully
    ode/test/test_chain2.exe failed with 'undefined reference' errors

4. The failure of the test_chain2 build was the first problem,
   but test_ode built so I tried running it.  That failed, with
   a dialog box that said:

     The instruction at "0x77e83ef8" referenced memory at "0xc003c123".
     The memory could not be "read".

That's about it.  The build output is below, followed by the output
from test_ode.  Can anyone help??

Thanks,

-Tom Maciukenas

[...]
*** configurator succeeded ***

gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/array.o ode/src/array.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/error.o ode/src/error.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/memory.o ode/src/memory.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/obstack.o 
ode/src/obstack.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/odemath.o 
ode/src/odemath.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/matrix.o ode/src/matrix.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/misc.o ode/src/misc.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/rotation.o 
ode/src/rotation.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/mass.o ode/src/mass.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/ode.o ode/src/ode.cpp
ode/src/ode.cpp: In function `void dJointAttach(dxJoint*, dxBody*, 
dxBody*)':
ode/src/ode.cpp:922: warning: unused variable `dxWorld*world'
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/step.o ode/src/step.cpp
ode/src/step.cpp:701:5: warning: multi-line comment
ode/src/step.cpp:704:5: warning: multi-line comment
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/lcp.o ode/src/lcp.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/joint.o ode/src/joint.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/space.o ode/src/space.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/geom.o ode/src/geom.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/timer.o ode/src/timer.cpp
ode/src/timer.cpp:109:17: warning: multi-line string literals are deprecated
ode/src/timer.cpp:119:17: warning: multi-line string literals are deprecated
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/mat.o ode/src/mat.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/src/testing.o 
ode/src/testing.cpp
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O1 -o ode/src/fastldlt.o 
ode/src/fastldlt.c
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O1 -o ode/src/fastlsolve.o 
ode/src/fastlsolve.c
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O1 -o ode/src/fastltsolve.o 
ode/src/fastltsolve.c
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O1 -o ode/src/fastdot.o ode/src/fastdot.c
ar rc lib/libode.a ode/src/array.o ode/src/error.o ode/src/memory.o 
ode/src/obstack.o ode/src/odemath.o ode/src/matrix.o ode/src/misc.o 
ode/src/rotation.o ode/src/mass.o
ode/src/ode.o ode/src/step.o ode/src/lcp.o ode/src/joint.o ode/src/space.o 
ode/src/geom.o ode/src/timer.o ode/src/mat.o ode/src/testing.o 
ode/src/fastldlt.o ode/src/fastl
solve.o ode/src/fastltsolve.o ode/src/fastdot.o
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o drawstuff/src/drawstuff.o 
drawstuff/src/drawstuff.cp
p
drawstuff/src/drawstuff.cpp:87: warning: `void normalizeVector3(float*)'
   defined but not used
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o drawstuff/src/windows.o 
drawstuff/src/windows.cpp
drawstuff/src/windows.cpp: In function `LRESULT mainWndProc(HWND__*, 
unsigned
   int, unsigned int, long int)':
drawstuff/src/windows.cpp:191: warning: unused variable `int ctrl'
drawstuff/src/windows.cpp: At top level:
drawstuff/src/windows.cpp:303: warning: `HWND__* GetConsoleHwnd()' defined 
but
   not used
windres -I rc -O coff drawstuff/src/resources.rc lib/resources.RES
ar rc lib/libdrawstuff.a drawstuff/src/drawstuff.o drawstuff/src/windows.o 
lib/resources.RES
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/test/test_ode.o 
ode/test/test_ode.cpp
gcc -o ode/test/test_ode.exe ode/test/test_ode.o lib/libode.a 
lib/libdrawstuff.a lib/resources.RES -lComctl32 -lkernel32 -luser32 -lgdi32 
-lOpenGL32 -lGlu32 -lm
gcc -c -Wall -fno-exceptions -fno-rtti -DWIN32 -DCYGWIN -fomit-frame-pointer 
-ffast-math -Iinclude  -DdNODEBUG -O2 -o ode/test/test_chain2.o 
ode/test/test_chain2.cpp
gcc -o ode/test/test_chain2.exe ode/test/test_chain2.o lib/libode.a 
lib/libdrawstuff.a lib/resources.RES -lComctl32 -lkernel32 -luser32 -lgdi32 
-lOpenGL32 -lGlu32 -lm
lib/libdrawstuff.a(drawstuff.o)(.text+0x393):drawstuff.cpp: undefined 
reference to `operator new[](unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x533):drawstuff.cpp: undefined 
reference to `operator new[](unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x631):drawstuff.cpp: undefined 
reference to `operator new(unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x7e1):drawstuff.cpp: undefined 
reference to `operator new(unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x9cc):drawstuff.cpp: undefined 
reference to `operator delete(void*)'
lib/libdrawstuff.a(drawstuff.o)(.text+0xa2c):drawstuff.cpp: undefined 
reference to `operator delete(void*)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x24fa):drawstuff.cpp: undefined 
reference to `operator new(unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x2536):drawstuff.cpp: undefined 
reference to `operator new(unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x2572):drawstuff.cpp: undefined 
reference to `operator new(unsigned)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x25fc):drawstuff.cpp: undefined 
reference to `operator delete(void*)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x261c):drawstuff.cpp: undefined 
reference to `operator delete(void*)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x263c):drawstuff.cpp: undefined 
reference to `operator delete(void*)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x5f5):drawstuff.cpp: undefined 
reference to `operator delete[](void*)'
lib/libdrawstuff.a(drawstuff.o)(.text+0x615):drawstuff.cpp: undefined 
reference to `operator delete[](void*)'
collect2: ld returned 1 exit status
C:\cygwin\bin\gmake.exe: *** [ode/test/test_chain2.exe] Error 1

$ cd ode

$ cd test

$ test_ode.exe
testRandomNumberGenerator()
        passed
testInfinity()
        passed
testPad()
        passed
testCrossProduct()
        passed
testSetZero()
        passed
testNormalize3()
        passed
testPlaneSpace()
        passed
testMatrixMultiply()
        passed (1)
        passed (2)
        passed (3)
testSmallMatrixMultiply()
        passed (1)
        passed (2)
        passed (3)
        passed (4)
        passed (5)
        passed (6)
testCholeskyFactorization()
        passed (1)
        maximum difference = 1.776357e-15 - passed (2)
testCholeskySolve()
        passed (1)
        maximum difference = 1.465494e-14 - passed (2)
testInvertPDMatrix()
        passed (1)
        passed (2)
testIsPositiveDefinite()
        passed (1)
        passed (2)
testFastLDLTFactorization()
        maximum difference = 6.406475e+01 - FAILED
testSolveLDLT()
        maximum difference = 4.518608e-14 - passed
testLDLTAddTL()
              6 [main] test_ode 1504 handle_exceptions: Error while dumping 
state (probably corrupted stack)






_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail