Try to crosscompile "by hand" using Yocto toolschains. then try to crosscompile it inside Yocto. Does gRPC uses autotools? If so you may be interested in $CONFIGURE_FLAGS setted by Yocto' environment setup script. Here is an example of how I did compile libfprint using Yocto's toolchain: http://pastebin.com/hyzrd3up
Regards :) 2016-09-05 10:00 GMT-03:00 Pietro <pulsarpie...@posteo.net>: > 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." <danielhi...@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 <pulsarpie...@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 > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- "Do or do not. There is no try" Yoda Master -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto