Re: need help compiling gcc for windows
Sheryl Canter <
sheryl@...>
2003-10-08 13:33:14 GMT
Found the problem... The prefix directory didn't exist. For some reason I
thought configure would create it. I created it manually, and now it's
running. I'm not sure it will run correctly, but at least it's running.
- Sheryl
----- Original Message -----
From: "Sheryl Canter" <sheryl@...>
To: <mingw-msys@...>
Sent: Wednesday, October 08, 2003 9:16 AM
Subject: Re: [Mingw-msys] need help compiling gcc for windows
Yes, I know the slashes are missing, but I can't figure out why. I changed
nothing in the MSYS defaults except to add CC=gcc to the profile file. There
are no backslashes in the path to the compiler.
I've tried it with CC defined and without. It doesn't work either way. When
I define it this way, it seems to work. Typing "gcc -v" shows compiler info.
I'm also tried defining CC with a full path (forward slashes), but that
doesn't work either.
Here is the output of msysinfo all. I very much hope you can find a clue in
here. I've spent 18 hours on this, and I can't get it to work.
- Sheryl
------------------------
msysinfo-1.3: Send this to the MSYS support list:
MSYS 1.0.9(0.46/3/2) 2003-07-03 07:26 i686 unknown; targ=MINGW32
GNU bash, version 2.04.0(1)-release (i686-pc-msys); ENV=.profile
GNU Make version 3.79.1,Built for i686-pc-msys; MAKE_MODE=unix
gcc.exe (GCC) 3.3.1 (mingw special 20030804-1); targ=MINGW32
GNU ld version 2.14.90 20030807
789320 Thu Jul 10 07:56:48 2003 /bin/msys-1.0.dll
135680 Thu Jul 10 07:56:46 2003 /bin/make.exe
84992 Thu Aug 07 18:29:00 2003 /mingw/bin/gcc.exe
613888 Sun Aug 10 02:05:14 2003 /mingw/bin/ld.exe
HOME=/home/Administrator
Sysname=MINGW32_NT-5.0 OSTYPE=msys TERM=msys
PATH=.:/usr/local/bin:/mingw/bin:/bin:/c/Program Files/Inprise/v
broker/bin:/c/PROGRA~1/Borland/CBUILD~1/Bin:/c/PROGRA~1/Borland/
CBUILD~1/Projects/Bpl:/c/Program Files/Borland/Delphi7/Bin:/c/Pr
ogram Files/Borland/Delphi7/Projects/Bpl/:/d/WINNT/system32:/d/W
INNT:/d/WINNT/System32/Wbem:/d/PROGRAM FILES/THINKPAD/UTILITIES:
/d/Program Files/Resource Kit/:/d/PROGRA~1/COMMON~1/Odbc/FILEMA~
1:/c/Program Files/Microsoft SDK/Bin/.:/c/Program Files/Microsof
t SDK/Bin/WinNT/.:"C:/Program Files/MailFrontier":/c/Program Fil
es/Microsoft SDK/Bin/.:/c/Program Files/Microsoft SDK/Bin/WinNT/
.:/c/WINDOWS:/c/WINDOWS/COMMAND:/c/WINDOWS/SYSTEM:/c/WINDOWS/SYS
TEM32:.:/c/PROGRA~1/WIN98RK:/c/PROGRA~1/THINKPAD/UTILIT~1:.:/c/P
ROGRA~1/THINKPAD/UTILIT~2
$ ls -tx /home/Administrator
msysinfo.txt .bash_history
f30e9b0fa5e0f6216ac30fcb52d560f3 */bin/msys-1.0.dll
0e7941487ca8156a25b46b0b8f9a8bd9 */bin/make.exe
7ade0276cdb73836eb5b8378e9e8906f */mingw/bin/gcc.exe
c01d4de1eacd8d52ddadb442ffc8193f */mingw/bin/ld.exe
In /etc/fstab:
C:/mingw /mingw
In /etc/profile:
export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
export HOME LOGNAME MSYSTEM HISTFILE
export MAKE_MODE=unix
export PS1='\[\033]0;$MSYSTEM:\w\007
%%% MSYS dll major: 1000
%%% MSYS dll minor: 9
%%% MSYS dll epoch: 19
%%% MSYS dll bad signal mask: 19005
%%% MSYS dll old termios: 5
%%% MSYS dll malloc env: 28
%%% MSYS api major: 0
%%% MSYS api minor: 46
%%% MSYS shared data: 3
%%% MSYS dll identifier: cygwin1
%%% MSYS mount registry: 2
%%% MSYS cygnus registry name: msys
%%% MSYS cygwin registry name: 1.0
%%% MSYS program options name: Program Options
%%% MSYS cygwin mount registry name: mounts v2
%%% MSYS cygdrive flags: cygdrive flags
%%% MSYS cygdrive prefix: cygdrive prefix
%%% MSYS cygdrive default prefix:
%%% MSYS build date: Thu Jul 3 07:26:50 EDT 2003
%%% MSYS shared id: cygwin1S3
!C:='C:\msys\bin'
ALLUSERSPROFILE='D:\Documents and Settings\All Users'
APPDATA='D:\Documents and Settings\Administrator\Application
Data'
BASEMAKE='C:\Program Files\Microsoft SDK\Include\BKOffice.Mak'
BASH=/usr/bin/sh
BASH_VERSINFO=([0]="2" [1]="04" [2]="0" [3]="1" [4]="release"
[5]="i686-pc-msys")
BASH_VERSION='2.04.0(1)-release'
BGCOLOR=LightYellow
BKOFFICE='C:\Program Files\Microsoft SDK\.'
CLASSPATH='"C:\Program
Files\JavaSoft\JRE\1.3\lib\ext\QTJava.zip"'
COLORFGBG='default;default'
COLORTERM=rxvt
COMMONPROGRAMFILES='D:\Program Files\Common Files'
COMPUTERNAME=TPA21P
COMSPEC='D:\WINNT\system32\cmd.exe'
DDKROOT='c:\NTDDK'
DIRSTACK=()
DISPLAY=:0
EUID=500
FGCOLOR=Navy
GROUPS=()
HISTFILE=/home/Administrator/.bash_history
HOME=/home/Administrator
HOMEDRIVE=D:
HOMEPATH='\'
HOSTNAME=TPA21P
HOSTTYPE=i686
IFS='
'
INCLUDE='C:\Program Files\Microsoft SDK\Include\.'
INETSDK='C:\Program Files\Microsoft SDK\.'
LIB='C:\Program Files\Microsoft SDK\Lib\.'
LOGNAME=Administrator
LOGONSERVER='\\TPA21P'
MACHTYPE=i686-pc-msys
MAKE_MODE=unix
MINGW32BGCOLOR=LightYellow
MINGW32FGCOLOR=Navy
MSSDK='C:\Program Files\Microsoft SDK\.'
MSTOOLS='C:\Program Files\Microsoft SDK\.'
MSYSBGCOLOR=White
MSYSFGCOLOR=Black
MSYSTEM=MINGW32
NUMBER_OF_PROCESSORS=1
OPTERR=1
OPTIND=1
OS=Windows_NT
OS2LIBPATH='D:\WINNT\system32\os2\dll;'
OSTYPE=msys
PATH='.:/usr/local/bin:/mingw/bin:/bin:/c/Program
Files/Inprise/vbroker/bin:/c/PROGRA~1/Borland/CBUILD~1/Bin:/c/PR
OGRA~1/Borland/CBUILD~1/Projects/Bpl:/c/Program
Files/Borland/Delphi7/Bin:/c/Program
Files/Borland/Delphi7/Projects/Bpl/:/d/WINNT/system32:/d/WINNT:/
d/WINNT/System32/Wbem:/d/PROGRAM
FILES/THINKPAD/UTILITIES:/d/Program Files/Resource
Kit/:/d/PROGRA~1/COMMON~1/Odbc/FILEMA~1:/c/Program
Files/Microsoft SDK/Bin/.:/c/Program Files/Microsoft
SDK/Bin/WinNT/.:"C:/Program Files/MailFrontier":/c/Program
Files/Microsoft SDK/Bin/.:/c/Program Files/Microsoft
SDK/Bin/WinNT/.:/c/WINDOWS:/c/WINDOWS/COMMAND:/c/WINDOWS/SYSTEM:
/c/WINDOWS/SYSTEM32:.:/c/PROGRA~1/WIN98RK:/c/PROGRA~1/THINKPAD/U
TILIT~1:.:/c/PROGRA~1/THINKPAD/UTILIT~2'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PIPESTATUS=([0]="0")
PPID=1272
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='x86 Family 6 Model 8 Stepping 6,
GenuineIntel'
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0806
PROGRAMFILES='D:\Program Files'
PROMPT='$P$G'
PS4='+ '
PWD=/home/Administrator
QTJAVA='"C:\Program Files\JavaSoft\JRE\1.3\lib\ext\QTJava.zip"'
SHELL=/bin/sh
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=2
SYSTEMDRIVE=D:
SYSTEMROOT='D:\WINNT'
TEMP=/tmp
TERM=msys
TMP=/tmp
UID=500
USERDOMAIN=TPA21P
USERNAME=Administrator
USERPROFILE='D:\Documents and Settings\Administrator'
VBROKERDIR='C:\Program Files\Inprise\vbroker'
WINDIR='D:\WINNT'
WINDOWID=167838896
_=echo
$ msysinfo all >msysinfo.txt will save this to a file
----- Original Message -----
From: Luke Dunstan
To: mingw-msys@...
Sent: Wednesday, October 08, 2003 3:10 AM
Subject: Re: [Mingw-msys] need help compiling gcc for windows
That error seems strange to me, and it is due to backslashes somehow getting
into a command line when they shouldn't. You normally don't need to set CC
or CXX environment variables so remove these first. Please provide the
output of "msysinfo all".
Luke
----- Original Message -----
From: Sheryl Canter
To: mingw-msys@...
Sent: Wednesday, October 08, 2003 2:02 PM
Subject: [Mingw-msys] need help compiling gcc for windows
I'm trying to use MSYS with MINGW to compile gcc for Windows. If I'm ever
able to get this to work, I would then like to cross compile for a Linux
target. But I can't get this to work.
In my profile file, I have this line:
CC=gcc CXX=gcc
This seems to be correct because when I type just $CC on a line in MSys it
lists the correct file:
$ $CC
gcc.exe: no input files
I also have my mingw directory correctly bound to MSYS in fstab:
C:/mingw /mingw
The directory /c/mingw/bin is in my path.
But when I try to configure gcc, I get this:
Administrator <at> TPA21P /c/gcc-objdir
$
c:/Software/gcc/gcc-3.3.1/configure --prefix=c:/gcc-3.3.1 --with-local-prefi
x
=c:/gcc/3.3.1
Configuring for a i686-pc-mingw32 host.
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava
(Any other directories should still work fine.)
Created "Makefile" in /c/gcc-objdir using "mh-frag"
c:/Software/gcc/gcc-3.3.1/configure: c:mingwbingcc.exe: command not found
*** The command 'c:mingwbingcc.exe -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
I'm at my wits end over this. I've been at it all day and all evening, and
half the night. Please tell me what I'm doing wrong.
- Sheryl
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mingw-msys mailing list
Mingw-msys@...
https://lists.sourceforge.net/lists/listinfo/mingw-msys
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf