Web lists-archives.org

Re: [Mingw-users] Problem with using mingw on linux





keithmarshall wrote:
> 
> 
> Actually, that failure is occurring in the section of a standard
> autoconf generated configure script, specified by the AC_PROG_CC macro,
> and the failure is indicative of an improperly installed cross compiler
> tool chain.  However, the name `i586-mingw32msvc-gcc' strongly suggests
> that this is not our cross compiler package, (which uses a default name
> of simply `i586-mingw32-gcc').  Questions concerning foreign packages
> should be directed to the respective package maintainer.
> 
> In any case, before attempting to deploy a cross compiler to build any
> other software package, you should first ensure that it *can* create
> executables, by compiling a basic hello world program from the command
> line, and possibly running it under WINE.
> 
> 

Hi Keith,


I am experiencing the same problem as OP. I'm running Ubuntu 6.06.2 with
mingw32 installed as a cross compiler. I installed it with "apt-get install
mingw32 mingw32-binutils mingw32-runtime". For me as well the executable
name shows up as "i586-mingw32msvc-gcc" instead of "i586-mingw32-gcc".

After it was installed, my bin looks like this:

tgs@tgs-desktop:~/test$ ls /usr/bin/ | grep i586
i586-mingw32msvc-addr2line
i586-mingw32msvc-ar
i586-mingw32msvc-as
i586-mingw32msvc-c++
i586-mingw32msvc-cc
i586-mingw32msvc-c++filt
i586-mingw32msvc-cpp
i586-mingw32msvc-dlltool
i586-mingw32msvc-dllwrap
i586-mingw32msvc-g++
i586-mingw32msvc-gcc
i586-mingw32msvc-gcc-3.4.4
i586-mingw32msvc-gccbug
i586-mingw32msvc-gcov
i586-mingw32msvc-ld
i586-mingw32msvc-nm
i586-mingw32msvc-objcopy
i586-mingw32msvc-objdump
i586-mingw32msvc-ranlib
i586-mingw32msvc-readelf
i586-mingw32msvc-size
i586-mingw32msvc-strings
i586-mingw32msvc-strip
i586-mingw32msvc-windres

I wrote the following simple program to test whether compilation works:

int main(int argc, char* argv[])
{
return 0;
}

When I try compiling it, however, I get the following (same as the output
from OP's configuration script):

tgs@tgs-desktop:~/test$ i586-mingw32msvc-gcc simpletest.c -o simpletest.exe
/tmp/cc5xd3WR.s: Assembler messages:
/tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.def'
/tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.scl'
/tmp/cc5xd3WR.s:2: Error: unrecognized symbol type ""
/tmp/cc5xd3WR.s:2: Error: junk at end of line, first unrecognized character
is `3'
/tmp/cc5xd3WR.s:2: Error: unknown pseudo-op: `.endef'
/tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.def'
/tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.scl'
/tmp/cc5xd3WR.s:5: Error: unrecognized symbol type ""
/tmp/cc5xd3WR.s:5: Error: junk at end of line, first unrecognized character
is `3'
/tmp/cc5xd3WR.s:5: Error: unknown pseudo-op: `.endef'

Do you have any idea what's going on?
-- 
View this message in context: http://www.nabble.com/Problem-with-using-mingw-on-linux-tp13902706p17044450.html
Sent from the MinGW - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users