public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* cross build gcc 4.0/4.1 fail
@ 2005-10-09  4:57 Cauchy Song
  2005-10-12 22:00 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Cauchy Song @ 2005-10-09  4:57 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 9930 bytes --]

cross building latest gcc under latest debian sarge x86 box:

gcc-3.4-branch:
success: --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=i686-pc-mingw32 --enable-languages=c,c++,f77
success: --build=i686-pc-linux-gnu --host=i686-pc-mingw32
--target=i686-pc-mingw32   --enable-languages=c,c++,f77

gcc-4.0-branch:
success: --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=i686-pc-mingw32 --enable-languages=c,c++,f95
fail:    --build=i686-pc-linux-gnu --host=i686-pc-mingw32
--target=i686-pc-mingw32   --enable-languages=c,c++

trunk(gcc-4.1):
fail:    --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=i686-pc-mingw32 --enable-languages=c,c++,f95
fail:    --build=i686-pc-linux-gnu --host=i686-pc-mingw32
--target=i686-pc-mingw32

gcc-4.0-branch error message:
...
make[1]: Entering directory `/sda2/mingw32/objs/gcc'
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/bin
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/include
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/info
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/man/man1
/bin/sh /opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs
/usr/win32-native/man/man7
rm -f /usr/win32-native/bin/g++-4.0.exe
/usr/bin/install -c g++.exe /usr/win32-native/bin/g++-4.0.exe
chmod a+x /usr/win32-native/bin/g++-4.0.exe
rm -f /usr/win32-native/bin/c++-4.0.exe
( cd /usr/win32-native/bin && \
      ln g++-4.0.exe c++-4.0.exe )
if [ -f cc1plus.exe ] ; then \
  if [ -f g++-cross.exe ] ; then \
    if [ -d
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/../../../../i686-pc-mingw32/bin/.
] ; then \
      rm -f
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/../../../../i686-pc-mingw32/bin/g++.exe;
\
      /usr/bin/install -c g++-cross.exe
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/../../../../i686-pc-mingw32/bin/g++.exe;
\
      rm -f
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/../../../../i686-pc-mingw32/bin/c++.exe;
\
      ( cd
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/../../../../i686-pc-mingw32/bin
&& \
        ln g++.exe c++.exe ); \
    else true; fi; \
  else \
    rm -f /usr/win32-native/bin/i686-pc-mingw32-g++-4.0.exe; \
    ( cd /usr/win32-native/bin && \
      ln g++-4.0.exe i686-pc-mingw32-g++-4.0.exe ); \
    rm -f /usr/win32-native/bin/i686-pc-mingw32-c++-4.0.exe; \
    ( cd /usr/win32-native/bin && \
      ln c++-4.0.exe i686-pc-mingw32-c++-4.0.exe ); \
  fi ; \
fi
for file in cc1.exe  cc1plus.exe; do \
  if [ -f $file ] ; then \
    rm -f /usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/$file; \
    /usr/bin/install -c $file
/usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/$file; \
  else true; \
  fi; \
done
for file in    ..; do \
  if [ x"$file" != x.. ]; then \
    rm -f /usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/$file; \
    /usr/bin/install -c $file
/usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/$file; \
  else true; fi; \
done
for file in  ..; do \
  if [ x"$file" != x.. ]; then \
    rm -f /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/$file; \
    /usr/bin/install -c -m 644 $file
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/$file; \
    chmod a-x /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/$file; \
  else true; fi; \
done
rm -f /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/specs
if [ -f protoize.exe ]; then \
  rm -f /usr/win32-native/bin/protoize-4.0.exe; \
  /usr/bin/install -c protoize.exe /usr/win32-native/bin/protoize-4.0.exe; \
  rm -f /usr/win32-native/bin/unprotoize-4.0.exe; \
  /usr/bin/install -c unprotoize.exe
/usr/win32-native/bin/unprotoize-4.0.exe; \
  rm -f /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/SYSCALLS.c.X; \
  /usr/bin/install -c -m 644 SYSCALLS.c.X
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/SYSCALLS.c.X; \
  chmod a-x /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/SYSCALLS.c.X; \
fi
if [ -f gcov.exe ]; \
then \
    rm -f /usr/win32-native/bin/gcov-4.0.exe; \
    /usr/bin/install -c gcov.exe /usr/win32-native/bin/gcov-4.0.exe; \
fi
/usr/bin/install -c gccbug /usr/win32-native/bin/gccbug-4.0
rm -rf /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include
mkdir /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include
chmod a+rx /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include
(cd `${PWDCMD-pwd}`/include ; \
 tar -cf - .; exit 0) | (cd
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include; tar xpf - )
files=`cd /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include; find
. -type l -print 2>/dev/null`; \
if [ $? -eq 0 ]; then \
  dir=`cd include; ${PWDCMD-pwd}`; \
  for i in $files; do \
    dest=`ls -ld
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include/$i | sed -n
's/.*-> //p'`; \
    if expr "$dest" : "$dir.*" > /dev/null; then \
      rm -f /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include/$i; \
      ln -s `echo $i | sed "s|/[^/]*|/..|g" | sed 's|/..$||'``echo
