This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Thanks! I haven't had a chance to try running the crosstool build script on cygwin myself yet, but I appreciate the heads-up. None of the errors look particularly familiar. For what it's worth, here are the two patches I think I needed to build gcc-3.0.2 on cygwin: http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01388.html plus a patch to autoconf2.13: --- /usr/share/autoconf2.13/acgeneral.m4.orig Thu Aug 22 18:26:58 2002 +++ acgeneral.m4 Thu Aug 22 19:03:12 2002 @@ -1510,11 +1510,13 @@ EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then [$2]=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - [$3]=no - else - [$3]=yes + if test "$[$3]" != yes; then + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + [$3]=no + else + [$3]=yes + fi fi else echo "configure: failed program was:" >&AC_FD_CC and, having patched autoconf2.13, I then had to regenerate libiberty/configure. I'll attach the resulting configure script. I then had to do echo "ac_cv_prog_cc_cross=yes" > powerpc-linux/config.cache in build-gcc before running gcc's configure. I dunno if any of that will be needed in more recent versions. - Dan -----Original Message----- From: xxx To: Dan Kegel Sent: 12.06.2003 05:30 Subject: Re: crossgcc hosted on win2k CygWin target=linux I did 3 test runs of the demo script on a Pentium WinXP box loaded with the latest Cygwin distro. The three configurations were: [A] i686.dat + gcc3.3-glibc2.3.2.dat [B] i686.dat + gcc2.95.3-glibc2.2.2.dat [C] i686.dat + gcc3.2.3-glibc2.2.5.dat In each case, I emptied out the tarballs directory so that it would be a fresh/complete run of the script. {May sound silly, but I had other reasons for this.} All three of the builds ended with different errors, which I'll try to describe below. In summary: [A] : build-glibc-headers: mv fail on sysd_syscallsT [B] : build-glibc linker fail (no open, close, etc) [C] : build-gcc-core link fail (the mempcpy err) I've not identified the causes of any of these errors, nor have I tried any fixes; at this point, I'm just reporting them. If you have suggestions on things I should investigate/try, let me know; I'll give it a whirl. *** i686.dat + gcc3.3-glibc2.3.2.dat *** This one looks like it made it the furthest before it died. the build directories for binutils, glibc-headers, gcc-core, and glibc were present. Looks like it died in the glibc-headers build. Tail of the output was: echo 'sysd-rules-done = t') > /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i6 86-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers/sysd-rulesT mv -f /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c- 3.3-glibc-2.3.2/build-glibc-headers/sysd-rulesT /cygdrive/c/cygwin/usr/src/cross tool-0.7/build/i686-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc-he aders/sy sd-rules for dir in /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu /gcc-3.3-glibc-2.3.2/build-glibc-headers sysdeps/i386/elf sysdeps/unix/sysv/linu x/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sy sdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i4 86 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sys deps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf s ysdeps/generic; do \ test -f $dir/syscalls.list && \ { /bin/sh.exe sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \ test $dir = sysdeps/unix && break; \ done > /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c -3.3-glibc-2.3.2/build-glibc-headers/sysd-syscallsT mv -f /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c- 3.3-glibc-2.3.2/build-glibc-headers/sysd-syscallsT /cygdrive/c/cygwin/usr/src/cr osstool-0.7/build/i686-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc -headers /sysd-syscalls mv: cannot stat `/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-lin ux-gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers/sysd-syscallsT': No such file or directory make[1]: *** [/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux- gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers/sysd-syscalls] Error 1 make[1]: Leaving directory `/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686- unknown-linux-gnu/gcc-3.3-glibc-2.3.2/glibc-2.3.2' make: *** [sysdeps/gnu/errlist.c] Error 2 Now, when I looked, there was a sysd-syscalls file already in the directory (163 kB), and (as reported) no sysd-syscallsT file. So, I tried just going up into that build-glibc-headers and executing 'make' again to see if it would finish sucessfully. It did not, ending with this: ../sysdeps/i386/fpu/s_copysign.S: Assembler messages: ../sysdeps/i386/fpu/s_copysign.S:10: Warning: .type pseudo-op used outside of .d ef/.endef ignored. ../sysdeps/i386/fpu/s_copysign.S:10: Warning: rest of line ignored; first ignore d character is `_' ../sysdeps/i386/fpu/s_copysign.S:19: Warning: .size pseudo-op used outside of .d ef/.endef ignored. ../sysdeps/i386/fpu/s_copysign.S:19: Warning: rest of line ignored; first ignore d character is `_' gcc ../sysdeps/ieee754/dbl-64/s_modf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict -prototypes -Wwrite-strings -g -fPIC -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I. -I/cygdrive/c/cygwin/usr/src/cro sstool-0.7/build/i686-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc- headers/ math -I.. -I../libio -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unkn own-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers -I../sysdeps/i386/elf -I.. /sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I.. /sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/ unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix - I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps /i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I.. /sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc - isystem /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include -isystem /cygdrive/c/cygwin/ usr/src/crosstool-0.7/result/i686-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/ i686-unk nown-linux-gnu/include -include ../include/libc-symbols.h -DPIC -DSHARED - o /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c-3.3- glibc-2.3.2/build-glibc-headers/math/s_modf.os cc1: warning: -fPIC ignored for target (all code is position independent) ../sysdeps/ieee754/dbl-64/s_modf.c:81: warning: weak declaration of `modf' not s upported gcc ../sysdeps/i386/fpu/s_scalbn.S -c -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH _INLINES -I../include -I. -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686- unknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers/math -I.. -I../libio -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/ gcc-3.3- glibc-2.3.2/build-glibc-headers -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/lin ux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common - I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sy sdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I.. /sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdep s/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl- 96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-l ib/i686-pc-cygwin/3.2/include -isystem /cygdrive/c/cygwin/usr/src/crosstool-0.7/ result/i686-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/i686-unknown-linux-gnu /include -include ../include/libc-symbols.h -DPIC -DSHARED -DASSEMBLER -DGAS_SYNT AX -o /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c -3.3-glibc-2.3.2/build-glibc-headers/math/s_scalbn.os ../sysdeps/i386/fpu/s_scalbn.S: Assembler messages: ../sysdeps/i386/fpu/s_scalbn.S:10: Warning: .type pseudo-op used outside of .def /.endef ignored. ../sysdeps/i386/fpu/s_scalbn.S:10: Warning: rest of line ignored; first ignored character is `_' ../sysdeps/i386/fpu/s_scalbn.S:16: Warning: .size pseudo-op used outside of .def /.endef ignored. ../sysdeps/i386/fpu/s_scalbn.S:16: Warning: rest of line ignored; first ignored character is `_' gcc ../sysdeps/i386/fpu/s_frexp.S -c -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_ INLINES -I../include -I. -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-u nknown-linux-gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers/math -I.. -I../libio - I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/g cc-3.3-g libc-2.3.2/build-glibc-headers -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linu x/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I ../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sys deps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../ sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps /i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-9 6 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 - I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-li b/i686-pc-cygwin/3.2/include -isystem /cygdrive/c/cygwin/usr/src/crosstool-0.7/r esult/i686-unknown-linux-gnu/gcc-3.3-glibc-2.3.2/i686-unknown-linux-gnu/ include -include ../include/libc-symbols.h -DPIC -DSHARED -DASSEMBLER -DGAS_SYNTA X -o /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c- 3.3-glibc-2.3.2/build-glibc-headers/math/s_frexp.os ../sysdeps/i386/fpu/s_frexp.S: Assembler messages: ../sysdeps/i386/fpu/s_frexp.S:32: Warning: .type pseudo-op used outside of .def/ .endef ignored. ../sysdeps/i386/fpu/s_frexp.S:32: Warning: rest of line ignored; first ignored c haracter is `t' ../sysdeps/i386/fpu/s_frexp.S:34: Warning: .size pseudo-op used outside of .def/ .endef ignored. ../sysdeps/i386/fpu/s_frexp.S:34: Warning: rest of line ignored; first ignored c haracter is `t' ../sysdeps/i386/fpu/s_frexp.S:48: Warning: .type pseudo-op used outside of .def/ .endef ignored. ../sysdeps/i386/fpu/s_frexp.S:48: Warning: rest of line ignored; first ignored c haracter is `_' ../sysdeps/i386/fpu/s_frexp.S:94: Warning: .size pseudo-op used outside of .def/ .endef ignored. ../sysdeps/i386/fpu/s_frexp.S:94: Warning: rest of line ignored; first ignored c haracter is `_' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as: BFD 2.13. 90 20030308 assertion fail /netrel/src/binutils-20030307-1/bfd/coff-i386.c:529 ../sysdeps/i386/fpu/s_frexp.S:68: Error: cannot represent relocation type BFD_RE LOC_386_GOTPC make[2]: *** [/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux- gnu/gcc-3.3-glibc-2.3.2/build-glibc-headers/math/s_frexp.os] Error 1 make[2]: Leaving directory `/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686- unknown-linux-gnu/gcc-3.3-glibc-2.3.2/glibc-2.3.2/math' make[1]: *** [math/subdir_lib] Error 2 make[1]: Leaving directory `/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686- unknown-linux-gnu/gcc-3.3-glibc-2.3.2/glibc-2.3.2' make: *** [all] Error 2 *** --- --- *** *** i686.dat + gcc2.95.3-glibc2.2.2.dat *** I didn't save the tail of the output on this one, but it was a linker error in glibc; something to the effect of: build-glibc/iconv/iconv_prog.o: In function 'main': iconv_prog.o: undefined reference to close ... open ... __fxstat ... read . . . build-glibc/libc.so.6: undefined reference to __fcntl ... __access ... __open64 ... ____fstatvfs64 collect2: ld returned 1 exit status *** --- --- *** *** i686.dat + gcc3.2.3-glibc2.2.5.dat *** This loks like it died in build-gcc-core. It's the old mempcpy link error. I've seen multiple "fixes' recommended for this; some say it is a -Dinhibit_libc thing, others say just go into the gnu_regex.c file and #if 0 it out, I'm not sure what the 'right' answer is. Here's the tail of the build. /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c-3.2.3- glibc-2.2.5/gcc-3.2.3/gcc/fixinc/gnu-regex.c: In function `regerror': /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c-3.2.3- glibc-2.2.5/gcc-3.2.3/gcc/fixinc/gnu-regex.c:5723: warning: implicit declaration of function `__mempcpy' gcc -c -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite -strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-l ong-long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -Wstrict-pro totypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I/ cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gcc -3.2.3-g libc-2.2.5/gcc-3.2.3/gcc/fixinc -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build /i686-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/gcc-3.2.3/gcc/fixinc/.. -I/cygdriv e/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gcc-3.2.3- glibc-2. 2.5/gcc-3.2.3/gcc/fixinc/../config -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/bu ild/i686-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/gcc-3.2.3/gcc/fixinc/.. /../incl ude /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c-3. 2.3-glibc-2.2.5/gcc-3.2.3/gcc/fixinc/fixlib.c gcc -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-st rings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long -long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -Wstrict-protot ypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I/cyg drive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gcc-3. 2.3-glib c-2.2.5/gcc-3.2.3/gcc/fixinc -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i6 86-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/gcc-3.2.3/gcc/fixinc/.. -I/cygdrive/c /cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gcc-3.2.3-gli bc-2.2.5 /gcc-3.2.3/gcc/fixinc/../config -I/cygdrive/c/cygwin/usr/src/crosstool-0.7/build /i686-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/gcc-3.2.3/gcc/fixinc/../.. /include -o fixincl.exe fixincl.o fixtests.o fixfixes.o server.o procopen.o gnu-regex.o fixlib.o ../../libiberty/libiberty.a gnu-regex.o(.text+0x6556): In function `regerror': /cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686-unknown-linux-gnu/gc c-3.2.3- glibc-2.2.5/gcc-3.2.3/gcc/fixinc/gnu-regex.c:5723: undefined reference to `___me mpcpy' collect2: ld returned 1 exit status make[2]: *** [full-stamp] Error 1 make[2]: Leaving directory `/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686- unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-gcc-core/gcc/fixinc' make[1]: *** [fixinc.sh] Error 2 make[1]: Leaving directory `/cygdrive/c/cygwin/usr/src/crosstool-0.7/build/i686- unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-gcc-core/gcc' make: *** [all-gcc] Error 2 *** --- --- ***
Attachment:
libib-configure
Description: Binary data
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |