EPalmas345 / gpuocelot

Automatically exported from code.google.com/p/gpuocelot
0 stars 0 forks source link

gpuocelot fails to build due to boost linkage errors on OS X Snow Leopard #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://gpuocelot.googlecode.com/svn/trunk/ gpuocelot-read-only
2. ./build.py --install
3.

What is the expected output? What do you see instead?

ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'float 
hydrazine::copysign(float, float)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:43:9: error: 'copysign' is 
not a member of 'std'
ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'float 
hydrazine::nearbyintf(float)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:82:11: error: 'nearbyintf' is 
not a member of 'std'
ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'double 
hydrazine::nearbyintf(double)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:119:9: error: 'nearbyint' is 
not a member of 'std'
ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'float 
hydrazine::trunc(float)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:128:9: error: 'trunc' is not 
a member of 'std'
ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'double 
hydrazine::trunc(double)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:137:9: error: 'trunc' is not 
a member of 'std'
ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'float 
hydrazine::exp2f(float)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:146:9: error: 'exp2f' is not 
a member of 'std'
ocelot/hydrazine/implementation/FloatingPoint.cpp: In function 'float 
hydrazine::log2f(float)':
ocelot/hydrazine/implementation/FloatingPoint.cpp:155:9: error: 'log2f' is not 
a member of 'std'

Manually convert 'std::function' to function where function == {copysign, 
nearbyintf, ..., log2f},
re-execute './build.py --install' and fail with 

.release_build/ocelot/ptx.os .release_build/ocelot/ptxgrammar.os -L/usr/lib 
-L/usr/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -ldl
ld: library not found for -lboost_system-mt

 /opt/local/lib to /usr/lib might fix this as suggested here
http://stackoverflow.com/questions/10761122/build-gpuocelot-fails-due-to-boost-l
inkage-errors-on-os-x-snow-leopard 

What version of the product are you using? On what operating system?

I used the latest trunk version of gpuocelot on a mac snow 10.6.8 with gcc 
4.5.3 and boost @1.49.0_0+universal (active) (boost installed via macports).

Please provide any additional information below.

Original issue reported on code.google.com by nikos.yi...@gmail.com on 13 Jul 2012 at 11:17

GoogleCodeExporter commented 9 years ago
Working Copy Root Path: 
/Users/nikos/Documents/code/SRC/cuda/ocelot/gpuocelot-read-only
URL: http://gpuocelot.googlecode.com/svn/trunk
Repository Root: http://gpuocelot.googlecode.com/svn
Repository UUID: ec522b64-56cd-11de-8d7d-01d876f1962d
Revision: 1968
Node Kind: directory
Schedule: normal
Last Changed Author: gregory.diamos@gatech.edu
Last Changed Rev: 1968
Last Changed Date: 2012-07-13 17:51:26 +0100 (Fri, 13 Jul 2012)

Original comment by nikos.yi...@gmail.com on 13 Jul 2012 at 11:20