Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto]problema compilazione sandbox-2.12
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Thu Feb 01, 2018 3:23 pm    Post subject: [risolto]problema compilazione sandbox-2.12 Reply with quote

Salve, è da un po' di tempo che mi fallisce la compilazione di vari pacchetti quali gcc, sandbox glibc etc,
non avendo molto ultimamente molto tempo da dedicare alla risoluzione del problema ho skippato i pacchetti.
Partendo con ordine sandbox non compila, di seguito i log.
Grazie in anticipo ;)
Code:

 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
 * econf: updating sandbox-2.12/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating sandbox-2.12/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/sandbox-2.12 --htmldir=/usr/share/doc/sandbox-2.12/html --libdir=/usr/lib32
checking for a BSD-compatible install... /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking environment state... ok
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12-abi_x86_32.x86':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12-abi_x86_32.x86/config.log
 * ERROR: sys-apps/sandbox-2.12::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2824:  Called multilib-minimal_src_configure
 *             environment, line 1942:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 2156:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1872:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1870:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  344:  Called multilib-minimal_abi_src_configure
 *             environment, line 1936:  Called multilib_src_configure
 *             environment, line 2371:  Called econf
 *        phase-helpers.sh, line  666:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=sys-apps/sandbox-2.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/sandbox-2.12::gentoo'`.
 * If configure failed with a 'cannot run C compiled programs' error, try this:
 * FEATURES='-sandbox -usersandbox' emerge sandbox
 * The complete build log is located at '/var/tmp/portage/sys-apps/sandbox-2.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-2.12/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12-abi_x86_32.x86'
 * S: '/var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12'


/var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12-abi_x86_32.x86/config.log : https://paste.pound-python.org/show/7Y2eZo5yy8EhVcjEABZF/


Last edited by oscarandrea on Sat Feb 03, 2018 2:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Thu Feb 01, 2018 3:29 pm    Post subject: Reply with quote

Utilizzi un profilo 17.1?

https://forums.gentoo.org/viewtopic-p-8163668.html?sid=1eb2e57d2cdc787989960983c3e084e9
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Thu Feb 01, 2018 3:38 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Utilizzi un profilo 17.1?

https://forums.gentoo.org/viewtopic-p-8163668.html?sid=1eb2e57d2cdc787989960983c3e084e9

hai ragione mi sono dimenticato di postare altre informazioni utili, no comunque utilizzo il 17.
[14] default/linux/amd64/17.0/hardened (dev) *

gcc version 6.4.0 (Gentoo Hardened 6.4.0 p1.1)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Thu Feb 01, 2018 4:51 pm    Post subject: Reply with quote

Puoi postare per favore il risultato del comando
Code:
$ emerge -pvq gcc

e
Code:
$ zgrep IA32 /proc/config.gz

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Thu Feb 01, 2018 4:57 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Puoi postare per favore il risultato del comando
Code:
$ emerge -pvq gcc

e
Code:
$ zgrep IA32 /proc/config.gz


Code:
[~] zgrep IA32 /proc/config.gz                                                                   
gzip: /proc/config.gz: No such file or directory


Code:
[~] emerge -pvq gcc                                   
[ebuild     U ] sys-devel/gcc-6.4.0-r1 [6.4.0] USE="cxx fortran hardened (multilib*) nls nptl openmp (pie) (ssp) vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-jit) (-libssp) -mpx -objc -objc++ -objc-gc (-pch) -pgo -regression-test (-sanitize) -vanilla"


se può esser utile anche il make.conf
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,--as-needed"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="pie ssp ssl pax_kernel kdenlive offensive eudev custom-cflags custom-optimization qt5 -cups  hardened png jpeg mpeg  gtk mp4 vpx x264 x265 matroska win32codecs lame mp3 flac faac vorbins  unicode gif svg pdf rar unrar wifi synthax X ext4  \
 -dbus -udev -udevd   -qt3  -bluetooth -systemd pulseaudio \
ssse3 "
CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 \
ssse3 "
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
VIDEO_CARDS="intel"
LINGUAS="it"
PORTAGE_NICENESS="10"
EMERGE_DEFAULT_OPTS=" --deep --keep-going --verbose --verbose-conflicts --with-bdeps y  --complete-graph "
AUTOCLEAN="yes"
PORTAGE_COMPRESS="lz4"
L10N="it"
FEATURES="parallel-fetch parallel-install"
QEMU_SOFTMMU_TARGETS="i386 x86_64"
QEMU_USER_TARGETS="${QEMU_SOFTMMU_TARGETS}"

grazie :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Thu Feb 01, 2018 5:20 pm    Post subject: Reply with quote

oscarandrea wrote:
Code:
[~] zgrep IA32 /proc/config.gz                                                                   
gzip: /proc/config.gz: No such file or directory

Allora prova con
Code:
$ grep IA32 /usr/src/linux/.config


oscarandrea wrote:
Code:
[~] emerge -pvq gcc                                   
[ebuild     U ] sys-devel/gcc-6.4.0-r1 [6.4.0] USE="cxx fortran hardened (multilib*) nls nptl openmp (pie) (ssp) vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-jit) (-libssp) -mpx -objc -objc++ -objc-gc (-pch) -pgo -regression-test (-sanitize) -vanilla"
[/code]

Qua vedo un problema. gcc non e' compilato con il supporto multilib ed e' per questo che non riesci a compilare i programmi con supporto a 32bit. Prima di passare al profilo 17.0 avevi un profilo no-multilib?

oscarandrea wrote:
se può esser utile anche il make.conf

Meglio un emerge --info
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Thu Feb 01, 2018 6:04 pm    Post subject: Reply with quote

fedeliallalinea wrote:
oscarandrea wrote:
Code:
[~] zgrep IA32 /proc/config.gz                                                                   
gzip: /proc/config.gz: No such file or directory

Allora prova con
Code:
$ grep IA32 /usr/src/linux/.config


oscarandrea wrote:
Code:
[~] emerge -pvq gcc                                   
[ebuild     U ] sys-devel/gcc-6.4.0-r1 [6.4.0] USE="cxx fortran hardened (multilib*) nls nptl openmp (pie) (ssp) vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-jit) (-libssp) -mpx -objc -objc++ -objc-gc (-pch) -pgo -regression-test (-sanitize) -vanilla"
[/code]

Qua vedo un problema. gcc non e' compilato con il supporto multilib ed e' per questo che non riesci a compilare i programmi con supporto a 32bit. Prima di passare al profilo 17.0 avevi un profilo no-multilib?

oscarandrea wrote:
se può esser utile anche il make.conf

Meglio un emerge --info

no, provengo da normale profilo hardened, comunque il config del kernel si trova in /usr/src/linux-4.14.12-gentoo/.config
Code:
grep IA32 /usr/src/linux-4.14.12-gentoo/.config                                                                                    19:01:02
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_AOUT is not set


emerge --info: https://paste.pound-python.org/show/o5OVVxRrdan69UhLuwJs/

grazie :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Fri Feb 02, 2018 7:11 am    Post subject: Reply with quote

Mi potresti dire che profilo avevi prima?
Per prima cosa penso che dovresti ricompilare gcc con il supporto al multilib. Proviamo con
Code:
# emerge -1 sys-devel/libtool
# emerge -1 sys-devel/gcc:6.4.0

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Fri Feb 02, 2018 10:05 am    Post subject: Reply with quote

fedeliallalinea wrote:
Mi potresti dire che profilo avevi prima?
Per prima cosa penso che dovresti ricompilare gcc con il supporto al multilib. Proviamo con
Code:
# emerge -1 sys-devel/libtool
# emerge -1 sys-devel/gcc:6.4.0


purtroppo gcc fallisce:
Code:

devel/gcc-6.4.0-r1/work/gcc-6.4.0/libgcc/../include  -DHAVE_CC_TLS  -DUSE_TLS -o _gcov_merge_add.o -MT _gcov_merge_add.o -MD -MP -MF _gcov_merge_add.dep -DL_gcov_merge_add -c /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libgcc/libgcov-merge.c
In file included from /usr/include/features.h:434:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libgcc/../gcc/tsystem.h:87,
                 from /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libgcc/libgcov.h:41,
                 from /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libgcc/libgcov-merge.c:26:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
                           ^
compilation terminated.
make[5]: *** [Makefile:879: _gcov_merge_add.o] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [Makefile:1161: multi-do] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [Makefile:120: all-multi] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [Makefile:15311: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
make[1]: *** [Makefile:19874: stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
make: *** [Makefile:20206: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-6.4.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-6.4.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-6.4.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 *

>>> Failed to emerge sys-devel/gcc-6.4.0-r1, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/build.log'

 * Messages for package sys-devel/gcc-6.4.0-r1:

 * ERROR: sys-devel/gcc-6.4.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-6.4.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-6.4.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 *
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (sys-devel/gcc-6.4.0-r1:6.4.0/6.4.0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/build.log'

/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/build.log -> https://paste.pound-python.org/show/V278HvBUoHriis4rNjMT/

il profilo di prima era hardened/linux/amd64 (stable)

l'unica cosa di "particolare" sono le mie LDFLAGS="-Wl,--as-needed"
ora prova a ricompilare glibc

aggiornamento

ho abilitato globalmente multilib come flag, ma glibc fallisce con il medesimo errore di gcc :cry:
Code:

In file included from /usr/include/features.h:434:0,
                 from /usr/include/errno.h:28,
                 from rpc_main.c:37:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
                           ^
compilation terminated.
make[2]: *** [Makefile:169: /var/tmp/portage/sys-libs/glibc-2.25-r9/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/cross-rpc_main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/glibc-2.25/sunrpc'
make[1]: *** [Makefile:216: sunrpc/others] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/glibc-2.25'
make: *** [Makefile:9: all] Error 2
make: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/build-x86-x86_64-pc-linux-gnu-nptl'
 * ERROR: sys-libs/glibc-2.25-r9::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.25-r9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.25-r9/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/glibc-2.25'
 * S: '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/glibc-2.25'

>>> Failed to emerge sys-libs/glibc-2.25-r9, Log file:

>>>  '/var/tmp/portage/sys-libs/glibc-2.25-r9/temp/build.log'

 * Messages for package sys-libs/glibc-2.25-r9:

 * ERROR: sys-libs/glibc-2.25-r9::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.25-r9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.25-r9/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/glibc-2.25'
 * S: '/var/tmp/portage/sys-libs/glibc-2.25-r9/work/glibc-2.25'
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (sys-libs/glibc-2.25-r9:2.2/2.2::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/sys-libs/glibc-2.25-r9/temp/build.log'
 *


Last edited by oscarandrea on Fri Feb 02, 2018 10:26 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Fri Feb 02, 2018 10:22 am    Post subject: Reply with quote

Il problema e' che per qualche motivo sei passato a una gentoo no-multilib, infatti tutti gli errori sono legati a un problema di compilazione del supporto 32bit.
Sicuro di non avere fatto nulla di strano?
Posta ancora una volta l'output di
Code:
# emerge -pvq glibc gcc

e posta anche per favore un
Code:
$ ls -l /

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Fri Feb 02, 2018 10:31 am    Post subject: Reply with quote

fedeliallalinea wrote:
Il problema e' che per qualche motivo sei passato a una gentoo no-multilib, infatti tutti gli errori sono legati a un problema di compilazione del supporto 32bit.
Sicuro di non avere fatto nulla di strano?
Posta ancora una volta l'output di
Code:
# emerge -pvq glibc gcc

e posta anche per favore un
Code:
$ ls -l /

come leggi sopra ho provato a compilare anche con la flag multilib abilitata globalmente e glibc fallisce esattamente come gcc, non ho la necessità del multilib in effetti, se solo compilasse gli aggiornamenti.
Code:

 emerge -pvq glibc gcc                                                                                                                  11:24:06
[ebuild   R   ] sys-libs/glibc-2.25-r9  USE="hardened (multilib*) rpc -audit -caps -debug -gd -headers-only% -nscd (-profile) (-selinux) -suid -systemtap (-vanilla) (-crosscompile_opts_headers-only%)"
[ebuild     U ] sys-devel/gcc-6.4.0-r1 [6.4.0] USE="cxx fortran hardened (multilib*) nls nptl openmp (pie) (ssp) vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-jit) (-libssp) -mpx -objc -objc++ -objc-gc (-pch) -pgo -regression-test (-sanitize) -vanilla"


ls

Code:

[~] ls -l /                                                                                                                                11:31:00
totale 4194388
drwxr-xr-x   2 root root       4096 31 gen 21.08 bin
dr-x------   3 root root       4096  7 gen 13.27 boot
drwxr-xr-x  16 root root       3660  2 feb 10.48 dev
drwxr-xr-x  88 root root       4096  2 feb 10.35 etc
drwxr-xr-x   4 root root       4096 14 ago 19.36 home
lrwxrwxrwx   1 root root          5 31 dic 14.35 lib -> lib64
drwxr-xr-x   2 root root       4096 31 dic 16.22 lib32
drwxr-xr-x  14 root root      12288 31 gen 21.08 lib64
drwx------   2 root root      16384 14 lug  2017 lost+found
drwxr-xr-x   2 root root       4096  6 lug  2017 media
drwxr-xr-x   2 root root       4096 23 gen 20.36 mnt
drwxr-xr-x   6 root root       4096 26 dic 14.49 opt
dr-xr-xr-x 118 root root          0  2 feb 10.27 proc
drwx------  23 root root       4096  2 feb 11.30 root
drwxr-xr-x   9 root root        320  2 feb 10.30 run
drwxr-xr-x   2 root root       4096  1 feb 13.00 sbin
-rw-------   1 root root 4294967296 18 lug  2017 swapfile
dr-xr-xr-x  12 root root          0  2 feb 10.28 sys
drwxrwxrwt   6 root root       4096  2 feb 11.29 tmp
drwxr-xr-x  15 root root       4096 10 set 15.10 usr
drwxr-xr-x  10 root root       4096  8 gen 14.28 var
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Fri Feb 02, 2018 11:13 am    Post subject: Reply with quote

oscarandrea wrote:
come leggi sopra ho provato a compilare anche con la flag multilib abilitata globalmente e glibc fallisce esattamente come gcc, non ho la necessità del multilib in effetti, se solo compilasse gli aggiornamenti.

Certo perche' in qualche modo sia glibc che gcc non sono compilati con multilib.

I prossimi passi che ti suggerisco non ho la piu' pallida idea se possano funzionare o meno quindi falli a tuo rischio e pericolo (e soprattutto leggi tutto quello che segue prima di procedere)

Per prima cosa crea i binari di gcc e glibc con il comando
Code:
# quickpkg gcc:6.4.0 glibc

Poi muovi i due pacchetti binari che ti ha creato in un posto differente (come backup)
Code:
# mv /usr/portage/packages/sys-libs/glibc-2.25-r9.tbz2 /una/directory/che/vuoi/tu
# mv /usr/portage/packages/sys-devel/gcc-6.4.0.tbz2 /una/directory/che/vuoi/tu

assicurati che sotto /usr/portage/packages/sys-libs/ e /usr/portage/packages/sys-devel/ non esistano piu' pacchetti con il nome glibc, rispettivamente per il secondo path gcc.
Ora devi scaricare i due binari da http://packages.gentooexperimental.org/packages/amd64-stable/ con i comandi
Code:
# cd /usr/portage/packages/sys-libs/
# wget http://packages.gentooexperimental.org/packages/amd64-stable/sys-libs/glibc-2.25-r9.tbz2
# cd /usr/portage/packages/sys-devel/
# wget http://packages.gentooexperimental.org/packages/amd64-stable/sys-devel/gcc-6.4.0-r1.tbz2

A questo punto puoi installare i nuovi binari con il supporto a multilib eseguendo il comando
Code:
# emerge -K1  =sys-devel/gcc-6.4.0-r1 =sys-libs/glibc-2.25-r9

Fatto questo devi ricompilarli perche' questi due pacchetti sono stati compilati senza la use flag pie
Code:
# emerge -1 sys-devel/gcc:6.4.0
# emerge -1 sys-devel/binutils
# emerge -1 sys-libs/glibc

Fatto questo il tuo sistema dovrebbe essere a posto, ma tieni presente che non l'ho mai provato.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 182
Location: Italy/Cosenza

PostPosted: Fri Feb 02, 2018 5:50 pm    Post subject: Reply with quote

fedeliallalinea wrote:
oscarandrea wrote:
come leggi sopra ho provato a compilare anche con la flag multilib abilitata globalmente e glibc fallisce esattamente come gcc, non ho la necessità del multilib in effetti, se solo compilasse gli aggiornamenti.

Certo perche' in qualche modo sia glibc che gcc non sono compilati con multilib.

I prossimi passi che ti suggerisco non ho la piu' pallida idea se possano funzionare o meno quindi falli a tuo rischio e pericolo (e soprattutto leggi tutto quello che segue prima di procedere)

Per prima cosa crea i binari di gcc e glibc con il comando
Code:
# quickpkg gcc:6.4.0 glibc

Poi muovi i due pacchetti binari che ti ha creato in un posto differente (come backup)
Code:
# mv /usr/portage/packages/sys-libs/glibc-2.25-r9.tbz2 /una/directory/che/vuoi/tu
# mv /usr/portage/packages/sys-devel/gcc-6.4.0.tbz2 /una/directory/che/vuoi/tu

assicurati che sotto /usr/portage/packages/sys-libs/ e /usr/portage/packages/sys-devel/ non esistano piu' pacchetti con il nome glibc, rispettivamente per il secondo path gcc.
Ora devi scaricare i due binari da http://packages.gentooexperimental.org/packages/amd64-stable/ con i comandi
Code:
# cd /usr/portage/packages/sys-libs/
# wget http://packages.gentooexperimental.org/packages/amd64-stable/sys-libs/glibc-2.25-r9.tbz2
# cd /usr/portage/packages/sys-devel/
# wget http://packages.gentooexperimental.org/packages/amd64-stable/sys-devel/gcc-6.4.0-r1.tbz2

A questo punto puoi installare i nuovi binari con il supporto a multilib eseguendo il comando
Code:
# emerge -K1  =sys-devel/gcc-6.4.0-r1 =sys-libs/glibc-2.25-r9

Fatto questo devi ricompilarli perche' questi due pacchetti sono stati compilati senza la use flag pie
Code:
# emerge -1 sys-devel/gcc:6.4.0
# emerge -1 sys-devel/binutils
# emerge -1 sys-libs/glibc

Fatto questo il tuo sistema dovrebbe essere a posto, ma tieni presente che non l'ho mai provato.

grazie! :) sembra che tutto funzioni a dovere ora, ho solo un problema a compilare mesa ma non credo sia collegato, grazie ancora gentilissimo
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Fri Feb 02, 2018 6:01 pm    Post subject: Reply with quote

oscarandrea wrote:
grazie! :) sembra che tutto funzioni a dovere ora, ho solo un problema a compilare mesa ma non credo sia collegato, grazie ancora gentilissimo

Se hai problemi apri un nuovo thread :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum