Send MinGW-Notify mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."


Please do not reply to this notification; the sender address is unable to 
accept incoming e-mail.  If you wish to unsubscribe you can do so at 
https://lists.osdn.me/mailman/listinfo/mingw-notify.



Today's Topics:

   1. [mingw] #41099: GCC-9.2.0 Build System Neglects to Provide
      Ada-DLL Import Libraries (MinGW Notification List)
   2. [mingw] #41099: GCC-9.2.0 Build System Neglects to Provide
      Ada-DLL Import Libraries (MinGW Notification List)
   3. [mingw] #41070: Please include libgccjit with MinGW GCC
      distribution (MinGW Notification List)


----------------------------------------------------------------------

Message: 1
Date: Sun, 03 Jan 2021 16:03:38 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #41099: GCC-9.2.0 Build System
        Neglects to Provide Ada-DLL Import Libraries
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#41099: GCC-9.2.0 Build System Neglects to Provide Ada-DLL Import Libraries

  Open Date: 2021-01-03 16:03
Last Update: 2021-01-03 16:03

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/41099
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41099

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-01-03 16:03 Updated by: keith
 * New Ticket "GCC-9.2.0 Build System Neglects to Provide Ada-DLL Import
Libraries" created



---------------------------------------------------------------------
Ticket Status:

      Reporter: keith
         Owner: keith
          Type: Issues
        Status: Open [Owner assigned]
      Priority: 1 - Lowest
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

When building the MinGW release of GCC-9.2.0, the Ada DLLs, libgnat-9.dll, and
libgnarl-9.dll, were created automatically, but the accompanying libgnat.dll.a,
and libgnarl.dll.a, were not. For previous GCC versions, I had a MinGW-specific
patch to correct this deficiency, but the upstream source changed significantly
between GCC-8 and GCC-9, and my original patch is no longer applicable.

To produce the original MinGW GCC-9.2.0 Ada packages, I generated libgnat.dll.a
and libgnarl.dll.a manually, from the respective DLLs, using pexports and
dlltool; it would be useful to formulate a new patch, to automate the build
process.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/41099
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41099


------------------------------

Message: 2
Date: Sun, 03 Jan 2021 16:57:37 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #41099: GCC-9.2.0 Build System
        Neglects to Provide Ada-DLL Import Libraries
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#41099: GCC-9.2.0 Build System Neglects to Provide Ada-DLL Import Libraries

  Open Date: 2021-01-03 16:03
Last Update: 2021-01-03 16:57

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/41099
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41099

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-01-03 16:57 Updated by: keith
 * Status Update from Open to Closed

 * Resolution Update from None to Fixed


Comment:

The attached patch resolves the issue, by removing the inappropriate
-Wl,-soname, option, and replacing it with the -Wl,--out-implib, option, (with
appropriately adjusted file name argument), from the make commands specified
for the gnatlibs-shared-win32 target, when linking each of libgnat-9.dll and
libgnarl-9.dll.



---------------------------------------------------------------------
Ticket Status:

      Reporter: keith
         Owner: keith
          Type: Issues
        Status: Closed
      Priority: 1 - Lowest
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

When building the MinGW release of GCC-9.2.0, the Ada DLLs, libgnat-9.dll, and
libgnarl-9.dll, were created automatically, but the accompanying libgnat.dll.a,
and libgnarl.dll.a, were not. For previous GCC versions, I had a MinGW-specific
patch to correct this deficiency, but the upstream source changed significantly
between GCC-8 and GCC-9, and my original patch is no longer applicable.

To produce the original MinGW GCC-9.2.0 Ada packages, I generated libgnat.dll.a
and libgnarl.dll.a manually, from the respective DLLs, using pexports and
dlltool; it would be useful to formulate a new patch, to automate the build
process.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/41099
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41099


------------------------------

Message: 3
Date: Sun, 03 Jan 2021 22:05:04 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #41070: Please include libgccjit with
        MinGW GCC distribution
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

#41070: Please include libgccjit with MinGW GCC distribution

  Open Date: 2020-12-23 17:28
Last Update: 2021-01-03 22:05

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/41070
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41070

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-01-03 22:05 Updated by: keith

Comment:

With the previously posted series of patches, (20...22), augmenting the
pre-existing series for MinGW GCC-9.2.0, the libgccjit shared library sources
compile; however, they do not link, because they introduce an unresolved
dependency on pthreads mutexes.

While it would be technically feasible to include -lpthread within the link
operation, and so resolve this dependency, but, as noted in this mailing-list
message:

            The dependency on pthreads is also unfortunate, as that many times
            conflicts with w32api headers and creates build problems. It would
            be good to avoid that dependency, if possible.

        It arises because the JIT context is gratuitously guarded by a POSIX
        mutex lock. Perhaps that could be converted to a Windows alternative,
        (critical section, maybe); perhaps GCC-10 already does so, because the
        patches you pointed me to do nothing to address this.

    I think MinGW64 simply requires pthreads in all the GCC-related builds, we
    had our share of problems stemming from that in Emacs development, when
    MinGW64 users complained about that.
    It should be very simple to replace a pthreads mutex lock with a critical
    section, if GCC 10 didn't.

the dependency on a third-party pthreads mutex implementation does seem kind of
alien, on the Windows platform, when a native alternative would appear to be
entirely feasible.

FWIW, a cursory examination of the GCC-10 sources suggests that the pthreads
mutex dependency is still present, without change. Consequently, while not
entirely trivial, I have engineered a relatively simple replacement, in terms
of a native Windows CRITICAL_SECTION; it may be found in the attached
23-libgccjit-win32-no-pthreads.patch.



---------------------------------------------------------------------
Ticket Status:

      Reporter: eliz
         Owner: keith
          Type: Feature Request
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: (None)
     Component: GCC
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Please add libgccjit to the binaries included in the MinGW GCC distributions.
This is required to be able to build projects that use libgccjit for JIT
compilation of code. One example of this is "gccemacs", a branch of GNU Emacs
development (soon to land on the master branch of Emacs) that compiles Emacs
Lisp programs into native x86 code for faster runtime performance.

Thank you.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/41070
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41070


------------------------------

Subject: Digest Footer

_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify


------------------------------

End of MinGW-Notify Digest, Vol 40, Issue 2
*******************************************

Reply via email to