[MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
----------------------------+----------------------------
 Reporter:  stevecheckoway  |      Owner:
     Type:  update          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:
 Keywords:  haspatch        |       Port:  x86_64-elf-gcc
----------------------------+----------------------------
 This is a request for an update of x86_64-elf-gcc to the latest version.
 I've attached a diff of the Portfile. Running it as is gives the warnings

 {{{
 Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-
 file=$(DESTDIR)$(infodir)/x86_64-elf-gcc-dir|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/Makefile.in
 Warning: reinplace s|@file{cppinternals}|@file{x86_64-elf-cppinternals}|g
 didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/doc/cppinternals.texi
 Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-
 file=$(DESTDIR)$(infodir)/x86_64-elf-gcc-dir|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/Makefile.in
 Warning: reinplace s|@file{gcc}|@file{x86_64-elf-gcc}|g didn't change
 anything in /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64
 -elf-gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/doc/gcc.texi
 Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-
 file=$(DESTDIR)$(infodir)/x86_64-elf-gcc-dir|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/Makefile.in
 Warning: reinplace s|@file{gccint}|@file{x86_64-elf-gccint}|g didn't
 change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/doc/gccint.texi
 Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-
 file=$(DESTDIR)$(infodir)/x86_64-elf-gcc-dir|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/Makefile.in
 Warning: reinplace s|setfilename gccinstall.info|setfilename x86_64-elf-
 gccinstall.info|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/doc/gccinstall.info
 Warning: reinplace s|@file{gccinstall}|@file{x86_64-elf-gccinstall}|g
 didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/doc/gccinstall.info
 Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-
 file=$(DESTDIR)$(infodir)/x86_64-elf-gcc-dir|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/Makefile.in
 Warning: reinplace s|@file{gfortran}|@file{x86_64-elf-gfortran}|g didn't
 change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/gcc/fortran/gfortran.texi
 Warning: reinplace s|setfilename libquadmath.info|setfilename x86_64-elf-
 libquadmath.info|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/libquadmath/libquadmath.info
 Warning: reinplace s|@file{libquadmath}|@file{x86_64-elf-libquadmath}|g
 didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/libquadmath/libquadmath.info
 Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-
 file=$(DESTDIR)$(infodir)/x86_64-elf-gcc-dir|g didn't change anything in
 /opt/local/var/macports/build/_Users_steve_ports_cross_x86_64-elf-
 gcc/x86_64-elf-gcc/work/gcc-6.3.0/libquadmath/Makefile.in
 }}}

 and installing gives the warning

 {{{
 Warning: x86_64-elf-gcc installs files outside the common directory
 structure.
 }}}

 so I think something more needs to be done. The first group of warnings
 seem to come from the `-crossgcc.setup` function but otherwise seem
 harmless (namely the man and info pages seem fine). Fixing the second
 warning likely involves fixing something upstream (or having a local
 patch), but I haven't investigated it.

--
Ticket URL: <https://trac.macports.org/ticket/53802>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------
Changes (by stevecheckoway):

 * Attachment "Portfile.diff" added.


--
Ticket URL: <https://trac.macports.org/ticket/53802>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------------
  Reporter:  stevecheckoway  |      Owner:  nategriswold@…
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------------
Changes (by mf2k):

 * cc: nategriswold@… (removed)
 * owner:   => nategriswold@…
 * status:  new => assigned


--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------
Changes (by mf2k):

 * owner:  nategriswold@… =>


Comment:

 See #53855.

--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------

Comment (by anatol):

 x86_64-elf-gcc is a useful tool for cross compilation and it would be
 great to see it updated to the latest stable version (that is 7.1 at this
 moment). Would it be possible to bump the package?

--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------
Changes (by raimue):

 * Attachment "0001-x86_64-elf-gcc-Update-to-gcc-7.1.0-newlib-2.5.0.patch"
 added.


--
Ticket URL: <https://trac.macports.org/ticket/53802>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------

Comment (by raimue):

 The attached patch proposes an update to gcc 7.1.0 and newlib 2.5.0.
 However, the resulting destroot looks like it will very likely conflict
 with the native gcc on `${prefix}/lib/libcc1.so`. Most probably this needs
 a patch to move libcc1 to the appropriate subdirectory. Other
 distributions might already have it, but I have not looked.

 {{{
 $ ls -lA work/destroot/opt/local/lib/
 total 272
 drwxr-xr-x  3 root  admin     102 Jun 17 02:35 gcc/
 -rwxr-xr-x  1 root  admin  133848 Jun 17 02:36 libcc1.0.so*
 lrwxr-xr-x  1 root  admin      11 Jun 17 02:36 libcc1.so@ -> libcc1.0.so
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------
Changes (by stevecheckoway):

 * Attachment "Portfile.diff" added.

 Update to 7.1.0.

--
Ticket URL: <https://trac.macports.org/ticket/53802>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------

Comment (by stevecheckoway):

 Replying to [comment:5 raimue]:
 > The attached patch proposes an update to gcc 7.1.0 and newlib 2.5.0.
 However, the resulting destroot looks like it will very likely conflict
 with the native gcc on `${prefix}/lib/libcc1.so`. Most probably this needs
 a patch to move libcc1 to the appropriate subdirectory. Other
 distributions might already have it, but I have not looked.
 >
 > {{{
 > $ ls -lA work/destroot/opt/local/lib/
 > total 272
 > drwxr-xr-x  3 root  admin     102 Jun 17 02:35 gcc/
 > -rwxr-xr-x  1 root  admin  133848 Jun 17 02:36 libcc1.0.so*
 > lrwxr-xr-x  1 root  admin      11 Jun 17 02:36 libcc1.so@ -> libcc1.0.so
 > }}}

 What directory should those be in? This [https://bugs.debian.org/cgi-
 bin/bugreport.cgi?bug=856875 Debian bug] looks related, but MacPorts
 doesn't use a cross-gcc directory.

--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------

Comment (by stevecheckoway):

 For what it's worth, the gcc7 port puts its `libcc1.so` in
 `${prefix}/lib/gcc7`.

--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53802: x86_64-elf-gcc @6.3.0_0: Port update

MacPorts
In reply to this post by MacPorts
#53802: x86_64-elf-gcc @6.3.0_0: Port update
-----------------------------+----------------------
  Reporter:  stevecheckoway  |      Owner:
      Type:  update          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:                  |   Keywords:  haspatch
      Port:  x86_64-elf-gcc  |
-----------------------------+----------------------

Comment (by raimue):

 How about `${prefix}/lib/gcc/x86_64-elf/`, that would avoid the conflicts.
 Another step would be to fix path references to this file from other
 binaries or libraries in the installed files, probably using
 `install_name_tool`. Maybe it would even be easier to patch the path in
 gcc Makefiles.

--
Ticket URL: <https://trac.macports.org/ticket/53802#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS