zeusdeux / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

compile failure: Intel Compiler icpc 12.0.5 20110719 #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Build re2 using icpc.

What is the expected output? What do you see instead?
The library should build fine, instead I get lot of errors about variadic 
template arguments. Output looks like:

/home/myhome/apps/gcc-4.6.1/include/c++/4.6.1/tr1/type_traits(251): error: 
expected an identifier
    template<typename _Res, typename... _ArgTypes>
                                    ^

/home/myhome/apps/gcc-4.6.1/include/c++/4.6.1/tr1/type_traits(252): error: 
expected a ")"
      struct is_function<_Res(_ArgTypes......) const volatile>
                              ^

/home/myhome/apps/gcc-4.6.1/include/c++/4.6.1/tr1/type_traits(252): error: 
expected a ">"
      struct is_function<_Res(_ArgTypes......) const volatile>
                                               ^

/home/myhome/apps/gcc-4.6.1/include/c++/4.6.1/tr1/type_traits(676): error: 
invalid alignment value specified by attribute
    struct __attribute__((__aligned__((_Align)))) { } __align; 

but it's way longer than this. re2 version I was using before updating was from 
around the 22nd October 2010, and it could be built successfully.

What version of the product are you using? On what operating system?
hg tip reports changeset 65:a9f0eaee31d7. Operating system is Mandriva Linux 
2011, icpc version is 12.0.5 20110719.

Please provide any additional information below.
Intel compiler doesn't fully support C++0x yet. Still, it relies on gcc header 
files in order to implement standard C++ features, and using some specific 
unsupported inclusion files breaks the build.
Adding a workaround to this limitation would be nice while we wait for Intel to 
fix their compiler. I'm not sure about what code is currently invoking the 
broken type_traits, though.

Original issue reported on code.google.com by mich...@gmx.tm on 7 Sep 2011 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by rsc@golang.org on 10 Jan 2014 at 1:14

GoogleCodeExporter commented 9 years ago

Original comment by rsc@golang.org on 10 Jan 2014 at 3:07

GoogleCodeExporter commented 9 years ago
RE2 has moved to GitHub. I have not moved the issues over. If this issue is 
still important to you, please file a new one at 
https://github.com/google/re2/issues. Thank you.

Original comment by rsc@golang.org on 11 Dec 2014 at 4:45