"$dest" | sed "s|$dir||"`
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/include/$i; \
    fi; \
  done; \
fi
for file in /opt/cvs_work/gcc40-branch/gcc/ginclude/float.h
/opt/cvs_work/gcc40-branch/gcc/ginclude/iso646.h
/opt/cvs_work/gcc40-branch/gcc/ginclude/stdarg.h
/opt/cvs_work/gcc40-branch/gcc/ginclude/stdbool.h
/opt/cvs_work/gcc40-branch/gcc/ginclude/stddef.h
/opt/cvs_work/gcc40-branch/gcc/ginclude/varargs.h
/opt/cvs_work/gcc40-branch/gcc/unwind.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/mmintrin.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/mm3dnow.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/xmmintrin.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/emmintrin.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/pmmintrin.h mm_malloc.h; do \
  realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
  /usr/bin/install -c -m 644 $file \
   
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/include/$realfile
; \
done
/usr/bin/install -c -m 644 xlimits.h
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/include/limits.h
/usr/bin/install -c -m 644 /opt/cvs_work/gcc40-branch/gcc/gsyslimits.h \
  /usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/gsyslimits.h
/usr/bin/install -c -m 644 macro_list
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/macro_list
if [ x != x ] ; then \
  /usr/bin/install -c /bin/sh
/opt/cvs_work/gcc40-branch/gcc/../mkinstalldirs \
       
/usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/install-tools/mkinstalldirs
; \
  /usr/bin/install -c /opt/cvs_work/gcc40-branch/gcc/fixproto
/usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/install-tools/fixproto
; \
  /usr/bin/install -c build/fix-header \
       
/usr/win32-native/libexec/gcc/i686-pc-mingw32/4.0.3/install-tools/fix-header
; \
else :; fi
echo 'SYSTEM_HEADER_DIR="'"/usr/include"'"' \
        >
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/mkheaders.conf
echo 'OTHER_FIXINCLUDES_DIRS=""' \
>>
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/mkheaders.conf
echo 'FIXPROTO_DEFINES=""' \
>>
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/mkheaders.conf
echo 'STMP_FIXPROTO=""' \
>>
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/mkheaders.conf
echo 'STMP_FIXINC="stmp-fixinc"' \
>>
/usr/win32-native/lib/gcc/i686-pc-mingw32/4.0.3/install-tools/mkheaders.conf
make \
  CFLAGS="-O2 -g0 -pipe -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition  " \
  CONFIG_H="tconfig.h
/opt/cvs_work/gcc40-branch/gcc/../include/ansidecl.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/xm-mingw32.h" TM_H="tm.h     
/opt/cvs_work/gcc40-branch/gcc/config/i386/i386.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/unix.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/bsd.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/gas.h
/opt/cvs_work/gcc40-branch/gcc/config/dbxcoff.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/cygming.h
/opt/cvs_work/gcc40-branch/gcc/config/i386/mingw32.h
/opt/cvs_work/gcc40-branch/gcc/defaults.h insn-constants.h insn-flags.h" \
  INCLUDES="-I. -I. -I/opt/cvs_work/gcc40-branch/gcc
-I/opt/cvs_work/gcc40-branch/gcc/.
-I/opt/cvs_work/gcc40-branch/gcc/../include
-I/opt/cvs_work/gcc40-branch/gcc/../libcpp/include " \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/sda2/mingw32/objs/gcc'
i686-pc-mingw32-gcc -O2
-I/opt/cvs_work/gcc40-branch/gcc/../winsup/w32api/include -DIN_GCC    -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I/opt/cvs_work/gcc40-branch/gcc -I/opt/cvs_work/gcc40-branch/gcc/.
-I/opt/cvs_work/gcc40-branch/gcc/../include
-I/opt/cvs_work/gcc40-branch/gcc/../libcpp/include  -DL_muldi3 -c
/opt/cvs_work/gcc40-branch/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from /opt/cvs_work/gcc40-branch/gcc/libgcc2.c:56:
/opt/cvs_work/gcc40-branch/gcc/libgcc2.h:34: warning: ignoring #pragma
GCC visibility
/opt/cvs_work/gcc40-branch/gcc/libgcc2.h:117: error: no data type for
mode `SC'
/opt/cvs_work/gcc40-branch/gcc/libgcc2.h:121: error: no data type for
mode `DC'
/opt/cvs_work/gcc40-branch/gcc/libgcc2.h:125: error: no data type for
mode `XC'
In file included from /opt/cvs_work/gcc40-branch/gcc/libgcc2.c:56:
/opt/cvs_work/gcc40-branch/gcc/libgcc2.h:392: warning: ignoring #pragma
GCC visibility
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/sda2/mingw32/objs/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/sda2/mingw32/objs/gcc'
make: *** [install-gcc] Error 2


Thanks for some help


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cross build gcc 4.0/4.1 fail
  2005-10-09  4:57 cross build gcc 4.0/4.1 fail Cauchy Song
@ 2005-10-12 22:00 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2005-10-12 22:00 UTC (permalink / raw)
  To: Cauchy Song; +Cc: gcc

Cauchy Song wrote:
> i686-pc-mingw32-gcc -O2
>...
> /opt/cvs_work/gcc40-branch/gcc/libgcc2.c -o libgcc/./_muldi3.o
> In file included from /opt/cvs_work/gcc40-branch/gcc/libgcc2.c:56:
> /opt/cvs_work/gcc40-branch/gcc/libgcc2.h:34: warning: ignoring #pragma
> GCC visibility
> /opt/cvs_work/gcc40-branch/gcc/libgcc2.h:117: error: no data type for
> mode `SC'

Perhaps you are using the wrong cross-compiler for this canandian cross 
build?  You can check by adding -v to the above compiler command.

When building a canadian cross, you must use a cross compiler of the 
same gcc version.  In this case, the i686-pc-mingw32-gcc must be built 
from the same gcc-4.0-branch sources you are using for the canadian 
cross build.

You should consider using --prefix options so that each gcc version gets 
installed in a different place.  This will help avoid confusion about 
gcc versions.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-12 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-09  4:57 cross build gcc 4.0/4.1 fail Cauchy Song
2005-10-12 22:00 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).