* Linker Problem: Unrecognized '-Wl,-O1'
@ 2012-12-24 18:54 Eren Türkay
2012-12-26 10:52 ` Henning Heinold
0 siblings, 1 reply; 3+ messages in thread
From: Eren Türkay @ 2012-12-24 18:54 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1790 bytes --]
Hello,
I am packaging 'arpx' [0] daemon and I have a problem in linking stage.
The linker complains about unrecognized options "-Wl,-O1". It is strange
that i586-poky-linux-ld does not have an option for linker hash table
optimization, which seems to be around for a long time [1]
"-Wl,-O1" is provided by bitbake by default so I think that it is
expected to run but it fails in my configuration. What am I missing
here? I would really appreciate a hand for fixing this.
[0]: https://github.com/hambedded-linux
[1]: https://lwn.net/Articles/192624/
#### START: Stripped Bitbake Output ####
Build Configuration:
BB_VERSION = "1.16.0"
TARGET_ARCH = "i586"
TARGET_OS = "linux"
MACHINE = "alix3d3"
DISTRO = "poky"
DISTRO_VERSION = "1.3"
TUNE_FEATURES = "m32 i586"
TARGET_FPU = ""
meta
meta-yocto = "danny:09031ac2fc0f30ec577ee823fc61ff0e5d852e21"
meta-alix3d3 = "master:02f8693c35789471f4a3296358f0add538a1142a"
meta-hamradio = "master:1e440d60699e1b03c5aec78a64a98bc3f5494e5f"
i586-poky-linux-ld --sysroot=/home/eren/sourcebox/yocto/poky-1.3/build/tmp/sysroots/alix3d3 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o aprx aprx.o ttyreader.o ax25.o aprsis.o beacon.o config.o netax25.o erlang.o aprxpolls.o telemetry.o igate.o cellmalloc.o historydb.o keyhash.o parse_aprs.o dupecheck.o kiss.o interface.o pbuf.o digipeater.o valgrind.o filter.o dprsgw.o crc.o agwpesocket.o netresolver.o -lpthread -lutil -lm
i586-poky-linux-ld: unrecognized option '-Wl,-O1'
i586-poky-linux-ld: use the --help option for usage information
make: *** [aprx] Error 1
#### END: Stripped Bitbake Output ####
--
. 73! DE TA1AET
http://linkedin.com/in/erenturkay
[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linker Problem: Unrecognized '-Wl,-O1'
2012-12-24 18:54 Linker Problem: Unrecognized '-Wl,-O1' Eren Türkay
@ 2012-12-26 10:52 ` Henning Heinold
2012-12-27 0:28 ` Eren Türkay
0 siblings, 1 reply; 3+ messages in thread
From: Henning Heinold @ 2012-12-26 10:52 UTC (permalink / raw)
To: openembedded-devel
On Mon, Dec 24, 2012 at 08:54:36PM +0200, Eren Türkay wrote:
> Hello,
>
> I am packaging 'arpx' [0] daemon and I have a problem in linking stage.
> The linker complains about unrecognized options "-Wl,-O1". It is strange
> that i586-poky-linux-ld does not have an option for linker hash table
> optimization, which seems to be around for a long time [1]
>
> "-Wl,-O1" is provided by bitbake by default so I think that it is
> expected to run but it fails in my configuration. What am I missing
> here? I would really appreciate a hand for fixing this.
>
> [0]: https://github.com/hambedded-linux
> [1]: https://lwn.net/Articles/192624/
>
> #### START: Stripped Bitbake Output ####
>
> Build Configuration:
> BB_VERSION = "1.16.0"
> TARGET_ARCH = "i586"
> TARGET_OS = "linux"
> MACHINE = "alix3d3"
> DISTRO = "poky"
> DISTRO_VERSION = "1.3"
> TUNE_FEATURES = "m32 i586"
> TARGET_FPU = ""
> meta
> meta-yocto = "danny:09031ac2fc0f30ec577ee823fc61ff0e5d852e21"
> meta-alix3d3 = "master:02f8693c35789471f4a3296358f0add538a1142a"
> meta-hamradio = "master:1e440d60699e1b03c5aec78a64a98bc3f5494e5f"
>
> i586-poky-linux-ld --sysroot=/home/eren/sourcebox/yocto/poky-1.3/build/tmp/sysroots/alix3d3 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o aprx aprx.o ttyreader.o ax25.o aprsis.o beacon.o config.o netax25.o erlang.o aprxpolls.o telemetry.o igate.o cellmalloc.o historydb.o keyhash.o parse_aprs.o dupecheck.o kiss.o interface.o pbuf.o digipeater.o valgrind.o filter.o dprsgw.o crc.o agwpesocket.o netresolver.o -lpthread -lutil -lm
> i586-poky-linux-ld: unrecognized option '-Wl,-O1'
> i586-poky-linux-ld: use the --help option for usage information
> make: *** [aprx] Error 1
>
> #### END: Stripped Bitbake Output ####
Hi,
easy to fix edit the buildsystem to usee gcc as linker no ld directly or fix the build system not to use CFLAGS for linking, but LDFLAGS.
Bye Henning
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linker Problem: Unrecognized '-Wl,-O1'
2012-12-26 10:52 ` Henning Heinold
@ 2012-12-27 0:28 ` Eren Türkay
0 siblings, 0 replies; 3+ messages in thread
From: Eren Türkay @ 2012-12-27 0:28 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]
On Wed, Dec 26, 2012 at 11:52:54AM +0100, Henning Heinold wrote:
> Hi,
Hello,
> easy to fix edit the buildsystem to usee gcc as linker no ld directly
> or fix the build system not to use CFLAGS for linking, but LDFLAGS.
Thanks for your suggestion! I have set "LD = ${CC}" in .bb file and it
compiles right now. It seems to work correctly.
There is no problem with the usage of CFLAGS or LDFLAGS but Makefile of
aprx seems to be wrong. All the other packages I have looked so far
utilized autotools and used the compiler for linking. However, aprx
directly sets the linker and it seems to be using autotools as well. I
don't know how the error originated but I guess it's better that I
contact the maintainer and let him know.
### BEGIN: Makefile.in ###
# Compiler and flags
CC= @CC@
CFLAGS= @CFLAGS@
# Linker and flags
LD= @LD@
LDFLAGS= @LDFLAGS@ $(PROF)
PROGAPRX= aprx
$(PROGAPRX): $(OBJSAPRX) VERSION Makefile
$(LD) $(LDFLAGS) -o $@ $(OBJSAPRX) $(LIBS)
### END: Makefile.in ###
> Bye Henning
Regards,
Eren
--
. 73! DE TA1AET
http://linkedin.com/in/erenturkay
[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-27 0:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-24 18:54 Linker Problem: Unrecognized '-Wl,-O1' Eren Türkay
2012-12-26 10:52 ` Henning Heinold
2012-12-27 0:28 ` Eren Türkay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox