• ChangeLog 2024-01-11 01:55 UTC-0500 Ron Pinkas

    From Ron Pinkas@21:1/5 to All on Thu Jan 11 01:56:22 2024
    2024-01-11 01:55 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
    * bin/bld.bat
    + Added support for MingW-CLang

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 11 10:27:34 2024
    Il 11/01/2024 07:56, Ron Pinkas ha scritto:

    2024-01-11 01:55 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    Sorry, I still get this:

    cc1.exe: error: CPU you selected does not support x86-64 instruction set mingw32-make: *** [winmake/compile.mak:374: obj\gc64\hbrmw64.o] Error 1

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Thu Jan 11 10:44:31 2024
    Enrico Maria Giordano wrote:


    Il 11/01/2024 07:56, Ron Pinkas ha scritto:

    2024-01-11 01:55 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    Sorry, I still get this:

    cc1.exe: error: CPU you selected does not support x86-64 instruction set mingw32-make: *** [winmake/compile.mak:374: obj\gc64\hbrmw64.o] Error 1


    You are not using CLang Enrico. I will soon post a guide.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 11 18:47:50 2024
    Il 11/01/2024 16:44, Ron Pinkas ha scritto:

    cc1.exe: error: CPU you selected does not support x86-64 instruction set
    mingw32-make: *** [winmake/compile.mak:374: obj\gc64\hbrmw64.o] Error 1

    You are not using CLang Enrico. I will soon post a guide.

    So we do not support MinGW not-CLANG anymore? If yes, why?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Ron Pinkas on Thu Jan 11 13:04:49 2024
    Ron Pinkas wrote:
    Enrico Maria Giordano wrote:


    Il 11/01/2024 07:56, Ron Pinkas ha scritto:

    2024-01-11 01:55 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    Sorry, I still get this:

    cc1.exe: error: CPU you selected does not support x86-64 instruction set mingw32-make: *** [winmake/compile.mak:374: obj\gc64\hbrmw64.o] Error 1


    You are not using CLang Enrico. I will soon post a guide.

    This is the TRUE Clang for Windows - with minimal Mingw-w64 support:

    https://github.com/mstorsjo/llvm-mingw

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Thu Jan 11 13:06:09 2024
    Enrico Maria Giordano wrote:


    Il 11/01/2024 16:44, Ron Pinkas ha scritto:

    cc1.exe: error: CPU you selected does not support x86-64 instruction set mingw32-make: *** [winmake/compile.mak:374: obj\gc64\hbrmw64.o] Error 1

    You are not using CLang Enrico. I will soon post a guide.

    So we do not support MinGW not-CLANG anymore? If yes, why?


    I did not touch MingW I only ADDED support for CLang

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 11 19:34:17 2024
    Il 11/01/2024 19:06, Ron Pinkas ha scritto:

    So we do not support MinGW not-CLANG anymore? If yes, why?

    I did not touch MingW I only ADDED support for CLang

    It worked fine before your changes, so you must have done something wrong.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 11 19:33:10 2024
    Il 11/01/2024 19:04, Ron Pinkas ha scritto:

    You are not using CLang Enrico. I will soon post a guide.

    This is the TRUE Clang for Windows - with minimal Mingw-w64 support:

    https://github.com/mstorsjo/llvm-mingw

    I have no clue about what to do with it, sorry. :-(

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Thu Jan 11 14:00:02 2024
    Enrico Maria Giordano wrote:


    Il 11/01/2024 07:56, Ron Pinkas ha scritto:

    2024-01-11 01:55 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    Sorry, I still get this:

    cc1.exe: error: CPU you selected does not support x86-64 instruction set mingw32-make: *** [winmake/compile.mak:374: obj\gc64\hbrmw64.o] Error 1


    1. Please review all code related to HB_ARCH - we now use w32 or w64
    2. Also I did standardise HB_ARCH so if you find instances of
    HB_ARCHITECTURE they need to be modified to HB_ARCH.
    3. We no longer plug %HB_ARCH% to lib name instead it is plugged into
    %SUB_DIR% after the compl;er abbreviation.

    Which batch file do you use?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 11 20:25:15 2024
    Il 11/01/2024 20:00, Ron Pinkas ha scritto:

    Which batch file do you use?

    SET CC_DIR=e:\fw\temp\mgw64
    make_gc64 all

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Thu Jan 11 15:58:47 2024
    Enrico Maria Giordano wrote:


    Il 11/01/2024 20:00, Ron Pinkas ha scritto:

    Which batch file do you use?

    SET CC_DIR=e:\fw\temp\mgw64
    make_gc64 all


    I don'tt have to test but will post tentative fix shorttly.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Thu Jan 11 23:14:51 2024
    Il 11/01/2024 21:58, Ron Pinkas ha scritto:

    SET CC_DIR=e:\fw\temp\mgw64
    make_gc64 all

    I don'tt have to test but will post tentative fix shorttly.

    And I will glad to test it, thank you.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Fri Jan 12 01:44:10 2024
    Enrico Maria Giordano wrote:


    Il 11/01/2024 19:04, Ron Pinkas ha scritto:

    You are not using CLang Enrico. I will soon post a guide.

    This is the TRUE Clang for Windows - with minimal Mingw-w64 support:

    https://github.com/mstorsjo/llvm-mingw

    I have no clue about what to do with it, sorry. :-(


    Download and unzip to C: drive (required for now) using default folder.

    https://github.com/mstorsjo/llvm-mingw/releases/download/20231128/llvm-mingw-20231128-ucrt-x86_64.zip

    For now you also need your xharbour directory to be on the C: drive.
    Then in xharbour directtory just type make_clng.bat.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Fri Jan 12 10:42:53 2024
    Il 12/01/2024 07:44, Ron Pinkas ha scritto:

    Download and unzip to C: drive (required for now) using default folder.

    https://github.com/mstorsjo/llvm-mingw/releases/download/20231128/llvm-mingw-20231128-ucrt-x86_64.zip

    For now you also need your xharbour directory to be on the C: drive.
    Then in xharbour directtory just type make_clng.bat.

    Sorry, I don't like all of this. I will wait for a more friendly setup.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Sat Jan 13 00:35:25 2024
    Enrico Maria Giordano wrote:


    Il 11/01/2024 21:58, Ron Pinkas ha scritto:

    SET CC_DIR=e:\fw\temp\mgw64
    make_gc64 all

    I don'tt have to test but will post tentative fix shorttly.

    And I will glad to test it, thank you.


    Might be resolved by 2024-01-13 00:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sat Jan 13 10:28:46 2024
    Il 13/01/2024 06:35, Ron Pinkas ha scritto:

    Might be resolved by 2024-01-13 00:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    Yes, now MGW32 and MGW64 (not-CLANG) build without errors. But two notes:

    - the names of the 64 bit LIBs don't have the 64 anymore. Example:

    libcommon64.a -> libcommon.a

    - there are many warnings in the contribs like these:

    source\compiler\harbour.c:2286:62: warning: bitwise comparison always
    evaluates to false [-Wtautological-compare]

    obj\gc64\comptool.c:478:24: warning: format '%u' expects argument of
    type 'unsigned int', but argument 8 has type 'HB_SIZE' {aka 'long long
    unsigned int'} [-Wformat=]

    include/hbapi.h:211:28: warning: missing braces around initializer [-Wmissing-braces]

    Should they silenced?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sat Jan 13 10:33:23 2024
    Unfortunately, MSC32, MSC64 and BCC32 build don't work anymore. :-(

    For your convenience xHarbour's bin directory was added to your PATH.
    "ERROR: Microsoft C/C++ not found!"

    ---------------------------------------
    Make Utility for Microsoft C/C++
    ---------------------------------------

    Microsoft C/C++ not found.
    Please install and try again.

    My batch:

    SET CC_DIR=e:\msc32\msc
    make_vc all

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Sat Jan 13 10:49:32 2024
    Enrico Maria Giordano wrote:


    Il 13/01/2024 06:35, Ron Pinkas ha scritto:

    Might be resolved by 2024-01-13 00:32 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>

    Yes, now MGW32 and MGW64 (not-CLANG) build without errors. But two notes:

    - the names of the 64 bit LIBs don't have the 64 anymore. Example:

    libcommon64.a -> libcommon.a


    Yes this is intentional, instead different architectures have their own
    sub dir, just like different compiler - since they arejust as
    incompatible.

    - there are many warnings in the contribs like these:

    source\compiler\harbour.c:2286:62: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

    obj\gc64\comptool.c:478:24: warning: format '%u' expects argument of
    type 'unsigned int', but argument 8 has type 'HB_SIZE' {aka 'long long unsigned int'} [-Wformat=]

    include/hbapi.h:211:28: warning: missing braces around initializer [-Wmissing-braces]

    Should they silenced?

    Preferbly reviewed and fixed - but we must be very careful - "fixing"
    warnings can just as easy cause real bugs.

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sat Jan 13 17:03:50 2024
    Il 13/01/2024 16:49, Ron Pinkas ha scritto:

    Yes, now MGW32 and MGW64 (not-CLANG) build without errors. But two notes:

    - the names of the 64 bit LIBs don't have the 64 anymore. Example:

    libcommon64.a -> libcommon.a

    Yes this is intentional, instead different architectures have their own
    sub dir, just like different compiler - since they arejust as
    incompatible.

    Ok, perfect. Is this true for all the other compilers? No more "64"
    distinction in the LIBs names? At this time I can't test them because,
    as I reported, they can't be built now.

    - there are many warnings in the contribs like these:

    source\compiler\harbour.c:2286:62: warning: bitwise comparison always
    evaluates to false [-Wtautological-compare]

    obj\gc64\comptool.c:478:24: warning: format '%u' expects argument of
    type 'unsigned int', but argument 8 has type 'HB_SIZE' {aka 'long long
    unsigned int'} [-Wformat=]

    include/hbapi.h:211:28: warning: missing braces around initializer
    [-Wmissing-braces]

    Should they silenced?

    Preferbly reviewed and fixed - but we must be very careful - "fixing" warnings can just as easy cause real bugs.

    They are contribs warnings, so, as you said recently, it should left
    untouched, or am I wrong?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Sat Jan 13 11:27:40 2024
    Enrico Maria Giordano wrote:

    Unfortunately, MSC32, MSC64 and BCC32 build don't work anymore. :-(

    For your convenience xHarbour's bin directory was added to your PATH.
    "ERROR: Microsoft C/C++ not found!"

    ---------------------------------------
    Make Utility for Microsoft C/C++
    ---------------------------------------

    Microsoft C/C++ not found.
    Please install and try again.

    My batch:

    SET CC_DIR=e:\msc32\msc
    make_vc all


    Thanks for the feedback - I Will review again. I did test and
    successfully build with:

    - bcc32 5.5 32bit
    - bcc32c 7.30 32bit
    - Clang 17.0.6 32bit and 64bit
    - Pelles C 12.0 32bit and 64bit
    - MSC 19.35.32216 32bit and 64bit

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Sat Jan 13 11:33:56 2024
    Enrico Maria Giordano wrote:


    Il 13/01/2024 16:49, Ron Pinkas ha scritto:

    Yes, now MGW32 and MGW64 (not-CLANG) build without errors. But two notes:

    - the names of the 64 bit LIBs don't have the 64 anymore. Example:

    libcommon64.a -> libcommon.a

    Yes this is intentional, instead different architectures have their own
    sub dir, just like different compiler - since they arejust as
    incompatible.

    Ok, perfect. Is this true for all the other compilers? No more "64" distinction in the LIBs names? At this time I can't test them because,
    as I reported, they can't be built now.

    Yes, all builds on Window should have distinct directory per Compiler/Architecture combination


    - there are many warnings in the contribs like these:

    source\compiler\harbour.c:2286:62: warning: bitwise comparison always evaluates to false [-Wtautological-compare]

    obj\gc64\comptool.c:478:24: warning: format '%u' expects argument of
    type 'unsigned int', but argument 8 has type 'HB_SIZE' {aka 'long long unsigned int'} [-Wformat=]

    include/hbapi.h:211:28: warning: missing braces around initializer [-Wmissing-braces]

    Should they silenced?

    Preferbly reviewed and fixed - but we must be very careful - "fixing" warnings can just as easy cause real bugs.

    They are contribs warnings, so, as you said recently, it should left untouched, or am I wrong?

    If it is OUR code, or code from projects that is no longer maintained,
    and if someone can review and fix then it should be carefully fixed.
    If it is 3rd party LIVE code (project is maintained and
    likely to have updates we may want) then code should not be modified
    unless contributor understands that such fix will be lost on next update.

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)