-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ross Ridge wrote: > Ranjit Mathew wrote: >> Danny, I'm using the same configure flags that you have used for GCC >> 3.4.5 MinGW release (*except* for --prefix=/mingw, which is something >> like --prefix=/j/mingw/mgw for me), but the GCC I get is not relocatable >> at all, while I can put the MinGW GCC 3.4.5 release anywhere on the >> filesystem and it still works. :-( > > The GCC I get from my native MinGW build of the trunk is relocatable:
Curiouser and curiouser! See the following output that shows what I was talking about ("TEMP" is set to "C:\TEMP", so "/tmp" is mapped to "C:\TEMP"): - ------------------------------ 8< ------------------------------ C:\TEMP\mgw>c:\temp\mgw\mymingw\bin\gcc -v hello.c Using built-in specs. Target: i686-pc-mingw32 Configured with: ../gcc/configure --prefix=/tmp/mgw/mymingw --host=i686-pc-mingw 32 --target=i686-pc-mingw32 --disable-nls --disable-checking --disable-debug --e nable-threads=win32 --disable-win32-registry --enable-languages=c --disable-werr or Thread model: win32 gcc version 4.2.0 20060606 (experimental) c:/temp/mgw/mymingw/bin/../libexec/gcc/i686-pc-mingw32/4.2.0/cc1.exe -quiet -v - -iprefix c:\temp\mgw\mymingw\bin\../lib/gcc/i686-pc-mingw32/4.2.0/ hello.c -quie t -dumpbase hello.c -mtune=generic -auxbase hello -version -o C:\TEMP/ccuwaaaa.s ignoring nonexistent directory "/tmp/mgw/mymingw/include" ignoring nonexistent directory "C:/TEMP/mgw/mymingw/i686-pc-mingw32/include" ignoring nonexistent directory "/mingw/include" #include "..." search starts here: #include <...> search starts here: c:/temp/mgw/mymingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0/include C:/TEMP/mgw/mymingw/include C:/TEMP/mgw/mymingw/lib/gcc/i686-pc-mingw32/4.2.0/include End of search list. GNU C version 4.2.0 20060606 (experimental) (i686-pc-mingw32) compiled by GNU C version 4.2.0 20060606 (experimental). GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129918 Compiler executable checksum: fa3ae888985b8ab892ffd388ea6c3279 c:/temp/mgw/mymingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0/../../../../i686-pc-mi ngw32/bin/as.exe -o C:\TEMP/ccOSaaaa.o C:\TEMP/ccuwaaaa.s c:/temp/mgw/mymingw/bin/../libexec/gcc/i686-pc-mingw32/4.2.0/collect2.exe -Bdyn amic c:/temp/mgw/mymingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0/../../../crt2.o -L c:/temp/mgw/mymingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0 -Lc:/temp/mgw/mymingw/b in/../lib/gcc -LC:/TEMP/mgw/mymingw/lib/gcc/i686-pc-mingw32/4.2.0 -Lc:/temp/mgw/ mymingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0/../../../../i686-pc-mingw32/lib -LC :/TEMP/mgw/mymingw/lib/gcc/i686-pc-mingw32/4.2.0/../../../../i686-pc-mingw32/lib -Lc:/temp/mgw/mymingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0/../../.. -LC:/TEMP/m gw/mymingw/lib/gcc/i686-pc-mingw32/4.2.0/../../.. C:\TEMP/ccOSaaaa.o -lmingw32 - lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmi ngw32 -lgcc -lmoldname -lmingwex -lmsvcrt C:\TEMP\mgw>move mymingw yourmingw 1 file(s) moved. C:\TEMP\mgw>c:\temp\mgw\yourmingw\bin\gcc -v hello.c Using built-in specs. Target: i686-pc-mingw32 Configured with: ../gcc/configure --prefix=/tmp/mgw/mymingw --host=i686-pc-mingw 32 --target=i686-pc-mingw32 --disable-nls --disable-checking --disable-debug --e nable-threads=win32 --disable-win32-registry --enable-languages=c --disable-werr or Thread model: win32 gcc version 4.2.0 20060606 (experimental) c:/temp/mgw/yourmingw/bin/../libexec/gcc/i686-pc-mingw32/4.2.0/cc1.exe -quiet - v -iprefix c:\temp\mgw\yourmingw\bin\../lib/gcc/i686-pc-mingw32/4.2.0/ hello.c - quiet -dumpbase hello.c -mtune=generic -auxbase hello -version -o C:\TEMP/ccktaa aa.s ignoring nonexistent directory "C:/TEMP/mgw/mymingw/include" ignoring nonexistent directory "/tmp/mgw/mymingw/include" ignoring nonexistent directory "C:/TEMP/mgw/mymingw/lib/gcc/i686-pc-mingw32/4.2. 0/include" ignoring nonexistent directory "C:/TEMP/mgw/mymingw/i686-pc-mingw32/include" ignoring nonexistent directory "/mingw/include" #include "..." search starts here: #include <...> search starts here: c:/temp/mgw/yourmingw/bin/../lib/gcc/i686-pc-mingw32/4.2.0/include End of search list. GNU C version 4.2.0 20060606 (experimental) (i686-pc-mingw32) compiled by GNU C version 4.2.0 20060606 (experimental). GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129918 Compiler executable checksum: fa3ae888985b8ab892ffd388ea6c3279 hello.c:1:19: error: stdio.h: No such file or directory hello.c: In function 'main': hello.c:5: warning: incompatible implicit declaration of built-in function 'prin tf' C:\TEMP\mgw> - ------------------------------ 8< ------------------------------ Thanks, Ranjit. - -- Ranjit Mathew Email: rmathew AT gmail DOT com Bangalore, INDIA. Web: http://rmathew.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEhU50Yb1hx2wRS48RAr1dAJ9fDgIvYe493D+uOCuCwC3HKRqBagCfXzRL DaA0CPYJBV3OfoPlSBK4jnc= =A+Jh -----END PGP SIGNATURE-----