wilson@archive cpp > rake build
(in /home/wilson/cpp)
gcc -Ivm/external_libs/libtommath -Ivm/external_libs/onig -Ivm/external_libs/libffi/include -Ivm/external_libs/libltdl -Ivm/external_libs/libev -Ivm/external_libs/llvm/include -Ivm/test/cxxtest -Ivm -I. -Wall -Wmissing-declarations -ggdb -gdwarf-2 -I/home/wilson/cpp/vm/external_libs/llvm/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -fomit-frame-pointer -c -o vm/objectmemory.o vm/objectmemory.cpp 2>&1
In file included from vm/objectmemory.hpp:4,
from vm/objectmemory.cpp:4:
vm/object.hpp:94: error: explicit template specialization cannot have a storage class
vm/object.hpp:101: error: explicit template specialization cannot have a storage class
vm/object.hpp:118: error: explicit template specialization cannot have a storage class
In file included from vm/objectmemory.hpp:7,
from vm/objectmemory.cpp:4:
vm/objects.hpp:52: error: explicit template specialization cannot have a storage class
In file included from vm/objectmemory.cpp:6:
vm/builtin/class.hpp:100: error: explicit template specialization cannot have a storage class
In file included from vm/objectmemory.cpp:7:
vm/builtin/fixnum.hpp:182: error: explicit template specialization cannot have a storage class
vm/builtin/fixnum.hpp:191: error: explicit template specialization cannot have a storage class
vm/builtin/fixnum.hpp:196: error: explicit template specialization cannot have a storage class
vm/objectmemory.cpp: In member function ‘rubinius::Object* rubinius::ObjectMemory::allocate_bytes(size_t)’:
vm/objectmemory.cpp:139: warning: suggest parentheses around + or - in operand of &
vm/objectmemory.cpp: In member function ‘rubinius::Object* rubinius::ObjectMemory::new_object_bytes(rubinius::Class*, size_t)’:
vm/objectmemory.cpp:178: warning: suggest parentheses around + or - in operand of &
rake aborted!
Command failed with status (1): [gcc -Ivm/external_libs/libtommath -Ivm/ext...]
(See full trace by running task with --trace)
wilson@archive cpp > git diff |cat
diff --git a/rakelib/vm.rake b/rakelib/vm.rake
index d7b0e43..73a652b 100644
--- a/rakelib/vm.rake
+++ b/rakelib/vm.rake
@@ -40,7 +40,7 @@ OPTIONS = {
}
INCLUDES = (EX_INC + %w[vm/test/cxxtest vm .]).map { |f| "-I#{f}" }
-FLAGS = %w(-Wall -ggdb -gdwarf-2)
+FLAGS = %w(-Wall -Wmissing-declarations -ggdb -gdwarf-2)
CC = ENV['CC'] || "gcc"