All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pietro <pulsarpietro@posteo.net>
To: yocto@yoctoproject.org
Subject: Re: arm-*-linux-gnueabi : unrecognized option -Wl, -soname
Date: Mon, 05 Sep 2016 13:00:32 +0000	[thread overview]
Message-ID: <87wpiq8psf.fsf@posteo.net> (raw)
In-Reply-To: CAF3SDA44veF1YgepzyN0L-ntKGTr9Z4NwwMFGb4yw9XW_RNokw@mail.gmail.com

Well,

I am cross-compiling the gRPC using the Yocto build system, I have
created a recipe for a new package which generates the gRPC
library(ies).

The error comes from here *guess* :
ifeq ($(SYSTEM),Darwin)
     $(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -install_name
     $(SHARED_PREFIX)gpr$(SHARED_VERSION).$(SHARED_EXT) -dynamiclib -o
     $(LIBDIR)/$(CONFIG)/libgpr$(SHARED_VERSION).$(SHARED_EXT)
     $(LIBGPR_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS)
     else
        $(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared
        -Wl,-soname,libgpr.so.1 -o
        $(LIBDIR)/$(CONFIG)/libgpr$(SHARED_VERSION).$(SHARED_EXT)
        $(LIBGPR_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS)
                       $(Q) ln -sf
                       $(SHARED_PREFIX)gpr$(SHARED_VERSION).$(SHARED_EXT)
                       $(LIBDIR)/$(CONFIG)/libgpr$(SHARED_VERSION).so.1
                        $(Q) ln -sf
                        $(SHARED_PREFIX)gpr$(SHARED_VERSION).$(SHARED_EXT)
                        $(LIBDIR)/$(CONFIG)/libgpr$(SHARED_VERSION).so
                        endif

What's puzzles me is that the same source code builds without problem on
my machine (not cross compiled).

It might be a question for gRPC developers though

"Daniel." <danielhilst@gmail.com> writes:

> I *guess* that it should be -Wl,-soname=libgpr.so.1 intead of
> -Wl,-soname,libgpr.so.1. Now from where this flags are comming is a
> good question..
>
> 2016-09-05 9:17 GMT-03:00 Pietro <pulsarpietro@posteo.net>:
>>
>> Hi all,
>>
>> I want to cross compile the gRPC library for ARM and I am using the
>> Yocto build system.
>>
>> The build fails for the following error, which I am suspicious has
>> something to do with the compiler being used:
>>
>>
>> [LD]      Linking
>> /export/arm/xxx/PD15.1/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-phytec-linux-gnueabi/libgrpc/1.0.0-r0/git/libs/opt/libgpr.so.1.0.0-pre1
>>
>> arm-phytec-linux-gnueabi-ld
>> : unrecognized option '
>> -Wl,-soname,libgpr.so.1
>>
>>
>> arm-phytec-linux-gnueabi-ld
>> : use the --help option for usage information
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
> -- 
> "Do or do not. There is no try"
>   Yoda Master



  reply	other threads:[~2016-09-05 13:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 12:17 arm-*-linux-gnueabi : unrecognized option -Wl, -soname Pietro
2016-09-05 12:44 ` Daniel.
2016-09-05 13:00   ` Pietro [this message]
2016-09-05 13:28     ` Daniel.
2016-09-06 17:28     ` Khem Raj
2016-09-06 10:05   ` Pietro
2016-09-06 10:30     ` Maciej Borzęcki
2016-09-06 10:49       ` Pietro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpiq8psf.fsf@posteo.net \
    --to=pulsarpietro@posteo.net \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.