Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#63320 - [arm-none-eabi-newlib] Configuration should match GNU Arm Embedded Toolchain

Attached to Project: Community Packages
Opened by Thomas Kindler (thomask) - Tuesday, 30 July 2019, 13:20 GMT
Last edited by Anatol Pomozov (anatolik) - Monday, 16 September 2019, 04:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The PKGBUILD does not use the same config options as the official GNU Arm Embedded Toolchain.

Most importantly, the "--enable-newlib-retargetable-locking" option is missing, which makes the library unusable for multi-threaded systems. This is a quite subtle thing, that took me some hours to find :/


I think, we should use the same flags as in the official toolchain:

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm

For the "normal" newlib this means:

--enable-newlib-io-long-long \
--enable-newlib-io-c99-formats \
--enable-newlib-register-fini \
--enable-newlib-retargetable-locking \
--disable-newlib-supplied-syscalls \
--disable-nls

.. and for "nano":

--disable-newlib-supplied-syscalls \
--enable-newlib-reent-small \
--enable-newlib-retargetable-locking \
--disable-newlib-fvwrite-in-streamio \
--disable-newlib-fseek-optimization \
--disable-newlib-wide-orient \
--enable-newlib-nano-malloc \
--disable-newlib-unbuf-stream-opt \
--enable-lite-exit \
--enable-newlib-global-atexit \
--enable-newlib-nano-formatted-io \
--disable-nls

Additional info:
* package version: 3.1.0-1

I can send a patch if desired.

best regards,
Thomas Kindler
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Monday, 16 September 2019, 04:05 GMT
Reason for closing:  Fixed
Comment by Anatol Pomozov (anatolik) - Thursday, 05 September 2019, 05:49 GMT
Thanks for the filing the ticket and sorry for the delay.

package version 3.1.0-2 with updated flags just pushed to [community-testing]. If you have a chance please verify that it works as expected now.

Loading...