gcc 4.1 vs gcc 4.3

Support for issues specific to the Linux operating systems.

gcc 4.1 vs gcc 4.3

Postby bucknerj » Wed Aug 19, 2009 11:37 am

I just have a little suggestion for the documentation. You might want to include a recommendation for compiler versions in the documentation. I had a problem linking to the cula libraries with gcc 4.1 but switching to 4.3 cleared it up. I'm using CentOS 5.3 whose default compiler is 4.1, by the way.
bucknerj
 
Posts: 5
Joined: Wed Aug 19, 2009 3:03 am

Re:gcc 4.1 vs gcc 4.3

Postby dan » Wed Aug 19, 2009 1:42 pm

Thanks for the feedback. So that we can investigate the error further, can you answer the following questions?

- What was the error you encountered?
- Are you using a 32- or 64-bit system?
- Did you attempt to compile with gcc 4.2?
dan
Administrator
 
Posts: 61
Joined: Thu Jul 23, 2009 2:29 pm

Re: gcc 4.1 vs gcc 4.3

Postby mat38 » Fri Aug 21, 2009 6:36 am

what kind of errors did you get ? I think that I have a problem that may be caused by an unappropriate version of gcc.

***********

gcc -o geqrf geqrf.c -DNDEBUG -O3 -I/opt/cula/include -L/opt/cula/lib64 -lcula -lcublas -lcudart -lstdc++
/opt/cula/lib64/libcula.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)'
/opt/cula/lib64/libcula.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)'
collect2: ld returned 1 exit status
make: *** [all] Error 1

******
mat38
 
Posts: 16
Joined: Wed Aug 19, 2009 6:45 am
Location: Grenoble, France

Re: gcc 4.1 vs gcc 4.3

Postby dan » Fri Aug 21, 2009 9:33 am

This problem arises due to differences in the stdc++ runtime between different versions of gcc. Can you try compiling with a newer version of gcc as bucknerj did to see if this gets around the problem?

Note that we've fixed this issue internally and that a fix will be issued in a future beta.
dan
Administrator
 
Posts: 61
Joined: Thu Jul 23, 2009 2:29 pm

Re: gcc 4.1 vs gcc 4.3

Postby mat38 » Sun Aug 23, 2009 11:46 pm

The problem is that I am not allowed to make such changes on the cluster I use. Moreover, compiling a new version of gcc is far from obvious ! I hope this issue would be fixed very soon so that I can try CULA.

Best Regards
mat38
 
Posts: 16
Joined: Wed Aug 19, 2009 6:45 am
Location: Grenoble, France


Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron