Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
2017-11-30 New 17.0 profiles in the Gentoo repository If you are not already running a hardened setup with PIE enabled, then switching the profile involves the following steps: If not already done, * Use gcc-config to select gcc-6.4.0 or later as system compiler * Re-source /etc/profile: . /etc/profile * Re-emerge libtool emerge -1 sys-devel/libtool Then, * Select the new profile with eselect * Re-emerge, in this sequence, gcc, binutils, and glibc emerge -1 sys-devel/gcc:6.4.0 emerge -1 sys-devel/binutils emerge -1 sys-libs/glibc * Rebuild your entire system emerge -e @world |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
UPD include/generated/utsrelease.h HOSTCC arch/x86/tools/relocs_32.o HOSTCC arch/x86/tools/relocs_64.o HOSTCC arch/x86/tools/relocs_common.o In file included from arch/x86/tools/relocs_64.c:17:0: arch/x86/tools/relocs.c: In function ‘process_64’: arch/x86/tools/relocs.c:953:2: warning: argument 1 null where non-null expected [-Wnonnull] qsort(r->offset, r->count, sizeof(r->offset[0]), cmp_relocs); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/x86/tools/relocs.h:6:0, from arch/x86/tools/relocs_64.c:1: /usr/include/stdlib.h:741:13: note: in a call to function ‘qsort’ declared here extern void qsort (void *__base, size_t __nmemb, size_t __size, ^~~~~ HOSTLD arch/x86/tools/relocs CHK include/generated/timeconst.h CC kernel/bounds.s UPD include/generated/timeconst.h cc1: error: code model kernel does not support PIC mode make[1]: *** [Kbuild:45: kernel/bounds.s] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:986: prepare0] Error 2 * ERROR: dev-libs/klibc-2.0.4-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-libs/klibc-2.0.4-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/klibc-2.0.4-r2::gentoo'`. * The complete build log is located at '/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/environment'. * Working directory: '/tmp/portage/dev-libs/klibc-2.0.4-r2/work/linux-4.4' * S: '/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4' |
Quellcode |
|
1 |
cc1: error: code model kernel does not support PIC mode |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Schattenschlag« (15.12.2017, 00:50)
Zitat
dev-libs/klibc-2.0.4-r2 "kernel/bounds.c:1:0: error: code model kernel does not support PIC mode"
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
--- replaced obj /lib64/klibc-irxxSRIG_eIV0cUL3_D3at_S6K4.so --- replaced dir /lib64 --- replaced obj /etc/env.d/70klibc --- replaced dir /etc/env.d --- replaced dir /etc >>> Regenerating /etc/ld.so.cache... >>> Original instance of package unmerged safely. >>> dev-libs/klibc-2.0.4-r2 merged. >>> Regenerating /etc/ld.so.cache... * Messages for package dev-libs/klibc-2.0.4-r2: * * Installation of a symlink is blocked by a directory: * '/usr/lib64/klibc/include/linux' * This symlink will be merged with a different name: * '/usr/lib64/klibc/include/linux.backup.0000' * * * Installation of a symlink is blocked by a directory: * '/usr/lib64/klibc/include/asm' * This symlink will be merged with a different name: * '/usr/lib64/klibc/include/asm.backup.0000' * * * Installation of a symlink is blocked by a directory: * '/usr/lib64/klibc/include/asm-generic' * This symlink will be merged with a different name: * '/usr/lib64/klibc/include/asm-generic.backup.0000' |
stutzig. Denn klingt das für mich so, als ob von zwei verschiedenen klibc-Versionen die Rede sei, von denen eine nicht mehr funktioniert, aber eine "neuere" ja schon... Aber es ist überhauptkeine (auch nicht die "2.04-r3" aus einem anderen Overlay, installierbar. Und warum sollte klibc "auf einmal" von Symlinks ausgehen, wenn sich an selbiger Version nichts geändert hat, nur das Profil von Gentoo sich geändert... Bzw. Non-PIE auf PIE als damit an Land kommende "Generalneuigkeit" (die von Hardened übernommen ist) und daher das Recompilieren des gesamten Systems nötig macht...Zitat
In einer früheren Version von klibc waren /usr/lib/klibc/include/linux und /usr/lib64/klibc/include/asm Directories.
In der aktuellen Version sind es Symlinks.