2010/5/27 Itamar Lins <itamarl...@gmail.com>

> Em 27/5/2010 14:50, Viktor Szakáts escreveu:
>
> C:\harbour\trunk\harbour>set path=c:\mingw\bin;%PATH%
>
You not clean
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;*C:\mingw\bin*;C:\Dev\Harbour\bin;C:\Arquivos
de programas\TortoiseSVN\bin;C:\Arquivos de
programas\CVSNT\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;*
C:\mingw\bin;*C:\Dev\Harbour\bin;C:\Arquivos de
programas\TortoiseSVN\bin;C:\

C:\harbour\trunk\harbour>win-make.exe install
>
> Now compiling fine until here:
>
> lp.o dbgtinp.o dbgtmenu.o dbgtmitm.o dbgtwin.o debugger.o dbgtarr.o
> dbgthsh.o db
> gtobj.o tbrwtext.o dbgwa.o dbgbrwsr.o  ) || del /q /f
> ..\..\..\..\..\lib\win\min
> gw\libhbdebug.a
>        1 arquivo(s) copiado(s).
> gcc  -Wl,--nxcompat -Wl,--dynamicbase -shared
> -L../../../../../lib/win/mingw  -o
>  ../../../../../bin/win/mingw/harbour-21.dll __dyn__.tmp -lkernel32
> -luser32 -lw
> s2_32 -ladvapi32 -lgdi32
> -Wl,--out-implib,../../../../../lib/win/mingw/libharbou
>
> r-21.a,--output-def,../../../../../bin/win/mingw/harbour-21.def
> c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe:
> unrecogniz
> ed option '--nxcompat'
> c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: use
> the --
> help option for usage information
> collect2: ld returned 1 exit status
> win-make.exe[3]: *** [harbour-21.dll] Error 1
> win-make.exe[2]: *** [descend] Error 2
> win-make.exe[1]: *** [dynlib.inst] Error 2
> win-make.exe: *** [src.inst] Error 2
>
>
>
I found a prev reply to unrecognized option '--nxcompat'

I can just guess without seeing the beginning of your log output.
Maybe you manually set HB_COMPILER (without setting HB_COMPILER_VER).

Viktor

Ah.  Correct again!  I thought if the gcc version I wanted to use before any
other was first in the windows path, it would only be used... but I am
incorrect.

# proper
! HB_COMPILER: mingw (v44) (autodetected: c:/mingw/bin/)

# problematic
! HB_COMPILER: mingw (v45) (autodetected: c:/mingw/bin/gcc.exe
C:/strawberry/c/bin/)

If it detected Strawberry Perl's gcc version after mine, which it seems like
it did as it comes 2nd on the above printout.... can't the version detect /
only use the first one, c:/mingw/bin/gcc.exe?

This time, I was reading other threads about problems like these... but
perhaps I made too big of an assumption this tim
SMU

I'm afraid not. In general it's not very good to mix
different compilers in PATH, but it's especially not
good mix two different gcc versions in PATH at the same
time. INSTALL doc makes this very clear.

There is no compiler selector logic in our build system,
since it would be a complete nightmare to test (hundreds
of different combinations) and maintain just to sort out
otherwise not very likely configurations as above. Notice
that mixing compilers is not only bad for Harbour, but it's
generally bad practice on Windows systems.

Viktor

>
>

-- 
Massimo Belgrano
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to