From: William E. <MrU...@po...> - 2008-11-04 22:27:56
|
Jon, OK, I give up! Where do I download the current cross-compiler for compiling Win32 programs under Linux? I have been running around on SourceForge and just get garbage links. For example, this link: https://sourceforge.net/project/showfiles.php?group_id=204414&package_id=243927&release_id=634209 will get me RPMs but not source file URLs. The install script 'x86-mingw32-build.sh-0.0-20061107-1' does not get the most current source file and the ones it does get fail to compile. This gcc-core file 'gcc-core-3.4.5-20060117-1-src.tar.gz' does not work! $ wget http://prdownloads.sf.net/mingw/gcc-core-3.4.5-20060117-1-src.tar.gz?download --13:58:29-- http://prdownloads.sf.net/mingw/gcc-core-3.4.5-20060117-1-src.tar.gz?download => `gcc-core-3.4.5-20060117-1-src.tar.gz?download' Resolving prdownloads.sf.net... 216.34.181.60 Connecting to prdownloads.sf.net|216.34.181.60|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://internap.dl.sourceforge.net/sourceforge/mingw/gcc-core-3.4.5-20060117-1-src.tar.gz [following] --13:58:29-- http://internap.dl.sourceforge.net/sourceforge/mingw/gcc-core-3.4.5-20060117-1-src.tar.gz => `gcc-core-3.4.5-20060117-1-src.tar.gz.1' Resolving internap.dl.sourceforge.net... 69.88.152.3 Connecting to internap.dl.sourceforge.net|69.88.152.3|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17,693,587 (17M) [application/x-tar] 100%[==================================================================================================>] 17,693,587 88.23K/s ETA 00:00 14:01:16 (104.27 KB/s) - `gcc-core-3.4.5-20060117-1-src.tar.gz.1' saved [17693587/17693587] $ tar zxf gcc-core-3.4.5-20060117- tar: gcc-core-3.4.5-20060117-: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors $ tar zxf gcc-core-3.4.5-20060117-1-src.tar.gz gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Where can I get the right source files????????????????????????????????????????// JonY wrote: > On 11/3/2008 07:48, William Estrada wrote: >> OK here is how I reinstalled Mingw32-gcc: >> >> [root@laptop ~]# cd /usr/local/mingw32/ >> [root@laptop mingw32]# tar zxf >> /src/Mingw32/gcc-core-3.4.5-20060117-3.tar.gz >> [root@laptop mingw32]# tar zxf >> /src/Mingw32/w32api-3.12-mingw32-dev.tar.gz >> [root@laptop mingw32]# tar zxf /src/Mingw32/wget-1.9.1.tar.gz >> [root@laptop mingw32]# tar zxf >> /src/Mingw32/mingwrt-3.15.1-mingw32-dev.tar.gz >> [root@laptop mingw32]# >> >> Then downloaded binutils-2.18.50-20080109-2-src.tar.gz >> tar zxf >> cd bunutils >> configure >> make >> make install >> >> I still get this: >> >> $ makewin hello >> /usr/local/mingw32/bin/mingw32-gcc -DWIN32 -g -Wall -I. >> -I/usr/local/mingw32/include -L/usr/local/mingw32/lib hello.c -o >> hello.exe >> fixme:msvcrt:_spawnve only trying .exe when no extension given >> mingw32-gcc: installation problem, cannot exec `as': No such >> file or >> directory >> >> Any ideas????? >> >> >> > > Hi, > > gcc-core-3.4.5-20060117-3.tar.gz is for windows. Your install is > really messed up. > > The mingw32-gcc is calling the wrong native "as", it should be using > "mingw32-as". You should really use a cross-compiler instead. > > This is really the first time I've seen anybody run gcc through Wine. > -- William Estrada MrU...@po... Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net ) Ymessenger: MrUmunhum |