GCC 4.0.2 Chroot Build Unable to Find Headers
When building GCC 4.0.2, make fails with this error:
Code:
/sources/gcc-build/gcc/xgcc -B/sources/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-4.0.2/gcc -I../../gcc-4.0.2/gcc/. -I../../gcc-4.0.2/gcc/../include -I../../gcc-4.0.2/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \ |
"Some locales installed by the make localedata/install-locales command above are not properly
supported by some applications that are in the LFS and BLFS books. Because of the various problems that arise due to application programmers making assumptions that break in such locales, LFS should not be used in locales that utilize multibyte character sets (including UTF-8) or right-to-left writing order." - LFS-BOOK 6.11. Glibc-2.3.4 I suppose that can be applicable to includes as well. |
I am also having same problem.plz help me
|
Wait a minute I just noticed your useing a GCC 4.0 instead of 3.4. The book dosent cover that.
But if your going to try this you might have to ask the GCC developers some questions to get it working. |
also having this problem
hi... here is my program "teste.c"
#include <iostream> #include <string> using namespace std; int main(int argc, char** argv) { string name; if (argc > 1) name = argv[1]; else cin >> name; cout << "Hello, " + name +"\n"; return 0; } here is the results :~$ gcc teste.c -o teste teste.c:1:20: error: iostream: Arquivo ou diretório não encontrado teste.c:2:18: error: string: Arquivo ou diretório não encontrado teste.c:3: error: syntax error before 'namespace' teste.c:3: warning: data definition has no type or storage class teste.c: In function 'main': teste.c:6: error: 'string' undeclared (first use in this function) teste.c:6: error: (Each undeclared identifier is reported only once teste.c:6: error: for each function it appears in.) teste.c:6: error: syntax error before 'name' teste.c:7: error: 'name' undeclared (first use in this function) teste.c:8: error: 'cin' undeclared (first use in this function) teste.c:9: error: 'cout' undeclared (first use in this function) ("Arquivo ou diretório não encontrado" means " No such file or directory" in portuguese) if it helps.. ~$ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9) help me!!!! |
Quote:
with that change, your test program compiles fine on my machine. using gcc, i got the same errors you did. |
All times are GMT -5. The time now is 11:03 PM. |