Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

compilation fails (due to __attribute__) with distcc

dpinol
Beginner
258 Views

Hi,

we're currently deploying distcc2.18.3 for OpenSuse 10.2. I've been able to make it work with different gcc versions, but with intel compiler I always get the compilation error below.

/usr/include/c++/4.2.1/i586-suse-linux/bits/c++config.h(149): error: expected a "{"

namespace std __attribute__ ((__visibility__ ("default"))) {

My compilation command is

distcc /opt/intel/cc/10.1.018//bin/icpc

Any idea how to fix it?

Thanks

0 Kudos
1 Reply
TimP
Honored Contributor III
258 Views
Quoting - dpinol

Hi,

we're currently deploying distcc2.18.3 for OpenSuse 10.2. I've been able to make it work with different gcc versions, but with intel compiler I always get the compilation error below.

/usr/include/c++/4.2.1/i586-suse-linux/bits/c++config.h(149): error: expected a "{"

namespace std __attribute__ ((__visibility__ ("default"))) {

My compilation command is

distcc /opt/intel/cc/10.1.018//bin/icpc

Any idea how to fix it?

Thanks

icpc 11.0 should have better support for recent g++ versions. If this still doesn't work with 11.0, I suggest filing a problem report on your premier.intel.com account. As I don't have the 32-bit OpenSuSE installed, I can't see a header like that; sometimes it is possible to edit headers back to something more like SLES10.

0 Kudos
Reply