Opened 18 years ago
Closed 18 years ago
#10475 closed defect (fixed)
BUG: ode-0.5 does not build on os x 10.4 (macbook)
Reported by: | myfemur@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.2 |
Keywords: | Cc: | myfemur@…, markd@… | |
Port: |
Description
I have not been able to build ode on my macbook. All my darwin ports are up-to-date. I have gcc installed in /usr/bin/gcc with version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5250)
The exact error message is reproduced below. Thank you in advance!
~ A T
===
apple$ sudo port -v clean ode
---> Cleaning ode ---> Removing workpath for ode
apple$ sudo port -v install ode
---> Fetching ode ---> Verifying checksum(s) for ode ---> Checksumming ode-0.5.tgz ---> Extracting ode ---> Extracting ode-0.5.tgz ---> Applying patches to ode ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/ode/files/patch-drawstuff.cpp.diff patching file drawstuff/src/drawstuff.cpp ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/ode/files/patch-user-settings.diff patching file config/user-settings ---> Configuring ode ---> Building ode with target all g++ -DdDOUBLE -DdNODEBUG -o configurator.exe configurator.c ./configurator.exe include/ode/config.h "g++ -DdNODEBUG -lm -o " ./ ctest.cpp:1:20: error: malloc.h: No such file or directory ctest.cpp:1:20: error: values.h: No such file or directory ctest.cpp:1:20: error: ieeefp.h: No such file or directory
* configurator starting, you may see some harmless error messages *
g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp is this a pentium on a gcc-based platform? ... g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp integer types (we assume int >= 32 bits) ... select the base floating point type ... the floating point infinity ... g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp ./ctest.exe available functions ... g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp g++ -DdNODEBUG -lm -o ctest.exe ctest.cpp
* configurator succeeded *
g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/array.o ode/src/array.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/error.o ode/src/error.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/memory.o ode/src/memory.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/obstack.o ode/src/obstack.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/odemath.o ode/src/odemath.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/matrix.o ode/src/matrix.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/misc.o ode/src/misc.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/rotation.o ode/src/rotation.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/mass.o ode/src/mass.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -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:1029: warning: unused variable 'world' g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/step.o ode/src/step.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/stepfast.o ode/src/stepfast.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/quickstep.o ode/src/quickstep.cpp ode/src/quickstep.cpp:157: warning: 'void multiply_J_invM_JT(int, int, dReal*, dReal*, int*, const dReal*, dReal*, dReal*, dReal*)' defined but not used g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/util.o ode/src/util.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/lcp.o ode/src/lcp.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/joint.o ode/src/joint.cpp ode/src/joint.cpp: In member function 'int dxJointLimitMotor::addLimot(dxJoint*, dxJoint::Info2*, int, dReal*, int)': ode/src/joint.cpp:500: warning: 'ltd$0' may be used uninitialized in this function ode/src/joint.cpp:500: warning: 'ltd$1' may be used uninitialized in this function ode/src/joint.cpp:500: warning: 'ltd$2' may be used uninitialized in this function g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/timer.o ode/src/timer.cpp ode/src/timer.cpp: In function 'void dTimerReport(FILE*, int)': ode/src/timer.cpp:389: warning: field width should have type 'int', but argument 3 has type 'size_t' ode/src/timer.cpp: In function 'void dTimerEnd()': ode/src/timer.cpp:122: error: PIC register '%ebx' clobbered in 'asm' gnumake: * [ode/src/timer.o] Error 1 Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_ode/work/ode-0.5" && gnumake all" returned error 2 Command output: g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/array.o ode/src/array.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/error.o ode/src/error.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/memory.o ode/src/memory.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/obstack.o ode/src/obstack.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/odemath.o ode/src/odemath.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/matrix.o ode/src/matrix.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/misc.o ode/src/misc.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/rotation.o ode/src/rotation.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/mass.o ode/src/mass.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -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:1029: warning: unused variable 'world' g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/step.o ode/src/step.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/stepfast.o ode/src/stepfast.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/quickstep.o ode/src/quickstep.cpp ode/src/quickstep.cpp:157: warning: 'void multiply_J_invM_JT(int, int, dReal*, dReal*, int*, const dReal*, dReal*, dReal*, dReal*)' defined but not used g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/util.o ode/src/util.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/lcp.o ode/src/lcp.cpp g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/joint.o ode/src/joint.cpp ode/src/joint.cpp: In member function 'int dxJointLimitMotor::addLimot(dxJoint*, dxJoint::Info2*, int, dReal*, int)': ode/src/joint.cpp:500: warning: 'ltd$0' may be used uninitialized in this function ode/src/joint.cpp:500: warning: 'ltd$1' may be used uninitialized in this function ode/src/joint.cpp:500: warning: 'ltd$2' may be used uninitialized in this function g++ -c -Wall -fno-rtti -fno-exceptions -Wall -I/usr/X11R6/include -fomit-frame-pointer -ffast-math -Iinclude -DdNODEBUG -O2 -o ode/src/timer.o ode/src/timer.cpp ode/src/timer.cpp: In function 'void dTimerReport(FILE*, int)': ode/src/timer.cpp:389: warning: field width should have type 'int', but argument 3 has type 'size_t' ode/src/timer.cpp: In function 'void dTimerEnd()': ode/src/timer.cpp:122: error: PIC register '%ebx' clobbered in 'asm' gnumake: * [ode/src/timer.o] Error 1
Warning: the following items did not execute (for ode): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: Status 1 encountered during processing.
Attachments (1)
Change History (5)
comment:1 Changed 18 years ago by myfemur@…
comment:2 Changed 18 years ago by markd@…
Summary: | ode does not build on os x 10.4 (macbook) → BUG: ode-0.5 does not build on os x 10.4 (macbook) |
---|
comment:3 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|
Could someone please test the attached Portfile patch update to 0.7 and tell me if it functions ok? It builds fine on PPC but I don't know how to test it. This port needs to be updated.
comment:4 Changed 18 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
The 0.7 patch built fine on a shiny new Intel MacBook. Committed. Thanks for contributing Mark!
I built ODE 0.5 from source and had the same problem. Commenting out lines 199-122 in src/timer.cpp solved the problem. ODE passed all it's unit tests, but I don't know what bad effects may come of this.