Build error (ubuntu 12.04 64) - variable declarations
qiemem opened this issue · 2 comments
qiemem commented
The interesting part of the build output is:
g++ -o build/release/src/generated/all_builtin_functions.o -c -ggdb -Wall -O1 -Iinclude build/release/src/generated/all_builtin_functions.cpp
In file included from build/release/src/generated/all_builtin_functions.cpp:1:0:
build/release/src/generated/../functions/static_error.cpp:6:16: error: variable or field 'setup' declared void
build/release/src/generated/../functions/static_error.cpp:6:16: error: 'Branch' was not declared in this scope
build/release/src/generated/../functions/static_error.cpp:6:24: error: 'kernel' was not declared in this scope
g++ -o build/release/src/generated/all_builtin_types.o -c -ggdb -Wall -O1 -Iinclude build/release/src/generated/all_builtin_types.cpp
scons: *** [build/release/src/generated/all_builtin_functions.o] Error 1
scons: building terminated because of errors.
g++ info:
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4)
I don't see anything obvious, but I don't know c++ very well at all. Let me know if you need any more information!
paulhodge commented
Nice helpful report. I think gcc and clang disagree about whether #included symbols are exposed when #including a CPP file. I'll go through with gcc and fix the missing includes.