Re: Compile error "recompile with -fPIC"

2018-08-10 Thread shilparavindra03
Hi, Even am getting similar kind of error but the difference is am executing in CentOS 7.5. and am not able to find in which make file i need to add -fPIC option because tools/makefile is not present. ERROR obtained : g++ -shared -fPIC -o Build/libNSCGBI.so dllmain.o NSCGBI.o /usr/bin/ld:

Re: Compile error "recompile with -fPIC"

2018-08-10 Thread shilparavindra03
On Tuesday, June 20, 2017 at 8:42:59 PM UTC+5:30, Henning Schild wrote: > Am Tue, 20 Jun 2017 04:36:14 -0700 > schrieb mike : > > > Henning, > > i installed gcc-5 with the same results: > > > > mike@ubuntu1704ssd:~/jailhouse/jailhouse$ sudo apt-get install gcc-5 > >

Re: Compile error "recompile with -fPIC"

2017-06-23 Thread Henning Schild
Am Thu, 22 Jun 2017 20:20:35 -0700 schrieb : > On Tuesday, June 20, 2017 at 11:49:42 AM UTC-4, mike wrote: > > Henning, > > thank you for the great support. > > > > Adding -fPIC to tools/Makefile > > > > KBUILD_CFLAGS := -fPIC -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \

Re: Compile error "recompile with -fPIC"

2017-06-22 Thread resurgenceoflife
On Tuesday, June 20, 2017 at 11:49:42 AM UTC-4, mike wrote: > Henning, > thank you for the great support. > > Adding -fPIC to tools/Makefile > > KBUILD_CFLAGS := -fPIC -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \ > -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \ >

Re: Compile error "recompile with -fPIC"

2017-06-20 Thread mike
Henning, thank you for the great support. Adding -fPIC to tools/Makefile KBUILD_CFLAGS := -fPIC -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \ -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \ -DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS) did

Re: Compile error "recompile with -fPIC"

2017-06-20 Thread Henning Schild
Am Tue, 20 Jun 2017 03:54:10 -0700 schrieb mike : > Henning, thanks for the hint. > > make "CC=gcc-6" > gives the same error. > My installed compiler version is > mike@ubuntu1704ssd:~/jailhouse/jailhouse$ gcc --version > gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406 Well

Re: Compile error "recompile with -fPIC"

2017-06-20 Thread Henning Schild
Am Tue, 20 Jun 2017 02:59:02 -0700 schrieb mike : > To learn about jailhouse I'm trying to compile jailhouse on a ubuntu > 17.04 machine and I'm getting the link error Maybe try an older compiler, which version is your gcc? You can probably install something older and