[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv3] build: Add no-pie to GCC flags to avoid building failed on debian distributions
On Thu, Jun 07, 2018 at 11:32:03AM +0800, Wei Chen wrote: > On debian distributions (Debian/Ubuntu), the GCC will enable the > "-pie" flag by default. In this case, after this patch series > "Introduce LTO build option"(1) had been merged, we will get > following error: > > X86_64 xen platform error: > /usr/bin/x86_64-linux-gnu-ld: -r and -pie may not be used together > collect2: error: ld returned 1 exit status > make: *** [_all] Error 2 > > arm64 kvm platform error: > CC libkvmplat: shutdown.o > CC libkvmplat: memory.o > LD libkvmplat.ld.o > /usr/bin/aarch64-linux-gnu-ld: -r and -pie may not be used together > make: *** [/root/UF/unikraft/build/libkvmplat.ld.o] Error 1 > > So, we need to add "-no-pie" explicitly in CFLAGS to avoid such > errors. > > Notes: > [1] > https://lists.xenproject.org/archives/html/minios-devel/2018-05/msg00053.html > > Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> A drive-by comment: IIRC -no-pie is not always supported in older versions of gcc. You might want to check its availability before appending it. Wei L. _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |