From: SourceForge.net <no...@so...> - 2007-11-05 10:39:09
|
Support Requests item #1823837, was opened at 2007-11-01 03:48 Message generated for change (Comment added) made by keithmarshall You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1823837&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Other Group: None Status: Open Priority: 5 Private: No Submitted By: Hal Engel (hvengel) Assigned to: Nobody/Anonymous (nobody) Summary: configure error C compiler cannot create executables Initial Comment: See 'config.log' for more details. I am using msys and trying to configure tiff-3.8.2 which was patched using the MinGW port available in the patches tracker here. I configured with: ./configure --prefix=/mingw --host=mingw32 --target=mingw32 OK so it looks like the relevant part of config.log is: configure:2494: checking for C compiler default output file name configure:2497: mingw32-gcc conftest.c H:\gnu32 >&5 d:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: H:\gnu32: No such file: Permission denied I don't see what is wrong. Even though the path to ld.exe is expressed in a really screwball way it does point to the location of ld.exe. But I don't understand where the H:\gnu32 is coming from? But it also exists. Clearly there is something wrong with my installation but I am clueless about what that might be and how to fix it. Can some one help me with this? I am also seeing the same error when I try to configure other things like VIGRA. I have been able to do some test builds using scons so I know that the MinGW stuff is OK and that this problem is likely something that is not right with msys. But other than etc/fstab I don't see anything else that can be configured to make this work. ---------------------------------------------------------------------- >Comment By: Keith Marshall (keithmarshall) Date: 2007-11-05 10:32 Message: Logged In: YES user_id=823908 Originator: NO configure:2494: checking for C compiler default output file name > configure:2497: mingw32-gcc conftest.c H:\gnu32 >&5 > d:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: > H:\gnu32: No such file: Permission denied > > I don't see what is wrong. Sure looks like it's that H:\gnu32 that's at the root of the problem. > I don't understand where the H:\gnu32 is coming from? In your environment, as you've posted it, I see:-- > LIBS='H:\gnu32' Assuming that's an exported variable, (which it will be, if you've added it to the Windows environment), configure will add it to the list of library specs you want to have passed to the compiler; hence it shows up in all compile tests which require the linker to be invoked, right from the outset. > But it also exists. But, what is it? I'd guess that it's a directory, but it's being passed to the compiler in a context where a *file* name is the only thing which makes sense. Try removing the global LIBS definition from your environment. ---------------------------------------------------------------------- Comment By: Hal Engel (hvengel) Date: 2007-11-01 22:05 Message: Logged In: YES user_id=1052244 Originator: YES The path is correct just that is expressed in a strange way. So I don't think that is the problem. I am running the configure script in h:\vigra. The H: drive is where I have my development directories. This is a VFAT partition that is also mounted when I am in Linux where I also use it for doing development work on the same project. I also searched the registry for anything like H:\ and found nothing. This is not a burning issue for me since I have the mingw build working for the app I work on. But I would eventually get msys working correctly so that I can build dependencies when they need updating. So at some point I will need this working for new versions of VIGRA or tiff. ---------------------------------------------------------------------- Comment By: Ken Jackson (kenjackson) Date: 2007-11-01 21:34 Message: Logged In: YES user_id=512584 Originator: NO The "really screwball way" that the location of ld.exe is expressed is a function of GCC, not MinGW. This command (for any version of GCC on any platform) shows you where GCC searches for executables: gcc -print-search-dirs | grep programs Also, I see that your PATH variable starts with ".". Are you working in a current directory under H:\? That could be where it's coming from. If not, you could also search the registry. ---------------------------------------------------------------------- Comment By: Hal Engel (hvengel) Date: 2007-11-01 20:18 Message: Logged In: YES user_id=1052244 Originator: YES The same issue and the output is exactly the same. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2007-11-01 19:52 Message: Logged In: YES user_id=15438 Originator: NO I see ``/h/QtWin/bin'' in PATH perhaps something in it is causing an issue. Try the following: PATH=.:/mingw/bin:/bin ./configure --prefix=`cd /mingw && pwd -W` ---------------------------------------------------------------------- Comment By: Hal Engel (hvengel) Date: 2007-11-01 18:12 Message: Logged In: YES user_id=1052244 Originator: YES No that did not affect it at all. Exactly the same error message and exactly the same strange paths being used. set results in the following: !D:='D:\msys\1.0\bin' ALLUSERSPROFILE='C:\Documents and Settings\All Users' APPDATA='C:\Documents and Settings\admin\Application Data' BASH=/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 COLORFGBG='default;default' COLORTERM=rxvt COLUMNS=80 COMMONPROGRAMFILES='C:\Program Files\Common Files' COMPUTERNAME=OFFICE COMSPEC='C:\WINDOWS\system32\cmd.exe' DIRSTACK=() DISPLAY=:0 EUID=500 FGCOLOR=Navy FP_NO_HOST_CHECK=NO GROUPS=() HISTFILE='/c/Documents and Settings/admin/.bash_history' HISTFILESIZE=500 HISTSIZE=500 HOME='/c/Documents and Settings/admin' HOMEDRIVE=C: HOMEPATH='\' HOSTNAME=OFFICE HOSTTYPE=i686 IFS=' ' LIBS='H:\gnu32' LINES=25 LOGNAME=admin LOGONSERVER='\\OFFICE' MACHTYPE=i686-pc-msys MAILCHECK=60 MAKE_MODE=unix MINGW='D:\mingw' MINGW32BGCOLOR=LightYellow MINGW32FGCOLOR=Navy MSYSBGCOLOR=White MSYSFGCOLOR=Black MSYSTEM=MINGW32 NUMBER_OF_PROCESSORS=2 OLDPWD='/c/Documents and Settings/admin' OPTERR=1 OPTIND=1 OS=Windows_NT OSTYPE=msys PATH='.:/usr/local/bin:/mingw/bin:/bin:/mingw/bin:/usr/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/d/Program Files/Common Files/GTK/2.0/bin:/d/Program Files/python-2.5.1:/h/QtWin/bin:/d/Program Files/windows grep' PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PIPESTATUS=([0]="0") PPID=1732 PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER='x86 Family 15 Model 35 Stepping 2, AuthenticAMD' PROCESSOR_LEVEL=15 PROCESSOR_REVISION=2302 PROGRAMFILES='C:\Program Files' PROMPT='$P$G' PS1='\[\033]0;$MSYSTEM:\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' PS2='> ' PS4='+ ' PWD=/h/vigra QMAKESPEC=win32-g++ QTDIR='H:\QtWin' SESSIONNAME=Console SHELL=/bin/sh SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs SHLVL=1 SYSTEMDRIVE=C: SYSTEMROOT='C:\WINDOWS' TEMP=/tmp TERM=msys TMP=/tmp UID=500 USERDOMAIN=OFFICE USERNAME=admin USERPROFILE='C:\Documents and Settings\admin' WINDIR='C:\WINDOWS' WINDOWID=167838880 _=set i='/etc/profile.d/*.sh' ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2007-11-01 11:37 Message: Logged In: YES user_id=15438 Originator: NO What magic variables might be defined? Check the output of the ``set'' command. Try the following configure command to see if it behaves better: ./configure --prefix=`cd /mingw && pwd -W` ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1823837&group_id=2435 |