wang1986one / sparsehash

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

Error compiling with ICC #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

$./configure CC=icc CXX=icpc --prefix=$PWD/local 
CPPFLAGS="-wr177,279,1224,10006  "
$make

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

I expect it to compile.
I get the following log:

[ -d src/google/sparsehash ] || mkdir -p src/google/sparsehash
echo "/*" > src/google/sparsehash/_sparsehash_config
echo " * NOTE: This file is for internal use only." >> 
src/google/sparsehash/_sparsehash_config
echo " *       Do not use these #defines in your own program!" >> 
src/google/sparsehash/_sparsehash_config
echo " */" >> src/google/sparsehash/_sparsehash_config
gawk '{prevline=currline; currline=$0;} \
            /^#/ {in_second_file = 1;} \
            !in_second_file {if (currline !~ /^ *$/) {inc[currline]=0}}; \
            in_second_file { for (i in inc) { \
                               if (index(currline, i) != 0) { \
                                  print "\n"prevline"\n"currline; \
                                  delete inc[i]; \
                               } \
                             } }' \
    ./src/config.h.include ./src/config.h \
    >> src/google/sparsehash/_sparsehash_config
mv -f src/google/sparsehash/_sparsehash_config 
src/google/sparsehash/sparseconfig.h
make  all-am
make[1]: Entering directory 
`/usr/users/tgac/ramirezr/software/sparsehash-1.8.1_icc'
if icpc -DHAVE_CONFIG_H -I. -I. -I./src  -I./src -std=c++0x 
-wr177,279,1224,10006   -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow 
-g -O2 -MT type_traits_unittest.o -MD -MP -MF ".deps/type_traits_unittest.Tpo" 
-c -o type_traits_unittest.o `test -f 'src/type_traits_unittest.cc' || echo 
'./'`src/type_traits_unittest.cc; \
    then mv -f ".deps/type_traits_unittest.Tpo" ".deps/type_traits_unittest.Po"; else rm -f ".deps/type_traits_unittest.Tpo"; exit 1; fi
icpc: command line remark #10006: ignoring unknown option '-W'
icpc -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o 
type_traits_unittest  type_traits_unittest.o    
icpc: command line warning #10006: ignoring unknown option '-W'
if icpc -DHAVE_CONFIG_H -I. -I. -I./src  -I./src -std=c++0x 
-wr177,279,1224,10006   -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow 
-g -O2 -MT libc_allocator_with_realloc_test.o -MD -MP -MF 
".deps/libc_allocator_with_realloc_test.Tpo" -c -o 
libc_allocator_with_realloc_test.o `test -f 
'src/libc_allocator_with_realloc_test.cc' || echo 
'./'`src/libc_allocator_with_realloc_test.cc; \
    then mv -f ".deps/libc_allocator_with_realloc_test.Tpo" ".deps/libc_allocator_with_realloc_test.Po"; else rm -f ".deps/libc_allocator_with_realloc_test.Tpo"; exit 1; fi
icpc: command line remark #10006: ignoring unknown option '-W'
icpc -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o 
libc_allocator_with_realloc_test  libc_allocator_with_realloc_test.o   
icpc: command line warning #10006: ignoring unknown option '-W'
if icpc -DHAVE_CONFIG_H -I. -I. -I./src  -I./src -std=c++0x 
-wr177,279,1224,10006   -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow 
-g -O2 -MT sparsetable_unittest.o -MD -MP -MF ".deps/sparsetable_unittest.Tpo" 
-c -o sparsetable_unittest.o `test -f 'src/sparsetable_unittest.cc' || echo 
'./'`src/sparsetable_unittest.cc; \
    then mv -f ".deps/sparsetable_unittest.Tpo" ".deps/sparsetable_unittest.Po"; else rm -f ".deps/sparsetable_unittest.Tpo"; exit 1; fi
icpc: command line remark #10006: ignoring unknown option '-W'
icpc -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2   -o 
sparsetable_unittest  sparsetable_unittest.o    
icpc: command line warning #10006: ignoring unknown option '-W'
if icpc -DHAVE_CONFIG_H -I. -I. -I./src  -I./src -std=c++0x 
-wr177,279,1224,10006   -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow 
-g -O2 -MT hashtable_test.o -MD -MP -MF ".deps/hashtable_test.Tpo" -c -o 
hashtable_test.o `test -f 'src/hashtable_test.cc' || echo 
'./'`src/hashtable_test.cc; \
    then mv -f ".deps/hashtable_test.Tpo" ".deps/hashtable_test.Po"; else rm -f ".deps/hashtable_test.Tpo"; exit 1; fi
icpc: command line remark #10006: ignoring unknown option '-W'
src/hashtable_test.cc(1722): error: <typeinfo> must be included before typeid 
is used
    cout << "sizeof(" << typeid(TypeParam).name() << "): "
                         ^
          detected during instantiation of "<unnamed>::TEST_onetype_HashtableAllTest_ClassSizes<TypeParam>::TEST_onetype_HashtableAllTest_ClassSizes() [with TypeParam=<unnamed>::HashtableAllTest_type1]" at line 1721

src/hashtable_test.cc(1722): error: incomplete type is not allowed
    cout << "sizeof(" << typeid(TypeParam).name() << "): "
                         ^
compilation aborted for src/hashtable_test.cc (code 2)
make[1]: *** [hashtable_test.o] Error 1
make[1]: Leaving directory 
`/usr/users/tgac/ramirezr/software/sparsehash-1.8.1_icc'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
google-sparsehash-1.8.1
icpc Version 12.0.2
RedHat 6

Original issue reported on code.google.com by homo.nec...@gmail.com on 27 Apr 2011 at 2:30

GoogleCodeExporter commented 9 years ago
I believe this is fixed at svn-root.  It will be part of the next sparsehash 
release.

Original comment by csilv...@gmail.com on 28 Apr 2011 at 9:49

GoogleCodeExporter commented 9 years ago
This should be fixed in sparsehash 1.11, just released.

Original comment by csilv...@gmail.com on 24 Jun 2011 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by csilv...@gmail.com on 24 Jun 2011 at 4:43