This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/11894] gcc cross compiler work with error


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11894



------- Additional Comments From lshulov at arabellasw dot com  2003-08-14 07:06 -------
Subject: Re:  gcc cross compiler work with error

   pinskia at gcc dot gnu dot org wrote:

 >PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
 >
 >http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11894
 >
 >
 >pinskia at gcc dot gnu dot org changed:
 >
 >           What    |Removed                     |Added
 >----------------------------------------------------------------------------
 >           Severity|critical                    |normal
 >          Component|c++                         |bootstrap
 >           Keywords|                            |documentation
 >
 >
 >------- Additional Comments From pinskia at gcc dot gnu dot org 
2003-08-13 11:27 -------
 >I think you need to install the kernel headers into 
${sysroot}/usr/include/linux and that will fix it.
 >If this works, I will keep this open and some documentation for this.
 >
 >
 >
 >------- You are receiving this mail because: -------
 >You reported the bug, or are watching the reporter.
 >
 >
 >
Hi,
I do next folowing links:

${sysroot}/include/linux -> /home/GNU/kernel-2.4.21/include/linux/
${sysroot}/usr/include -> ../include/
${sysroot}include/libio -> /home/GNU/glibc-2.3.2/glibc-2.3.2/libio/

After that get folowing results:
.............
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... no
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
Adding multilib support to Makefile in /home/GNU/gcc-3.3/libiberty
with_multisubdir=nof
make[1]: Entering directory `/home/GNU/obj/gcc/powerpc-linux/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
   mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
   /home/GNU/obj/gcc/gcc/xgcc -B/home/GNU/obj/gcc/gcc/
-B/opt/Arabella/powerpc-linux/bin/ -B/opt/Arabella/powerpc-linux/lib/
-isystem /opt/Arabella/powerpc-linux/include -c -DHAVE_CONFIG_H -O2 -g
-O2 -I. -I/home/GNU/gcc-3.3/libiberty/../include  -W -Wall -Wtraditional
-pedantic  /home/GNU/gcc-3.3/libiberty/regex.c -o pic/regex.o; \
else true; fi
/home/GNU/obj/gcc/gcc/xgcc -B/home/GNU/obj/gcc/gcc/
-B/opt/Arabella/powerpc-linux/bin/ -B/opt/Arabella/powerpc-linux/lib/
-isystem /opt/Arabella/powerpc-linux/include -c -DHAVE_CONFIG_H -O2 -g
-O2 -I. -I/home/GNU/gcc-3.3/libiberty/../include  -W -Wall -Wtraditional
-pedantic /home/GNU/gcc-3.3/libiberty/regex.c -o regex.o
In file included from /home/GNU/gcc-3.3/include/xregex.h:26,
                  from /home/GNU/gcc-3.3/libiberty/regex.c:195:
/home/GNU/gcc-3.3/include/xregex2.h:551: warning: ISO C90 does not
support `static' or type qualifiers in parameter array declarators
In file included from /home/GNU/gcc-3.3/libiberty/regex.c:649:
/home/GNU/gcc-3.3/libiberty/regex.c: In function `byte_regex_compile':
/home/GNU/gcc-3.3/libiberty/regex.c:2473: warning: implicit declaration
of function `free'
/home/GNU/gcc-3.3/libiberty/regex.c:2534: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c:2567: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c:2674: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c:3677: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c:4184: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c: In function `byte_re_compile_fastmap':
/home/GNU/gcc-3.3/libiberty/regex.c:4898: warning: implicit declaration
of function `abort'
/home/GNU/gcc-3.3/libiberty/regex.c: In function `xregcomp':
/home/GNU/gcc-3.3/libiberty/regex.c:8043: warning: signed and unsigned
type in conditional expression
/home/GNU/gcc-3.3/libiberty/regex.c:8082: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c: In function `xregexec':
/home/GNU/gcc-3.3/libiberty/regex.c:8161: warning: function `free' was
previously declared within a block
/home/GNU/gcc-3.3/libiberty/regex.c: In function `xregerror':
/home/GNU/gcc-3.3/libiberty/regex.c:8178: warning: unused parameter `preg'
/home/GNU/gcc-3.3/libiberty/regex.c: In function `xregfree':
/home/GNU/gcc-3.3/libiberty/regex.c:8227: warning: function `free' was
previously declared within a block
if [ x"" != x ]; then \
   /home/GNU/obj/gcc/gcc/xgcc -B/home/GNU/obj/gcc/gcc/
-B/opt/Arabella/powerpc-linux/bin/ -B/opt/Arabella/powerpc-linux/lib/
-isystem /opt/Arabella/powerpc-linux/include -c -DHAVE_CONFIG_H -O2 -g
-O2 -I. -I/home/GNU/gcc-3.3/libiberty/../include  -W -Wall -Wtraditional
-pedantic  /home/GNU/gcc-3.3/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
/home/GNU/obj/gcc/gcc/xgcc -B/home/GNU/obj/gcc/gcc/
-B/opt/Arabella/powerpc-linux/bin/ -B/opt/Arabella/powerpc-linux/lib/
-isystem /opt/Arabella/powerpc-linux/include -c -DHAVE_CONFIG_H -O2 -g
-O2 -I. -I/home/GNU/gcc-3.3/libiberty/../include  -W -Wall -Wtraditional
-pedantic /home/GNU/gcc-3.3/libiberty/cplus-dem.c -o cplus-dem.o
In file included from /home/GNU/gcc-3.3/libiberty/cplus-dem.c:50:
/home/GNU/obj/gcc/gcc/include/stdio.h: In function `libc_hidden_proto':
/home/GNU/obj/gcc/gcc/include/stdio.h:36: error: storage class specified
for parameter `__vscanf'
/home/GNU/obj/gcc/gcc/include/stdio.h:38: error: storage class specified
for parameter `__getline'
/home/GNU/obj/gcc/gcc/include/stdio.h:42: error: storage class specified
for parameter `__vsscanf'
/home/GNU/obj/gcc/gcc/include/stdio.h:45: error: storage class specified
for parameter `__new_tmpfile'
/home/GNU/obj/gcc/gcc/include/stdio.h:46: error: storage class specified
for parameter `__old_tmpfile'
In file included from /home/GNU/gcc-3.3/libiberty/cplus-dem.c:50:
/home/GNU/obj/gcc/gcc/include/stdio.h:55: error: storage class specified
for parameter `__path_search'
/home/GNU/obj/gcc/gcc/include/stdio.h:57: error: storage class specified
for parameter `__gen_tempname'
/home/GNU/obj/gcc/gcc/include/stdio.h:66: error: storage class specified
for parameter `__libc_fatal'
/home/GNU/obj/gcc/gcc/include/stdio.h:69: error: storage class specified
for parameter `__flockfile'
/home/GNU/obj/gcc/gcc/include/stdio.h:72: error: storage class specified
for parameter `__funlockfile'
/home/GNU/obj/gcc/gcc/include/stdio.h:76: error: storage class specified
for parameter `__ftrylockfile'
/home/GNU/obj/gcc/gcc/include/stdio.h:78: error: storage class specified
for parameter `__getc_unlocked'
/home/GNU/obj/gcc/gcc/include/stdio.h:79: error: storage class specified
for parameter `__getwc_unlocked'
/home/GNU/obj/gcc/gcc/include/stdio.h:82: error: storage class specified
for parameter `_sys_errlist_internal'
/home/GNU/obj/gcc/gcc/include/stdio.h:82: error: parse error before
"attribute_hidden"
/home/GNU/obj/gcc/gcc/include/stdio.h:82: error: declaration for
parameter `_sys_errlist_internal' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:79: error: declaration for
parameter `__getwc_unlocked' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:78: error: declaration for
parameter `__getc_unlocked' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:76: error: declaration for
parameter `__ftrylockfile' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:72: error: declaration for
parameter `__funlockfile' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:69: error: declaration for
parameter `__flockfile' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:66: error: declaration for
parameter `__libc_fatal' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:57: error: declaration for
parameter `__gen_tempname' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:55: error: declaration for
parameter `__path_search' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:46: error: declaration for
parameter `__old_tmpfile' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:45: error: declaration for
parameter `__new_tmpfile' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:42: error: declaration for
parameter `__vsscanf' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:38: error: declaration for
parameter `__getline' but no such parameter
/home/GNU/obj/gcc/gcc/include/stdio.h:36: error: declaration for
parameter `__vscanf' but no such parameter
In file included from /home/GNU/gcc-3.3/libiberty/cplus-dem.c:53:
/opt/Arabella/powerpc-linux/include/stdlib.h: At top level:
/opt/Arabella/powerpc-linux/include/stdlib.h:99: error: ISO C forbids
data definition with no type or storage class
In file included from /home/GNU/gcc-3.3/libiberty/cplus-dem.c:53:
/opt/Arabella/powerpc-linux/include/stdlib.h:762: error: parse error
before "div"
/opt/Arabella/powerpc-linux/include/stdlib.h:763: error: ISO C forbids
data definition with no type or storage class
make[1]: *** [cplus-dem.o] Error 1
make[1]: Leaving directory `/home/GNU/obj/gcc/powerpc-linux/libiberty'
make: *** [all-target-libiberty] Error 2

I do twice: with --with-headers= and --with-sysroot= and get one and
sameb thing.


Best regards,
Leonid


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]