Hi! On Sat, Dec 3, 2016 at 7:20 PM, Ritesh Raj Sarraf <r...@researchut.com> wrote: > Hi, > > On Debian Sid (Unstable), with Linux version 4.8.11, I was hopeful that uml > would build proper with gcc-6. But I still am getting the below mentioned > build > failure. > > The 4.8.11 kernel has the fixes for the core kernel. I'm not sure if any extra > changes are needed for UM again. > > The current workaround that we use in Debian to build latest UML bits from the > kernel source, is to use the gcc-5 compiler. > > The Debian bug report is accessible at: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837579 > > Thanks, > Ritesh > > > The fix that went in the stable release is: > http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/commit/?id=a > fad7e0e67ef545a4d92507a236f0666c33d3ad4 > > CC [M] lib/cordic.o > CC [M] lib/asn1_decoder.o > GEN lib/oid_registry_data.c > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = "en_IN:en", > LC_ALL = (unset), > LC_TIME = "en_IN.utf8", > LC_MONETARY = "en_IN.utf8", > LC_COLLATE = "C", > LC_MEASUREMENT = "en_IN.utf8", > LC_NUMERIC = "C", > LC_PAPER = "en_IN.utf8", > LANG = "C" > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C"). > CC [M] lib/oid_registry.o > LD virt/lib/built-in.o > LD virt/built-in.o > LINK vmlinux > LD vmlinux.o > MODPOST vmlinux.o > GEN .version > CHK include/generated/compile.h > UPD include/generated/compile.h > CC init/version.o > LD init/built-in.o > /usr/bin/ld: arch/um/drivers/built-in.o: relocation R_X86_64_32 against > `.rodata.str1.1' can not be used when making a shared object; recompile with > -fPIC > /usr/bin/ld: final link failed: Nonrepresentable section on output > collect2: error: ld returned 1 exit status > Makefile:955: recipe for target 'vmlinux' failed > make[1]: *** [vmlinux] Error 1 > make[1]: Leaving directory '/build/user-mode-linux-4.8-1um/linux-source-4.8' > debian/rules:76: recipe for target 'build-stamp' failed > make: *** [build-stamp] Error 2 >
Isn't this a toolchain bug? Can you please try this fix? https://sourceware.org/bugzilla/show_bug.cgi?id=20800 -- Thanks, //richard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel