LINUX.ORG.RU

Gentoo, не собирается sandbox, доска orange pi4

 ,


0

2

Не собирается пакедж, ошибка не выгугливается, вот ход сборки:

config.status: executing libtool commands
config.status: executing tests/atconfig commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13 ...
 * .arm64: running multilib-minimal_abi_src_compile
make -j6 
/bin/sh ./libtool  --tag=CC   --mode=compile aarch64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13  -DETCDIR="\"/etc\"" -DLIBSANDBOX_PATH="\"/usr/lib\"" -DSANDBOX_BASHRC_PATH="\"/usr/share/sandbox\"" -D_REENTRANT  -Wall -Winvalid-pch -fdata-sections -ffunction-sections -fno-builtin-calloc -fno-builtin-malloc -fno-builtin-realloc -c -o libsbutil/headers.h.gch.o /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h && ( src=`dirname libsbutil/headers.h.gch`/.libs/`basename libsbutil/headers.h.gch`.o; test -e "$src" || src=libsbutil/headers.h.gch.o; cp $src libsbutil/headers.h.gch )
/bin/sh ./libtool  --tag=CC   --mode=compile aarch64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13  -DETCDIR="\"/etc\"" -DLIBSANDBOX_PATH="\"/usr/lib\"" -DSANDBOX_BASHRC_PATH="\"/usr/share/sandbox\"" -D_REENTRANT  -Wall -Winvalid-pch -fdata-sections -ffunction-sections -fno-builtin-calloc -fno-builtin-malloc -fno-builtin-realloc -c -o libsandbox/headers.h.gch.o /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h -fexceptions && ( src=`dirname libsandbox/headers.h.gch`/.libs/`basename libsandbox/headers.h.gch`.o; test -e "$src" || src=libsandbox/headers.h.gch.o; cp $src libsandbox/headers.h.gch )
libtool: compile:  aarch64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13 -DETCDIR=\"/etc\" -DLIBSANDBOX_PATH=\"/usr/lib\" -DSANDBOX_BASHRC_PATH=\"/usr/share/sandbox\" -D_REENTRANT -Wall -Winvalid-pch -fdata-sections -ffunction-sections -fno-builtin-calloc -fno-builtin-malloc -fno-builtin-realloc -c /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h -fexceptions  -fPIC -DPIC -o libsandbox/.libs/headers.h.gch.o
libtool: compile:  aarch64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13 -DETCDIR=\"/etc\" -DLIBSANDBOX_PATH=\"/usr/lib\" -DSANDBOX_BASHRC_PATH=\"/usr/share/sandbox\" -D_REENTRANT -Wall -Winvalid-pch -fdata-sections -ffunction-sections -fno-builtin-calloc -fno-builtin-malloc -fno-builtin-realloc -c /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h  -fPIC -DPIC -o libsbutil/.libs/headers.h.gch.o
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:28:8: error: redefinition of ‘struct sigcontext’
   28 | struct sigcontext {
      |        ^~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:18:16: note: originally defined here
   18 | typedef struct sigcontext {
      |                ^~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:66:8: error: redefinition of ‘struct _aarch64_ctx’
   66 | struct _aarch64_ctx {
      |        ^~~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:29:8: note: originally defined here
   29 | struct _aarch64_ctx {
      |        ^~~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:73:8: error: redefinition of ‘struct fpsimd_context’
   73 | struct fpsimd_context {
      |        ^~~~~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:33:8: note: originally defined here
   33 | struct fpsimd_context {
      |        ^~~~~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:83:8: error: redefinition of ‘struct esr_context’
   83 | struct esr_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:39:8: note: originally defined here
   39 | struct esr_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:116:8: error: redefinition of ‘struct extra_context’
  116 | struct extra_context {
      |        ^~~~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:43:8: note: originally defined here
   43 | struct extra_context {
      |        ^~~~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:125:8: error: redefinition of ‘struct sve_context’
  125 | struct sve_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:49:8: note: originally defined here
   49 | struct sve_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:28:8: error: redefinition of ‘struct sigcontext’
   28 | struct sigcontext {
      |        ^~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:18:16: note: originally defined here
   18 | typedef struct sigcontext {
      |                ^~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:66:8: error: redefinition of ‘struct _aarch64_ctx’
   66 | struct _aarch64_ctx {
      |        ^~~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:29:8: note: originally defined here
   29 | struct _aarch64_ctx {
      |        ^~~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:73:8: error: redefinition of ‘struct fpsimd_context’
   73 | struct fpsimd_context {
      |        ^~~~~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:33:8: note: originally defined here
   33 | struct fpsimd_context {
      |        ^~~~~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:83:8: error: redefinition of ‘struct esr_context’
   83 | struct esr_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:39:8: note: originally defined here
   39 | struct esr_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:116:8: error: redefinition of ‘struct extra_context’
  116 | struct extra_context {
      |        ^~~~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:43:8: note: originally defined here
   43 | struct extra_context {
      |        ^~~~~~~~~~~~~
In file included from /usr/include/asm/ptrace.h:26,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:152:
/usr/include/asm/sigcontext.h:125:8: error: redefinition of ‘struct sve_context’
  125 | struct sve_context {
      |        ^~~~~~~~~~~
In file included from /usr/include/signal.h:48,
                 from /var/tmp/portage/sys-apps/sandbox-2.13/work/sandbox-2.13/headers.h:63:
/usr/include/bits/signal.h:49:8: note: originally defined here
   49 | struct sve_context {
      |        ^~~~~~~~~~~
make: *** [Makefile:914: libsandbox/headers.h.gch] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:911: libsbutil/headers.h.gch] Error 1
 * ERROR: sys-apps/sandbox-2.13::gentoo failed (compile phase):
 *   emake failed

Может кто знает...

★★

Не собирается пакедж, ошибка не выгугливается, вот ход сборки error: redefinition of ‘struct sigcontext’

Если бы я пытался разобраться в чём тут дело, мне бы в первую очередь захотелось изучить как работает компилятор gcc (aarch64-gentoo-linux-musl-gcc). Потому что из сообщений об ошибках совершенно непонятно, в каких двух файлах эта структура определена.

Если бы я понял, какие это два файла, я бы тогда стал узнавать из каких версий каких пакетов эти файлы берутся.

/usr/include/asm/sigcontext.h:28:8: error: redefinition of ‘struct sigcontext’

/usr/include/bits/signal.h:18:16: note: originally defined here

первый из sys-kernel/linux-headers

второй не нашелся, вероятно sys-libs/musl

Einstok_Fair ★★★ ()
Последнее исправление: Einstok_Fair (всего исправлений: 4)