All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto build error
@ 2021-10-11  1:45 Jupiter
  2021-10-11  7:59 ` [yocto] " Alexander Kanavin
  2021-10-11 17:29 ` Khem Raj
  0 siblings, 2 replies; 3+ messages in thread
From: Jupiter @ 2021-10-11  1:45 UTC (permalink / raw)
  To: yocto

Hi,

I have following errors:

No GNU_HASH in the ELF binary
/build/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/solar/1.0.0-0/packages-split/wifi_signal,
didn't pass LDFLAGS? [ldflags]

So I add --hash-style=gnu to my Makefile:

LD_FLAGS += --hash-style=gnu
LDFLAGS = LD_FLAGS

But that does not work:

arm-oe-linux-gnueabi-gcc: error: unrecognized command line option
'--hash-style=gnu'

What is wrong about the error if the  --hash-style=gnu is not the right fix?

Thank you.

Kind regards.

JH


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Yocto build error
  2021-10-11  1:45 Yocto build error Jupiter
@ 2021-10-11  7:59 ` Alexander Kanavin
  2021-10-11 17:29 ` Khem Raj
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2021-10-11  7:59 UTC (permalink / raw)
  To: JH; +Cc: yocto

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

You need to show the full command line that produces the error.

Alex

On Mon, 11 Oct 2021 at 03:45, JH <jupiter.hce@gmail.com> wrote:

> Hi,
>
> I have following errors:
>
> No GNU_HASH in the ELF binary
>
> /build/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/solar/1.0.0-0/packages-split/wifi_signal,
> didn't pass LDFLAGS? [ldflags]
>
> So I add --hash-style=gnu to my Makefile:
>
> LD_FLAGS += --hash-style=gnu
> LDFLAGS = LD_FLAGS
>
> But that does not work:
>
> arm-oe-linux-gnueabi-gcc: error: unrecognized command line option
> '--hash-style=gnu'
>
> What is wrong about the error if the  --hash-style=gnu is not the right
> fix?
>
> Thank you.
>
> Kind regards.
>
> JH
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#55010):
> https://lists.yoctoproject.org/g/yocto/message/55010
> Mute This Topic: https://lists.yoctoproject.org/mt/86227801/1686489
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 1948 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Yocto build error
  2021-10-11  1:45 Yocto build error Jupiter
  2021-10-11  7:59 ` [yocto] " Alexander Kanavin
@ 2021-10-11 17:29 ` Khem Raj
  1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2021-10-11 17:29 UTC (permalink / raw)
  To: JH; +Cc: yocto

On Sun, Oct 10, 2021 at 6:45 PM JH <jupiter.hce@gmail.com> wrote:
>
> Hi,
>
> I have following errors:
>
> No GNU_HASH in the ELF binary
> /build/tmp-glibc/work/cortexa7t2hf-neon-oe-linux-gnueabi/solar/1.0.0-0/packages-split/wifi_signal,
> didn't pass LDFLAGS? [ldflags]
>
> So I add --hash-style=gnu to my Makefile:
>
> LD_FLAGS += --hash-style=gnu
> LDFLAGS = LD_FLAGS
>
> But that does not work:
>
> arm-oe-linux-gnueabi-gcc: error: unrecognized command line option
> '--hash-style=gnu'
>
> What is wrong about the error if the  --hash-style=gnu is not the right fix?
>

So it seems your makefile is not respecting the LDFLAGS coming from
the environment during linking.
perhaps you should fix that in your linking rules. hardcoding hash
style like this is not portable.

> Thank you.
>
> Kind regards.
>
> JH
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#55010): https://lists.yoctoproject.org/g/yocto/message/55010
> Mute This Topic: https://lists.yoctoproject.org/mt/86227801/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-11 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11  1:45 Yocto build error Jupiter
2021-10-11  7:59 ` [yocto] " Alexander Kanavin
2021-10-11 17:29 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.