Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error (ubuntu 12.04 64) - variable declarations #6

Closed
qiemem opened this issue Apr 20, 2012 · 2 comments
Closed

Build error (ubuntu 12.04 64) - variable declarations #6

qiemem opened this issue Apr 20, 2012 · 2 comments

Comments

@qiemem
Copy link

qiemem commented Apr 20, 2012

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
Copy link
Contributor

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.

paulhodge added a commit that referenced this issue Apr 21, 2012
Add #include "unistd.h"
Remove obsolete types/rect.cpp
Add #include to static_error.cpp
circa.h has a MSVC alternative for stdbool
@paulhodge
Copy link
Contributor

Closing as resolved, I was able to build 8c80787 using: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants