btw, did you try compiling everything under windows using the
MSYS environment (shell + needed commands).
That's how we compile our project - though we do not use
automake.
G.
David Laban wrote:
> I'm trying to make a cross compiling environment for the coldfire
> (52xx, in the m68k family). I got it working perfectly on my Gentoo
> box at home (by adapting some install instructions from
> http://www.fiddes.net/coldfire/), but my boss wants it working on
> Windows, so when I leave, he can still use it.
>
> It seems like whenever I try any method, it fails in a new and exciting way.
>
> Can anyone point me to something which they know works, on a win2000
> box, with a starting point of:
>
> (note, I've also tried compiling natively in cygwin, using the same
> method as worked on my Gentoo box, with:
> cygwin, version 2.510.2.2 (according to setup.log)
> + gcc-core-3.4.4-1
> + binutils-20060709-1 (as= 2.17.50)
> If you want to know how *that* one failed, I can tell you that, too.
> It'll be on my blog at http://alsuren.livejournal.com/92804.html )
>
> (also note: I tried using msys-1.0.10 on windows2000, according to the
> version on the installer, and that's not working either, but I don't
> have the failure log of that to hand. I will retry tomorrow, and post
> results on my blog, but my gentoo box is *so* much quicker than the
> win2000 box, and it would take a while to even ./configure, let along
> make to get the error, so I won't post it now.
>
> When I try cross-compiling from gentoo, with:
> [ebuild R ] dev-util/xmingw-w32api-3.1 0 kB
> [ebuild R ] dev-util/xmingw-runtime-3.5 0 kB
> [ebuild R ] dev-util/xmingw-gcc-3.4.2 USE="fortran -debug -gcj" 0 kB
> [ebuild R ] dev-util/xmingw-binutils-2.15.90.0.2 0 kB
>
> using:
> binutils-2_12_90-20020518-1
> and adapting instructions from:
> http://www.mingw.org/MinGWiki/index.php/mingw%20hosted%20cross%20compiler
> with binutils source from the mingw site (I don't even get up to
> making gcc before it fails)
>
>
> I get (hand formatted output, in an attempt for me to understand
> what's going on.)
>
> $ ../binutils-2_12_90-20020518-1/configure --prefix=/c/cortex/m68k-elf
> --target=m68k-elf --host=i386-mingw32msvc
> [snip]
> $ make all
> [snip]
> make[3]: Entering directory `/share/programming/cortex/ming/official/build2/ld'
> /bin/sh ../../binutils-2_12_90-20020518-1/ld/../ylwrap "bison -y"
> ../../binutils-2_12_90-20020518-1/ld/ldgram.y y.tab.c ldgram.c
> y.tab.h ldgram.h -- -d
>
> gcc -DHAVE_CONFIG_H -I. -I../../binutils-2_12_90-20020518-1/ld -I.
> -D_GNU_SOURCE -I.
> -I../../binutils-2_12_90-20020518-1/ld -I../bfd
> -I../../binutils-2_12_90-20020518-1/ld/../bfd
> -I../../binutils-2_12_90-20020518-1/ld/../include
> -I../../binutils-2_12_90-20020518-1/ld/../intl
> -I../intl -g -O2 -DLOCALEDIR="\"/c/cortex/m68k-elf/share/locale\""
> -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ldgram.c
>
> flex ../../binutils-2_12_90-20020518-1/ld/ldlex.l && mv lex.yy.c ldlex.c
>
> gcc -DHAVE_CONFIG_H -I. -I../../binutils-2_12_90-20020518-1/ld -I.
> -D_GNU_SOURCE -I.
> -I../../binutils-2_12_90-20020518-1/ld -I../bfd
> -I../../binutils-2_12_90-20020518-1/ld/../bfd
> -I../../binutils-2_12_90-20020518-1/ld/../include
> -I../../binutils-2_12_90-20020518-1/ld/../intl
> -I../intl -g -O2 -DLOCALEDIR="\"/c/cortex/m68k-elf/share/locale\""
> -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2
> -c ldlex.c
>
> lex.yy.c:3490: warning: no previous prototype for `yyget_lineno'
> lex.yy.c:3499: warning: no previous prototype for `yyget_in'
> lex.yy.c:3507: warning: no previous prototype for `yyget_out'
> lex.yy.c:3515: warning: no previous prototype for `yyget_leng'
> lex.yy.c:3524: warning: no previous prototype for `yyget_text'
> lex.yy.c:3533: warning: no previous prototype for `yyset_lineno'
> lex.yy.c:3545: warning: no previous prototype for `yyset_in'
> lex.yy.c:3550: warning: no previous prototype for `yyset_out'
> lex.yy.c:3555: warning: no previous prototype for `yyget_debug'
> lex.yy.c:3560: warning: no previous prototype for `yyset_debug'
> lex.yy.c:3594: warning: no previous prototype for `yylex_destroy'
> ../../binutils-2_12_90-20020518-1/ld/ldlex.l: In function `yy_input':
> ../../binutils-2_12_90-20020518-1/ld/ldlex.l:614: error:
> `yy_current_buffer' undeclared (first use in this function)
> ../../binutils-2_12_90-20020518-1/ld/ldlex.l:614: error: (Each
> undeclared identifier is reported only once
> ../../binutils-2_12_90-20020518-1/ld/ldlex.l:614: error: for each
> function it appears in.)
> ../../binutils-2_12_90-20020518-1/ld/ldlex.l: At top level:
> lex.yy.c:2988: warning: `yyunput' defined but not used
> make[3]: *** [ldlex.o] Error 1
> make[3]: Leaving directory `/share/programming/cortex/ming/official/build2/ld'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/share/programming/cortex/ming/official/build2/ld'
> make[1]: *** [all-recursive-am] Error 2
> make[1]: Leaving directory `/share/programming/cortex/ming/official/build2/ld'
> make: *** [all-ld] Error 2
>
>
> Don't ask why, but I also tried it with CFLAGS=-I/opt/xmingw<path to
> mingw includes>
> I get:
> $ make all
> [snip]
> make[1]: Entering directory
> `/share/programming/cortex/ming/official/build/i386-linux/libiberty'
> if [ x"" != x ]; then \
> gcc -c -DHAVE_CONFIG_H
> -I/opt/xmingw/i386-mingw32msvc/include/
> -I. -I../../../binutils-2_12_90-20020518-1/libiberty/../include
> -W -Wall -Wtraditional -pedantic
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c
> -o pic/getruntime.o; \
> else true; fi
>
> gcc -c -DHAVE_CONFIG_H
> -I/opt/xmingw/i386-mingw32msvc/include/
> -I. -I../../../binutils-2_12_90-20020518-1/libiberty/../include
> -W -Wall -Wtraditional -pedantic
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c
>
> In file included from
> ../../../binutils-2_12_90-20020518-1/include/libiberty.h:46,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:23:
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning:
> #include_next is a GCC extension
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning: suggest
> hiding #include_next from traditio
> nal C with an indented #
> In file included from
> ../../../binutils-2_12_90-20020518-1/include/libiberty.h:48,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:23:
> /opt/xmingw/i386-mingw32msvc/include/stdarg.h:6:2: warning:
> #include_next is a GCC extension
> /opt/xmingw/i386-mingw32msvc/include/stdarg.h:6:2: warning: suggest
> hiding #include_next from traditio
> nal C with an indented #
> In file included from /opt/xmingw/i386-mingw32msvc/include/sys/types.h:21,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:27:
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning:
> #include_next is a GCC extension
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning: suggest
> hiding #include_next from traditional C with an indented #
> In file included from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:27:
> /opt/xmingw/i386-mingw32msvc/include/sys/types.h:32: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/sys/types.h:110: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/sys/types.h:115: warning: ISO C90
> does not support `long long'
> In file included from /opt/xmingw/i386-mingw32msvc/include/time.h:21,
> from /opt/xmingw/i386-mingw32msvc/include/sys/time.h:2,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:38:
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning:
> #include_next is a GCC extension
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning: suggest
> hiding #include_next from traditional C with an indented #
> In file included from /opt/xmingw/i386-mingw32msvc/include/sys/time.h:2,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:38:
> /opt/xmingw/i386-mingw32msvc/include/time.h:186: error: syntax error
> before "char"
> In file included from /usr/include/bits/resource.h:155,
> from /usr/include/sys/resource.h:25,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:47:
> /usr/include/bits/time.h:70: error: redefinition of `struct timeval'
> In file included from /opt/xmingw/i386-mingw32msvc/include/sys/param.h:13,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:52:
> /opt/xmingw/i386-mingw32msvc/include/limits.h:48:10: warning: the
> meaning of '\x' is different in traditional C
> In file included from /opt/xmingw/i386-mingw32msvc/include/stdint.h:24,
> from /opt/xmingw/i386-mingw32msvc/include/io.h:21,
> from /opt/xmingw/i386-mingw32msvc/include/unistd.h:10,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:58:
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning:
> #include_next is a GCC extension
> /opt/xmingw/i386-mingw32msvc/include/stddef.h:6:2: warning: suggest
> hiding #include_next from traditional C with an indented #
> In file included from /opt/xmingw/i386-mingw32msvc/include/io.h:21,
> from /opt/xmingw/i386-mingw32msvc/include/unistd.h:10,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:58:
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:33: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:34: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:43: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:44: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:56: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:57: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:64: warning: ISO C90
> does not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/stdint.h:65: warning: ISO C90
> does not support `long long'
> In file included from /opt/xmingw/i386-mingw32msvc/include/unistd.h:10,
> from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:58:
> /opt/xmingw/i386-mingw32msvc/include/io.h:70: warning: ISO C90 does
> not support `long long'
> /opt/xmingw/i386-mingw32msvc/include/io.h:98: warning: ISO C90 does
> not support `long long'
> In file included from
> ../../../binutils-2_12_90-20020518-1/libiberty/getruntime.c:58:
> /opt/xmingw/i386-mingw32msvc/include/unistd.h: In function `ftruncate':
> /opt/xmingw/i386-mingw32msvc/include/unistd.h:25: warning: traditional
> C rejects ISO C style function definitions
> make[1]: *** [getruntime.o] Error 1
> make[1]: Leaving directory
> `/share/programming/cortex/ming/official/build/i386-linux/libiberty'
> make: *** [all-build-libiberty] Error 2
>
>
> Now interestingly, given that I did the whole thing in a screen
> session, I did ^a ^[ ?linux (searched for "linux" in the output) in
> the output of make in the first gentoo build directory (ie after I'd
> configured and made them once already), and it told me that there
> wasn't anything matching that in the output.
>
> Does that mean that my includes have made it get further than before,
> or does it simply not recurse into that directory if it's already made
> it all correctly? (ie if I make clean, will it manage to find the
> "linux" reference?
>
>
> Really sorry if I'm not very coherant. I've been working on getting
> this cross-compiler/debugger/in-circuit-monitor environment working
> for something like 4 weeks now, and my biggest challenge so far seems
> to be getting my tools to work under windows, when they work *fine* in
> linux. As you can imagine, this is *very* frustrating.... (It's also
> after six o-clock and I'm stuck in the office because it's raining
> outside, and I have to cycle 15 mins to get home. Wish me luck in
> finding a gap in the clouds before I starve to death.)
>
> Any even vague hint that you've come across (and solved) a similar
> problem, and I will of course love you forever. :D
>
> David
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@...
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
>
>
|