Search Criteria
Package Details: msp430-elf-newlib 4.4.0.20231231-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/msp430-elf-newlib.git (read-only, click to copy) |
---|---|
Package Base: | msp430-elf-newlib |
Description: | C library for bare metal systems for the msp430-elf target. |
Upstream URL: | https://sourceware.org/newlib/ |
Licenses: | BSD |
Groups: | devel |
Submitter: | vonPalitroque |
Maintainer: | vonPalitroque |
Last Packager: | vonPalitroque |
Votes: | 9 |
Popularity: | 0.000410 |
First Submitted: | 2015-09-19 18:20 (UTC) |
Last Updated: | 2024-08-03 18:16 (UTC) |
Dependencies (2)
- msp430-elf-binutilsAUR (msp430-elf-gcc-binAUR)
- msp430-elf-gcc-stage1AUR (msp430-elf-gccAUR)
Latest Comments
1CatchMe1 commented on 2018-05-27 14:47 (UTC)
installing msp430-elf-gcc-stage1 first solved the issue!!
vonPalitroque commented on 2018-04-07 00:58 (UTC)
Greetings, 1CatchMe1:
This happens whenever the library fails to build at an earlier stage. Unfortunately, the build system for newlib is rather obtuse in that it does not stop immediately after an error occurred if something failed to compile. I tried to rebuild this PKGBUILD in an attempt to reproduce a possible error and I did find one. I will describe the issue I had.
In a recent update in ArchLinux the soname for libmpfr.so changed (part of the mpfr package). We now have /usr/lib/libmpfr.so.6 in our systems, whereas previously msp430-elf-gcc was built against /usr/lib/libmpfr.so.4. When the compiler runs, I get this kind of error:
msp430-elf-gcc -B/tmp/packerbuild-1000/msp430-elf-newlib/msp430-elf-newlib/src/newlib-3.0.0/newlib-build/msp430-elf/430/newlib/ -isystem /tmp/packerbuild-1000/msp430-elf-newlib/msp430-elf-newlib/src/newlib-3.0.0/newlib-build/msp430-elf/430/newlib/targ-include -isystem /tmp/packerbuild-1000/msp430-elf-newlib/msp430-elf-newlib/src/newlib-3.0.0/newlib/libc/include -B/tmp/packerbuild-1000/msp430-elf-newlib/msp430-elf-newlib/src/newlib-3.0.0/newlib-build/msp430-elf/430/libgloss/msp430 -L/tmp/packerbuild-1000/msp430-elf-newlib/msp430-elf-newlib/src/newlib-3.0.0/newlib-build/msp430-elf/430/libgloss/libnosys -L/tmp/packerbuild-1000/msp430-elf-newlib/msp430-elf-newlib/src/newlib-3.0.0/libgloss/msp430 -mcpu=msp430 -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"3.0.0\" -DPACKAGE_STRING=\"newlib\ 3.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../newlib/libc/ssp -Os -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY -ffunction-sections -fdata-sections -mOs -mhwmult=none -DNO_SYSCALLS -DNO_FLOATING_POINT -DMISSING_SYSCALL_NAMES -fno-builtin -Os -g -ffunction-sections -fdata-sections -mcpu=msp430 -c -o lib_a-chk_fail.o
test -f 'chk_fail.c' || echo '../../../../../../newlib/libc/ssp/'
chk_fail.c/usr/lib/gcc/msp430-elf/6.3.0/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
make[8]: *** [Makefile:397: lib_a-chk_fail.o] Error 1
Across all compilation units. Unfortunately, the build system for newlib just rolls with it and ultimately tries to actually pack the library. Then, I get the error you saw.
Please see if this is the case for you, and if so, rebuild msp430-elf-gcc or stage1 as needed. It should link against the new core/mpfr package.
Also, I am flagging this package out of date, as a new snapshot of newlib was released. I will be uploading a new PKGBUILD for it sometime this weekend, once I have time to test the full toolchain.
Cheers,
Orlando.
1CatchMe1 commented on 2018-04-06 20:52 (UTC) (edited on 2018-04-06 20:53 (UTC) by 1CatchMe1)
I am getting this error
msp430-elf-ar rc ../libc.a *.o
msp430-elf-ar: ../argz/lib.a: No such file or directory
msp430-elf-ar: ../stdlib/lib.a: No such file or directory
msp430-elf-ar: ../ctype/lib.a: No such file or directory
msp430-elf-ar: ../search/lib.a: No such file or directory
msp430-elf-ar: ../stdio/lib.a: No such file or directory
msp430-elf-ar: ../string/lib.a: No such file or directory
msp430-elf-ar: ../signal/lib.a: No such file or directory
msp430-elf-ar: ../time/lib.a: No such file or directory
msp430-elf-ar: ../locale/lib.a: No such file or directory
msp430-elf-ar: ../reent/lib.a: No such file or directory
msp430-elf-ar: ../errno/lib.a: No such file or directory
msp430-elf-ar: ../misc/lib.a: No such file or directory
msp430-elf-ar: ../ssp/lib.a: No such file or directory
msp430-elf-ar: ../machine/lib.a: No such file or directory