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 c++/11894] New: 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

           Summary: gcc cross compiler work with error
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lshulov at arabellasw dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc
  GCC host triplet: ibm PC, Debian Linux
GCC target triplet: powerpc

My configuration:
binutils_2.14.90.0.5 with binutils_2.14.90.0.5-0.2.diff:
/home/GNU/binutils-2.14/configure --target=powerpc-linux --prefix=/opt/Arabella
--libdir=/opt/Arabella/powerpc-linux --enable-shared --with-ghu-as --with-gnu-ld
make; make install

gcc: step 1: gcc-3.3_3.3.1ds3 with gcc-3.3_3.3.1ds3-1.diff:
CFLAGS="-O2 -Dinhibit_libc" /home/GNU/gcc-3.3/configure \
--target=powerpc-linux --prefix=/opt/Arabella --enable-languages=c \
--disable-shared --disable-multilib --enable-threads=single \
--with-ghu-as --with-gnu-ld
make; make install

glibc: glibc_2.3.2 with glibc_2.3.2-2.diff:
CC=powerpc-linux-gcc /home/GNU/glibc-2.3.2/glibc-2.3.2/configure \
--build=i686-pc-linux-gnu --host=powerpc-linux \
--prefix=/opt/Arabella/powerpc-linux --enable-add-ons \
--with-headers=/home/GNU/kernel-2.4.21/include
make; make install

gcc step2:
/home/GNU/gcc-3.3/configure \
--target=powerpc-linux --prefix=/opt/Arabella --enable-languages=c,c++ \
--enable-threads=posix --with-headers=/home/GNU/glibc-2.3.2/glibc-2.3.2/include \
--with-ghu-as --with-gnu-ld
make

gcc step2 Log file:
........
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='/home/GNU/gcc-3.3/gcc/mkmap-symver.awk' \
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='/home/GNU/gcc-3.3/gcc/libgcc-std.ver
/home/GNU/gcc-3.3/gcc/config/libgcc-glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
mkinstalldirs='/bin/sh /home/GNU/gcc-3.3/gcc/mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TM_DEFINES="" \
HEADERS="ansidecl.h  rs6000/rs6000.h dbxelf.h elfos.h svr4.h freebsd-spec.h
rs6000/sysv4.h rs6000/linux.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh /home/GNU/gcc-3.3/gcc/mkconfig.sh tconfig.h
/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 -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I.
-I. -I/home/GNU/gcc-3.3/gcc -I/home/GNU/gcc-3.3/gcc/.
-I/home/GNU/gcc-3.3/gcc/config -I/home/GNU/gcc-3.3/gcc/../include  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -msdata=none \
   -c /home/GNU/gcc-3.3/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from /home/GNU/gcc-3.3/gcc/tsystem.h:72,
                 from /home/GNU/gcc-3.3/gcc/crtstuff.c:62:
/home/GNU/obj/gcc/gcc/include/stdio.h:19:27: libio/stdio.h: No such file or
directory
In file included from /home/GNU/gcc-3.3/gcc/tsystem.h:72,
                 from /home/GNU/gcc-3.3/gcc/crtstuff.c:62:
/home/GNU/obj/gcc/gcc/include/stdio.h:27: error: parse error before "_G_va_list"
/home/GNU/obj/gcc/gcc/include/stdio.h:29: error: parse error before '*' token
/home/GNU/obj/gcc/gcc/include/stdio.h: In function `libc_hidden_proto':
/home/GNU/obj/gcc/gcc/include/stdio.h:35: error: parse error before "_G_va_list"
/home/GNU/obj/gcc/gcc/include/stdio.h:36: error: storage class specified for
parameter `__vscanf'
/home/GNU/obj/gcc/gcc/include/stdio.h:37: error: storage class specified for
parameter `_IO_ssize_t'
/home/GNU/obj/gcc/gcc/include/stdio.h:37: error: parse error before "__getline"
/home/GNU/obj/gcc/gcc/include/stdio.h:37: error: declaration for parameter
`_IO_ssize_t' 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 /opt/Arabella/powerpc-linux/include/sys/types.h:31,
                 from /home/GNU/gcc-3.3/gcc/tsystem.h:75,
                 from /home/GNU/gcc-3.3/gcc/crtstuff.c:62:
/opt/Arabella/powerpc-linux/include/bits/types.h: At top level:
/opt/Arabella/powerpc-linux/include/bits/types.h:181: error: parse error before
"__loff_t"
/opt/Arabella/powerpc-linux/include/bits/types.h:182: error: parse error before
'*' token
In file included from /home/GNU/gcc-3.3/gcc/tsystem.h:75,
                 from /home/GNU/gcc-3.3/gcc/crtstuff.c:62:


Help me please
with all Regards


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