public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/100613] New: libgccjit should produce dylib on macOS
@ 2021-05-15 13:07 wyuenho at gmail dot com
  2021-05-17 12:30 ` [Bug jit/100613] " egallager at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: wyuenho at gmail dot com @ 2021-05-15 13:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

            Bug ID: 100613
           Summary: libgccjit should produce dylib on macOS
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: wyuenho at gmail dot com
  Target Milestone: ---

Created attachment 50818
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50818&action=edit
Make-lang.in patch to fix library ext on macOS

Compiling GCC with the language jit currently does not produce the correct
share library extension on macOS due to omission in Make-lang.in. The patch to
correct this is provided. You can also find the patch in Macports at
https://raw.githubusercontent.com/macports/macports-ports/master/lang/gcc11/files/patch-Make-lang.in.diff

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
@ 2021-05-17 12:30 ` egallager at gcc dot gnu.org
  2021-08-05 12:26 ` iains at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-05-17 12:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org,
                   |                            |iains at gcc dot gnu.org
           Keywords|                            |patch

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Please send the patch to the gcc-patches mailing list for review; it's likely
to get lost if it's only here.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
  2021-05-17 12:30 ` [Bug jit/100613] " egallager at gcc dot gnu.org
@ 2021-08-05 12:26 ` iains at gcc dot gnu.org
  2021-08-18 18:52 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu.org @ 2021-08-05 12:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|dmalcolm at gcc dot gnu.org        |iains at gcc dot gnu.org
   Last reconfirmed|                            |2021-08-05
             Status|UNCONFIRMED                 |NEW
   Target Milestone|---                         |11.3
     Ever confirmed|0                           |1

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
I have a preference for setting the correct library name when it is created,
and for setting the library versioning information in the 'usual' Darwin way.

The reason being that I have patches in flight for using "@rpath/....." for the
library names to fix the issues we have with testing on platforms with SIP
enabled (post 10.11).

Patches are under test.

NOTE there are issues with testing too - namely that the testsuite code is
currently making assumptions about support for --export-dynamic (it should
conditionally use -rdynamic IMO) and also that it assumes dejagnu.h is visible
in the default compiler lookup paths (it isn't on Darwin)... then we reach the
obstacle that the dejagnu.h from at least 1.6.2 has an unused variable in C
compilations + the wait function declaration clashes with the system's decl for
'wait'.

When all these things are fixed, we have two more issues that I've not been
able to address yet - namely that we get bad code-gen when "-g" is on the
command line, and that it seems that sometimes we get hanging tests that are
not killed by the testsuite machinery - so that the whole "make check" hangs.

At least I plan to address the issues for which the solution is clear - for the
last two things I think that more understanding of the processes used by the
Jit will be needed.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
  2021-05-17 12:30 ` [Bug jit/100613] " egallager at gcc dot gnu.org
  2021-08-05 12:26 ` iains at gcc dot gnu.org
@ 2021-08-18 18:52 ` cvs-commit at gcc dot gnu.org
  2022-04-14  5:22 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-18 18:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <iains@gcc.gnu.org>:

https://gcc.gnu.org/g:08defd9c4e4f8dc428f2f490705ab816af81a03d

commit r12-3008-g08defd9c4e4f8dc428f2f490705ab816af81a03d
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Aug 5 09:55:19 2021 +0100

    Darwin, jit: Fix build [PR100613].

    The generic unix build is not completely suitable for Darwin
    platforms:

     * It is a convention to encode the library versioning in the
       binary and to have only one level of symlink for the installed
       files. This needs to be applied to the installation too.
     * The library needs to be built with its correct install name
       so that two-level library naming works.
     * The extension for shared libraries should be .dylib

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR jit/100613 - libgccjit should produce dylib on macOS

            PR jit/100613

    gcc/jit/ChangeLog:

            * Make-lang.in: Provide clauses for Darwin hosts.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
                   ` (2 preceding siblings ...)
  2021-08-18 18:52 ` cvs-commit at gcc dot gnu.org
@ 2022-04-14  5:22 ` cvs-commit at gcc dot gnu.org
  2022-04-21  7:49 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-14  5:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

https://gcc.gnu.org/g:846d19e44c85c83a50e51867d854f8d98a087a77

commit r11-9857-g846d19e44c85c83a50e51867d854f8d98a087a77
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Aug 5 09:55:19 2021 +0100

    Darwin, jit: Fix build [PR100613].

    The generic unix build is not completely suitable for Darwin
    platforms:

     * It is a convention to encode the library versioning in the
       binary and to have only one level of symlink for the installed
       files. This needs to be applied to the installation too.
     * The library needs to be built with its correct install name
       so that two-level library naming works.
     * The extension for shared libraries should be .dylib

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR jit/100613 - libgccjit should produce dylib on macOS

            PR jit/100613

    gcc/jit/ChangeLog:

            * Make-lang.in: Provide clauses for Darwin hosts.

    (cherry picked from commit 08defd9c4e4f8dc428f2f490705ab816af81a03d)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
                   ` (3 preceding siblings ...)
  2022-04-14  5:22 ` cvs-commit at gcc dot gnu.org
@ 2022-04-21  7:49 ` rguenth at gcc dot gnu.org
  2022-06-09 19:22 ` cvs-commit at gcc dot gnu.org
  2022-06-09 19:30 ` iains at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21  7:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.3                        |11.4

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
                   ` (4 preceding siblings ...)
  2022-04-21  7:49 ` rguenth at gcc dot gnu.org
@ 2022-06-09 19:22 ` cvs-commit at gcc dot gnu.org
  2022-06-09 19:30 ` iains at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-09 19:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

https://gcc.gnu.org/g:e1f99a4b0563e53a6ea5d03b44d5a4c27699c50b

commit r10-10820-ge1f99a4b0563e53a6ea5d03b44d5a4c27699c50b
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Aug 5 09:55:19 2021 +0100

    Darwin, jit: Fix build [PR100613].

    The generic unix build is not completely suitable for Darwin
    platforms:

     * It is a convention to encode the library versioning in the
       binary and to have only one level of symlink for the installed
       files. This needs to be applied to the installation too.
     * The library needs to be built with its correct install name
       so that two-level library naming works.
     * The extension for shared libraries should be .dylib

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

    PR jit/100613 - libgccjit should produce dylib on macOS

            PR jit/100613

    gcc/jit/ChangeLog:

            * Make-lang.in: Provide clauses for Darwin hosts.

    (cherry picked from commit 08defd9c4e4f8dc428f2f490705ab816af81a03d)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug jit/100613] libgccjit should produce dylib on macOS
  2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
                   ` (5 preceding siblings ...)
  2022-06-09 19:22 ` cvs-commit at gcc dot gnu.org
@ 2022-06-09 19:30 ` iains at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu.org @ 2022-06-09 19:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100613

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> ---
so fixed on open branches.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-09 19:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 13:07 [Bug jit/100613] New: libgccjit should produce dylib on macOS wyuenho at gmail dot com
2021-05-17 12:30 ` [Bug jit/100613] " egallager at gcc dot gnu.org
2021-08-05 12:26 ` iains at gcc dot gnu.org
2021-08-18 18:52 ` cvs-commit at gcc dot gnu.org
2022-04-14  5:22 ` cvs-commit at gcc dot gnu.org
2022-04-21  7:49 ` rguenth at gcc dot gnu.org
2022-06-09 19:22 ` cvs-commit at gcc dot gnu.org
2022-06-09 19:30 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).