>As I wrote in one of previous messages this it's quite dangerous to use
>code like:
> for %i in ( *$(OBJ_EXT) ) do @echo -+ %i >> __lib__.tmp
>to create library and above situation exploited the problem.
>Temporary file hbpp.obj created indirectly for hbpp.exe is added
>to hbpp library. The same happens in GCC OS2 build though 'ar'
>does not report above warnings.
>I've just checked old messages between me and Maurilio and found why
>it was added to os2/gcc.cf.
>I can hardcode protection against it but instead of adding workaround
>I would like to find cleaner way to create library without above
> for %i in ( *$(OBJ_EXT) ) do ...
>in os2/gcc.cf and watcom.cf
>The problem is caused by the GNU make 3.81 OS2 port. It GPFs with
>original line:
> $(foreach file, $(^F), $(lib_object))
>when the list of files is very long. Probably due insufficient memory
>allocated for some operations and buffer overflow. There is question
>if we can find workarond for it.
>In a while I'll commit modifications to os2/watcom.cf which divided
>list of library files into few smaller lists which should not exceed
>1024 characters command line size limit in OS2.
>Please test it.
> * harbour/config/os2/watcom.cf
> ! fixes for real OS2 command processor - please test
Current Harbour under OS/2
* $Id: ChangeLog 11949 2009-07-31 11:21:30Z druzus $
2009-07-31 13:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
It fail with:
--------------------------------
make[3]: *** [hbrtl.lib] Segmentation fault
make[2]: *** [descend] Error 2
make[1]: *** [rtl] Error 2
make: *** [source] Error 2
--------------------------------
and make_ow.log contain:
--------------------------------
wpp386 -zq -bt=OS2 -w3 -5r -fp5 -onaehtr -s -ei -zp4 -zt0 -oi+ -i.
-i../../../../../include -DHB_FM_STATISTICS_OFF wait.c -fo=wait.obj
echo ../../../../../lib/os2/watcom/hbrtl.lib > __lib__.tmp
make[3]: Leaving directory
`E:/harbour907e/harbour/source/rtl/obj/os2/watcom'
make[2]: Leaving directory `E:/harbour907e/harbour/source/rtl'
make[1]: Leaving directory `E:/harbour907e/harbour/source'
--------------------------------
As old failure, can not create and fill __lib__.tmp
David Macias
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour