Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: [ISSUE] [CLOSED] cross-arm-none-eabi fail to link
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-1824@inbox.vuxu.org>
@ 2019-06-01 18:42 ` voidlinux-github
  0 siblings, 0 replies; only message in thread
From: voidlinux-github @ 2019-06-01 18:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1867 bytes --]

Closed issue by herveq on void-packages repository

https://github.com/void-linux/void-packages/issues/1824
Description: ### System
Void 4.16.9_1 x86_64-musl GenuineIntel notuptodate hold rrrnF
package cross-arm-none-eabi

Hi all

I have been playing with a compiler gcc-arm-none-eabi-4_9-2015q2-20150609 
from launchpad.net for stm32, since many months. I had to compile it to run
on Void Linux musl. For the discussion, I call it REF1.

Recently, I discovered the Void Linux package cross-arm-none-eabi and I
thought it could serve the same purpose as REF1. So I installed it, modified
my test project makefile to use it. I call it REF2.

The compiler looks to work fine, but the linker complains about:
undefined reference to `memcpy'
undefined reference to `strlen'...

That is like a missing library. REF2 libraries are installed in
/usr/arm-none-eabi/usr/lib that has exactly the same structure as my
REF1/arm-none-eabi/usr/lib

For a test, I replaced REF2/arm-none-eabi/usr/lib with 
REF1/arm-none-eabi/usr/lib. And then the link succeeded, that means
REF2/libs are bad formatted. Some tests on libs:


REF1 lib/libc_nano.a
ls -l /home8/gnuarm/arm-none-eabi/arm-none-eabi/lib/libc_nano.a
-rw-r--r-- 1 hq hq 4090018 Feb 17  2017 /home8/gnuarm/arm-none-eabi/arm-none-eabi/lib/libc_nano.a
ar x /home8/gnuarm/arm-none-eabi/arm-none-eabi/lib/libc_nano.a
nm lib_a-memcpy.o
00000000 t $a
00000010 N $d
00000000 T memcpy

REF2 arm-none-eabi/usr/lib/libc_nano.a
ls -l /usr/arm-none-eabi/usr/lib/libc_nano.a
-rw-r--r-- 2 root root 561896 Jul 28 07:13 /usr/arm-none-eabi/usr/lib/libc_nano.a
ar x /usr/arm-none-eabi/usr/lib/libc_nano.a
nm lib_a-memcpy.o
nm: lib_a-memcpy.o: no symbols

The REF2 libs are 7 times smaller than REF1 and provide no symbols!

Did you strip too much the objects before making the libraries ?.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-01 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-1824@inbox.vuxu.org>
2019-06-01 18:42 ` [ISSUE] [CLOSED] cross-arm-none-eabi fail to link voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).