|
From: Bernd J. <ber...@us...> - 2003-08-18 10:04:45
|
On Fri, Aug 15, 2003 at 07:37:26AM -0400, Earnie Boyd wrote: > Did you research > http://www.google.com/search?num=100&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=active&q=gcc+0xdeadbeef&btnG=Google+Search Huh? No - which one of the 779 hits? There must be something I'm missing - plenty other people seem to be doing this just fine. I don't see anything glaring at me in the FAQ. :( > Earnie. > > Bernd Jendrissek wrote: > > Hi > > > > Okay, I've finally given up and now have to ask the great mailing list > > god for help. > > > > I'm trying to build a cross-compiler, host=i686-pc-linux-gnu > > target=i386-mingw32 with GCC 3.3.1 plus mingw patches. But the programs > > it produces crash. > > > > #include <stdio.h> > > > > int main() > > { > > while (1) { > > printf("hello, world!\n"); > > } > > } BTW taking the while (1) out, leaving just the printf and adding a "return 0;" changes nothing. All-black window for a split second, then nothing. > > If I compile this like so: > > /usr/cross/bin/i386-mingw32-gcc -mconsole foo.c -o foo.exe > > it compiles without error, and ls -ul shows that it indeed used the > > i386-mingw versions of as and ld I have installed (build from sources > > that claim "GNU assembler 2.13.90.0.20 20030319", IOW hjl's "Linux" > > binutils). > > > > But when I try wineconsole foo.exe, I just get a black window that > > appears for a few video-frames, then dies. So maybe wine is broken... > > no. I downloaded foo.exe onto a "real" windows machine, and there too > > it crashes. Something about memory at 0xdeadbeef could not be "written" > > (windows' quotes, not mine). > > > > What else am I doing that's stupid? > > > > Here is how I configured GCC (from an RPM spec file): > > > > $RPM_BUILD_DIR/gcc-3.3/configure --srcdir=$RPM_BUILD_DIR/gcc-3.3 \ > > --prefix=/usr/cross \ > > --mandir=/usr/cross/i386-mingw32/man \ > > --infodir=/usr/cross/i386-mingw32/info \ > > --target=i386-mingw32 \ > > --with-gcc \ > > --with-as=/usr/cross/bin/i386-mingw32-as \ > > --with-ld=/usr/cross/bin/i386-mingw32-ld \ > > --with-slibdir=/lib \ > > --with-gxx-include-dir=/usr/cross/i386/mingw32/include/g++-v3 \ > > --without-x \ > > --disable-nls \ > > --disable-win32-registry \ > > --disable-shared \ > > --enable-threads \ > > --enable-languages=c,c++ \ > > --enable-libgcj \ > > --disable-java-awt \ > > --enable-java-gc=boehm \ > > --disable-libgcj-debug \ > > --enable-interpreter \ > > --enable-hash-synchronization \ > > --enable-sjlj-exceptions \ > > --with-dwarf3 \ > > --with-system-zlib > > > > TIA > > > > bernd -- "IBM has more patent litigation lawyers than SCO has employees." - unknown |