Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#51397 closed enhancement (fixed)

Newlib nano support for arm-none-eabi-gcc toolchain

Reported by: ekawahyu (Ekawahyu Susilo) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: denis-fr (Denis), mojca (Mojca Miklavec)
Port: arm-none-eabi-gcc

Description

Hi, would it be possible to add newlib nano support for arm-none-eabi-gcc toolchain? Thank you.

Attachments (5)

Portfile.arm-none-eabi-gcc.diff (1.3 KB) - added by denis-fr (Denis) 8 years ago.
diff Portfile arm-none-eabi-gcc
Portfile.arm-none-eabi-gcc (1.4 KB) - added by denis-fr (Denis) 8 years ago.
Portfile arm-none-eabi-gcc with newlib 2.4.0
crossgcc-1.0.tcl.diff (1.5 KB) - added by denis-fr (Denis) 8 years ago.
crossgcc-1.0.tcl (9.5 KB) - added by denis-fr (Denis) 8 years ago.
change all gcc-${version} by gcc-${crossgcc.version}
Portfile (3.0 KB) - added by denis-fr (Denis) 8 years ago.
Portfile for newlib nano

Download all attachments as: .zip

Change History (16)

comment:1 Changed 8 years ago by denis-fr (Denis)

Hello,
I have the same request.
"newlib-nano is now integrated in the main newlib source tree. Building newlib-nano is now a matter of specifying the right configure option." according to this discussion: https://answers.launchpad.net/gcc-arm-embedded/+question/244125

I try to do it, it is not very clean but it seems to work:

  1. Update arm-none-eabi-gcc Portfile to get last newlib version and allow libgloss library to be compiled (as variant).
  2. Small change in group crossgcc-1.0.tcl (/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/crossgcc-1.0.tcl) to make it reusable: change all gcc-${version} by gcc-${crossgcc.version}
  3. Create a arm-none-eabi-newlib-nano Portfile to add *_nano.a files. To do it I recompile a gcc+newlib with specific configure option + -Os optimization. And them rename *.a files to *_nano.a files (others files are discard).

This seems to works.

Last edited 8 years ago by denis-fr (Denis) (previous) (diff)

Changed 8 years ago by denis-fr (Denis)

diff Portfile arm-none-eabi-gcc

Changed 8 years ago by denis-fr (Denis)

Attachment: Portfile.arm-none-eabi-gcc added

Portfile arm-none-eabi-gcc with newlib 2.4.0

Changed 8 years ago by denis-fr (Denis)

Attachment: crossgcc-1.0.tcl.diff added

Changed 8 years ago by denis-fr (Denis)

Attachment: crossgcc-1.0.tcl added

change all gcc-${version} by gcc-${crossgcc.version}

Changed 8 years ago by denis-fr (Denis)

Attachment: Portfile added

Portfile for newlib nano

comment:2 Changed 8 years ago by denis-fr (Denis)

Cc: denis@… added

Cc Me!

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to stuartwesterman@…
Port: arm-none-eabi-gcc added
Type: requestenhancement
Version: 2.3.4

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers arm-none-eabi-gcc), if any.

comment:4 Changed 8 years ago by mf2k (Frank Schima)

Owner: stuartwesterman deleted
Status: newassigned

comment:5 Changed 8 years ago by mf2k (Frank Schima)

  • Why is this in a variant called libgloss? Is there a reason not to always add --with-libgloss?
  • Does it require any dependencies?

comment:6 Changed 6 years ago by mojca (Mojca Miklavec)

Cc: mojca added

comment:7 Changed 6 years ago by mojca (Mojca Miklavec)

Keywords: haspatch added

I was looking through all the tickets related to this port due to another unrelated problem.

newlib has been updated in the meantime to 3.0.0, even though an even newer version seems to be available at the moment (3.0.0.20180831, I can update to that one if needed), and the port has been simplified to quite some extent. We could also switch to gcc 8.

Would you be willing to review the patches with respect to the current state of the port? (ideally with a PR, so that it gets more attention from others as well, but patches are also ok.) I would like to address this ticket, but I don't know how to properly test and there have been quite some changes in the meantime. (We are somewhat understaffed, so it's a pity that some tickets get overlooked; nonmaintained ports as this one are most problematic.)

Not sure if this is related or not: #57572.

Last edited 6 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:9 Changed 5 years ago by mojca (Mojca Miklavec)

Owner: set to mojca

comment:10 Changed 5 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: assignedclosed

In 569684dbbe8d87a10728a9d9f2a4854b72d54fe2/macports-ports (master):

crossgcc: add symlink to libgloss

Closes: #51397
Closes: #57572

comment:11 Changed 5 years ago by mojca (Mojca Miklavec)

In 8188ed1d3a237186b54ee3cc7c9078008b69d50b/macports-ports (master):

arm-none-eabi-gcc: update to 9.2.0

See: #51397
See: #57572

Note: See TracTickets for help on using tickets.