What versions of gcc are supported for Optix 2.6

In the past I have always compiled gcc 4.3 to compile optix code. I have a fresh install of Fedora 16 with gcc 4.6.3 and am getting an error with GLIBC_2.2.5. Is it still necessary to use gcc 4.3 with OptiX on linux?


Josh, what kind of errors are you seeing?

/usr/bin/ld: CMakeFiles/ambocc.dir/ambocc.c.o: undefined reference to symbol ‘sqrtf@@GLIBC_2.2.5
/usr/bin/ld: note: ‘sqrtf@@GLIBC_2.2.5’ is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation

I encountered these when I was just compiling the 2.6 SDK. I can try to work through these if you like; I was mostly curious which versions of gcc are expected to work out of the box.

I’m using F16 as well and with the following patch the SDK links successfully:

--- NVIDIA-OptiX-SDK-2.6.0-linux64/SDK/CMakeLists.txt.orig  2012-11-16 13:12:36.647675856 -0600
+++ NVIDIA-OptiX-SDK-2.6.0-linux64/SDK/CMakeLists.txt       2012-11-16 13:12:50.096282054 -0600
@@ -250,6 +250,7 @@
   target_link_libraries( ${target_name}
+    m

Apart from that F16’s default gcc seems to work fine with OptiX 2.6 - I’m using it as my main development platform.

I have Keith take a look a this when he gets back in town. He recently upgraded his version of Ubuntu, so he should be able to take a look at it in more detail.