[Haskell-cafe] Re: Compilling GHC on Vista
Monique Monteiro
monique.louise at gmail.com
Fri Apr 27 09:30:02 EDT 2007
I got a very different output:
$ c:/MinGW/bin/gcc --verbose t.c
Reading specs from c:/MinGW/lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
cc1 -quiet -v -iprefix c:\MinGW\bin\../lib/gcc/mingw32/3.4.2/ t.c -quiet -dumpb
ase t.c -auxbase t -version -o ./ccaibaaa.s
ignoring nonexistent directory "c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../.
./mingw32/include"
ignoring nonexistent directory "/mingw/mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/include
/mingw/include
/mingw/include
/mingw/lib/gcc/mingw32/3.4.2/include
/mingw/include
End of search list.
GNU C version 3.4.2 (mingw-special) (mingw32)
compiled by GNU C version 3.4.2 (mingw-special).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=130832
as -o ./ccaqcaaa.o ./ccaibaaa.s
ld -Bdynamic /mingw/lib/crt2.o c:/MinGW/lib/gcc/mingw32/3.4.2/crtbegin.o -Lc:/M
inGW/lib/gcc/mingw32/3.4.2 -Lc:/MinGW/lib/gcc -L/mingw/lib/gcc/mingw32/3.4.2 -Lc
:/MinGW/mingw32/lib -L/mingw/mingw32/lib -L/mingw/lib -Lc:/MinGW/lib -L/mingw/li
b ./ccaqcaaa.o -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32
-ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt c:/MinGW/lib
/gcc/mingw32/3.4.2/crtend.o
ld: /mingw/lib/crt2.o: No such file: No such file or directory
It seems strange, because both C:\MinGW\bin and
C:\MinGW\lib\gcc\mingw32\3.4.2 exist. Further, MingW and Cygwin are
installed on the same driver.
On 4/26/07, Claus Reinke <claus.reinke at talk21.com> wrote:
> > and even the mingw ld apparently sets its search_dirs without drive letters:
>
> that shouldn't be the problem, though, as the failing part of ./configure was
> an indirect call via gcc, which seems to set the library prefixes correctly, when
> calling collect2 (see >>>>> below). it was just that the error message looked
> exactly right. Monique, perhaps you could send the output from the little test
> below, on your system, to compare (win/xp here)?
>
> claus
>
> $ pwd
> /cygdrive/d/tmp
>
> $ cat t.c
> int main()
> {
> exit(0);
> }
>
> $ c:/MinGW/bin/gcc --verbose t.c
> Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
> Configured with:
> ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=min
> gw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --dis
> able-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt
> --w
> ithout-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz
> ation --enable-libstdcxx-debug
> Thread model: win32
> gcc version 3.4.2 (mingw-special)
> c:/MinGW/bin/../libexec/gcc/mingw32/3.4.2/cc1.exe -quiet -v -iprefix
> c:\MinGW\bin\../lib/gcc/mingw3
> 2/3.4.2/ t.c -quiet -dumpbase t.c -auxbase t -version -o
> C:\DOCUME~1\cr3\LOCALS~1\Temp/ccE5aaaa.s
> ignoring nonexistent directory
> "c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/include"
> ignoring nonexistent directory "/mingw/include"
> ignoring nonexistent directory "/mingw/include"
> ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.2/include"
> ignoring nonexistent directory "/mingw/mingw32/include"
> ignoring nonexistent directory "/mingw/include"
> #include "..." search starts here:
> #include <...> search starts here:
> c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include
> c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/include
> End of search list.
> GNU C version 3.4.2 (mingw-special) (mingw32)
> compiled by GNU C version 3.4.2 (mingw-special).
> GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=130830
> c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/bin/as.exe -o
> C:\DOCUME~1\cr3\LOCALS~1\Temp/cc80baaa.o C:\DOCUME~1\cr3\LOCALS~1\Temp/ccE5aaaa.s
> c:/MinGW/bin/../libexec/gcc/mingw32/3.4.2/collect2.exe -Bdynamic
> >>>>>
> c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o
> c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o
> >>>>>
> -Lc:/MinGW/bin/../lib/gcc/mingw32/3.4.2 -Lc:/MinGW/bin/../lib/gcc
> -Lc:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib
> -Lc:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../.. C:\DOCUME~1\cr3\LOCALS~1\Temp/cc80baaa.o
> -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32
> -lgcc
> -lmoldname -lmingwex -lmsvcrt c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtend.o
>
>
--
__________________________________________________________
Monique Monteiro, MSc
MCP .NET Framework 2.0 / SCJP / IBM OOAD
Project Manager
Recife Microsoft Innovation Center
+55 81 34198137
http://www.cin.ufpe.br/~mlbm
http://thespoke.net/blogs/moniquelouise/default.aspx
monique at qualiti.com.br
MSN: monique_louise at msn.com
More information about the Haskell-Cafe
mailing list