From: Earnie B. <ea...@us...> - 2007-01-17 16:26:36
|
Quoting Cesar Strauss <cst...@ce...>: > Patrick Byrne wrote: >> >> Beg pardon. I was in the MINGW shell, not the MSYS shell. In the MINGW >> shell (started with msysdvlpr) I get: >> >> checking for C compiler default output file name... configure: error: >> C compiler cannot create executables >> See `config.log' for more details. >> > > Try this: > > $ gcc -v > Reading specs from /msys/bin/../lib/gcc-lib/i686-pc-msys/2.95.3-1/specs > gcc version 2.95.3-1 > > $ SPECFILE=/msys/bin/../lib/gcc-lib/i686-pc-msys/2.95.3-1/specs > > $ mv ${SPECFILE} ${SPECFILE}.orig > > $ sed 's|/usr|/msys|g' < ${SPECFILE}.orig > ${SPECFILE} > > We both unpacked the msysDVLPR-1.0.0-alpha-1.tar.gz in the /msys > directory, but the included gcc expects to find include files and > libraries in the /usr directory. > > The above commands should change all '/usr' into '/msys' within the gcc > spec file. > > See also: > http://article.gmane.org/gmane.comp.gnu.mingw.msys/2775 > > Note: You should probably, in the first place, also rebuild the MSYS > runtime. The official instructions are in ... > > http://www.mingw.org/MinGWiki/index.php/Build%20MSYS > > ... but you also need to change /usr to /msys there too, as in the > following: > > $ cd > > $ > cvs -z3 -d:pserver:ano...@mi...:/cvsroot/mingw co > -P msys/rt > > $ cp /mingw/include/wincon.h /msys/include > $ cd msys/rt > $ mkdir bld > $ cd bld > $ ../src/configure --prefix=/msys > $ make > > Then, I suggest doing this: > > $ make install prefix=${HOME}/msys/rt/inst > > Then exit all MSYS windows and manually (in windows explorer) copy the > contents of c:\MSYS\1.0\msys\home\YOUR_LOGIN\msys\rt\inst\bin to > c:\MSYS\1.0\msys\bin. Only then do > > $ make install > > (Please someone correct me, but I am a bit nervous about installing > msys-1.0.dll from within a MSYS shell.) > > I've been at this too long. Thanks for the update. Can you please make the adjustments to the wiki. For testing purposes I have parallel copies so that I can test the newly built software. E.G.: ``cp -a /c/mingw /c/mingw-test'' or ``cp -a /c/msys /c/msys-test''. I copy the desktop icon and point it to the testing environment. You can also copy the desktop icon and add MSYS as a parameter to the command line for msys.bat to get the MSYS environment on click. Be sure to rename the copies to something meaningful. For grins I've attached a .profile file that helps me identify which window is which version. Earnie Boyd -- Please post responsibly: * Use text posts instead of html; many list members just trash mail with html. * Do not use multipart mime to send both text and html versions. * Do not top post replies; post inline with the parts you are responding to. * Trim the post replies; remove irrelevant information from the quoted article. * Original posters: ** Provide small complete examples of the problem. ** Provide the full command that produced errors. ** Provide the versions of the software used. |