Description of problem: I'm trying to build an application against the Nordic Semiconductor SDK, and fails to build my application with /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: cannot find -lc_nano I looked inside the files owned by this package, and there is a libc.a, but not libc_nano.a. It does include the nano.specs file for each arm architecture supported by this lib, but the library itself doesn't seem to be built by this application. The ubuntu equivalent package does include these files as seen here: http://packages.ubuntu.com/vivid/all/libnewlib-arm-none-eabi/filelist How reproducible: every time. Steps to Reproduce: 1. attempt to build an application that uses -lc and includes nano.specs 2. 3. Actual results: fails to build with : /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: cannot find -lc_nano Expected results: successfully builds Additional info:
I've got a work in progress version of this, just so you can see how it's done. I went through Debian, Ubuntu, and Arch's packages to see how they handled this. I've made some other changes to the spec file in the process, so it'd be nice if we could meet on IRC or some similar place to talk about them. Particularly I'd like to talk about some of the ./configure flags. I've added comments in the spec that mentions the specific flags.
Created attachment 1057899 [details] updated version of the spec file It's not a patch, because there are too many initial irrelevant changes.
thanks
so what do you think about these parts? I was hoping to discuss them. I can't say I'm familiar with the, but is there any reason we don't use those options? +# ARCH AND UBUNTU HAVE +# --enable-newlib-io-long-long \ +# --enable-newlib-register-fini \ +# ARCH AND UBUNTU DON'T HAVE +# --enable-interwork \ +# --enable-multilib \
I want to keep the options that ubuntu does not have: > --enable-interwork allows ARM and Thumb code to be used > --enable-multilib build multiple versions of some libs (e.g. soft- and hardfloat, little- and big endian) I can probably add --enable-newlib-io-long-long For the --enable-newlib-register-fini even in ubuntu they discussed about removing this https://answers.launchpad.net/gcc-arm-embedded/+question/227709 I did not find why they did not do it in the end.
that sounds good to me. Honestly I didn't know anything about this lib.. I was just trying to make it work :)
just remove those comments once you've decided
arm-none-eabi-gcc-cs-5.2.0-2.fc23 arm-none-eabi-newlib-2.2.0_1-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15077
is it ok to close this now?
(In reply to Johnny Robeson from comment #9) > is it ok to close this now? No. It will be automatically closed by update system once update passes testing and gets into stable update repository.
arm-none-eabi-gcc-cs-5.2.0-2.fc21, arm-none-eabi-newlib-2.2.0_1-6.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update arm-none-eabi-gcc-cs arm-none-eabi-newlib'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15075
arm-none-eabi-gcc-cs-5.2.0-2.fc22, arm-none-eabi-newlib-2.2.0_1-6.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update arm-none-eabi-gcc-cs arm-none-eabi-newlib'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15076
arm-none-eabi-gcc-cs-5.2.0-2.fc23, arm-none-eabi-newlib-2.2.0_1-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update arm-none-eabi-gcc-cs arm-none-eabi-newlib'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15077
arm-none-eabi-gcc-cs-5.2.0-2.fc23, arm-none-eabi-newlib-2.2.0_1-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
arm-none-eabi-gcc-cs-5.2.0-2.fc22, arm-none-eabi-newlib-2.2.0_1-6.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
arm-none-eabi-gcc-cs-5.2.0-2.fc21, arm-none-eabi-newlib-2.2.0_1-6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.