You are not logged in.

#1 2024-07-17 15:29:02

Sh4dowNotFound
Member
Registered: 2024-07-14
Posts: 2

Wystapil blad w build().

==> Tworzenie pakietu: snapd 2.63-1 (śro, 17 lip 2024, 17:24:23)
==> Sprawdzanie zależności potrzebnych do uruchomienia...
==> Sprawdzanie zależności potrzebnych do budowy...
==> Pobieranie źródeł...
  -> Znaleziono snapd-2.63.tar.xz
  -> Znaleziono 0001-cmd-snap-seccomp-define-GNU_SOURCE-for-fallocate.patch
==> Sprawdzanie plików source za pomocą sha256sums...
    snapd-2.63.tar.xz ... Zgadza się
    0001-cmd-snap-seccomp-define-GNU_SOURCE-for-fallocate.patch ... Zgadza się
==> Rozpakowywanie źródeł...
  -> Rozpakowywanie snapd-2.63.tar.xz za pomocą bsdtar
==> Rozpoczynanie prepare()...
  -> applying 0001-cmd-snap-seccomp-define-GNU_SOURCE-for-fallocate.patch
patching file cmd/snap-seccomp/main.go
==> Usuwanie istniejącego katalogu $pkgdir/...
==> Rozpoczynanie build()...
*** Setting version to '2.63-1' from user.
# github.com/snapcore/snapd/cmd/snap-update-ns
/usr/bin/ld: /tmp/go-link-1274648842/000018.o: in function `mygetgrgid_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:45:(.text+0x47): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1274648842/000018.o: in function `mygetgrnam_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:54:(.text+0xe8): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1274648842/000019.o: in function `mygetgrouplist':
/_/GOROOT/src/os/user/getgrouplist_unix.go:15:(.text+0x2d): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1274648842/000024.o: in function `_cgo_97ab22c4dc7b_C2func_getaddrinfo':
/tmp/go-build/cgo_unix_cgo.cgo2.c:60:(.text+0x3b): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1274648842/000018.o: in function `mygetpwnam_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:36:(.text+0x18c): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1274648842/000018.o: in function `mygetpwuid_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:27:(.text+0x23b): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
# github.com/snapcore/snapd/cmd/snap-exec
/usr/bin/ld: /tmp/go-link-3971461431/000001.o: in function `mygetgrgid_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:45:(.text+0x47): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3971461431/000001.o: in function `mygetgrnam_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:54:(.text+0xe8): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3971461431/000002.o: in function `mygetgrouplist':
/_/GOROOT/src/os/user/getgrouplist_unix.go:15:(.text+0x2d): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3971461431/000021.o: in function `_cgo_97ab22c4dc7b_C2func_getaddrinfo':
/tmp/go-build/cgo_unix_cgo.cgo2.c:60:(.text+0x3b): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3971461431/000001.o: in function `mygetpwnam_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:36:(.text+0x18c): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3971461431/000001.o: in function `mygetpwuid_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:27:(.text+0x23b): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
# github.com/snapcore/snapd/cmd/snapctl
/usr/bin/ld: /tmp/go-link-1908304180/000001.o: in function `mygetgrgid_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:45:(.text+0x47): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1908304180/000001.o: in function `mygetgrnam_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:54:(.text+0xe8): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1908304180/000002.o: in function `mygetgrouplist':
/_/GOROOT/src/os/user/getgrouplist_unix.go:15:(.text+0x2d): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1908304180/000007.o: in function `_cgo_97ab22c4dc7b_C2func_getaddrinfo':
/tmp/go-build/cgo_unix_cgo.cgo2.c:60:(.text+0x3b): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1908304180/000001.o: in function `mygetpwnam_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:36:(.text+0x18c): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-1908304180/000001.o: in function `mygetpwuid_r':
/_/GOROOT/src/os/user/cgo_lookup_cgo.go:27:(.text+0x23b): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make: opcja '-j' wymaga argumentu będącego liczbą całkowitą dodatnią
Składnia: make [opcje] [obiekt] ...
Opcje:
  -b, -m                      Ignorowane dla kompatybilności.
  -B, --always-make           Bezwarunkowe utworzenie wszystkich obiektów.
  -C KATALOG, --directory=KATALOG
                              Przejście do KATALOGu przed robieniem
                              czegokolwiek.
  -d                          Wyświetla dużo informacji diagnostycznych.
  --debug[=FLAGI]             Wyświetla różne rodzaje informacji
                              diagnostycznych.
  -e, --environment-overrides
                              Zmienne środowiska przykrywają makefile.
  -E ŁAŃCUCH, --eval=ŁAŃCUCH  Wyznacza ŁAŃCUCH jako instrukcję pliku makefile.
  -f PLIK, --file=PLIK, --makefile=PLIK
                              Czyta PLIK jako makefile.
  -h, --help                  Wyświetla ten komunikat i kończy działanie.
  -i, --ignore-errors         Ignoruje błędy poleceń.
  -I KATALOG, --include-dir=KATALOG
                              Szuka dołączanych makefile w KATALOGu.
  -j [N], --jobs[=N]          Dopuszcza N zadań naraz; brak N oznacza brak
                              ograniczeń.
  --jobserver-style=STYL      Wybór stylu używanego srewera zadań.
  -k, --keep-going            Kontynuuj jeśli nie da się zrobić jakichś
                              obiektów.
  -l [N], --load-average[=N], --max-load[=N]
                              Nie uruchamiaj wielu zadań jeśli load nie jest
                              poniżej N.
  -L, --check-symlink-times   Używanie ostatniego mtime między dowiązaniem a celem.
  -n, --just-print, --dry-run, --recon
                              Nie wykonuje poleceń; jedynie je wyświetla.
  -o PLIK, --old-file=PLIK, --assume-old=PLIK
                              Uznanie PLIKu za bardzo stary i nie tworzenie go
                              ponownie.
  -O[SPOSÓB], --output-sync[=SPOSÓB]
                              Sposób synchronizacji wyjścia zadań równoległych.
  -p, --print-data-base       Wyświetla wewnętrzną bazę danych make.
  -q, --question              Nie uruchamia żadnych poleceń; status powrotu
                              wskazuje aktualność.
  -r, --no-builtin-rules      Wyłącza wbudowane reguły standardowe.
  -R, --no-builtin-variables  Wyłącza ustawianie wbudowanych zmiennych.
  --shuffle[={ZARODEK|random|reverse|none}]
                              Przetasowanie zależności i celów.
  -s, --silent, --quiet       Nie wypisuje poleceń.
  --no-silent                 Wypisuje polecenia (wyłącza tryb --silent).
  -S, --no-keep-going, --stop
                              Wyłącza -k.
  -t, --touch                 Uaktualnia obiekty zamiast je robić.
  --trace                     Wypisywanie informacji ze śledzenia.
  -v, --version               Wyświetla wersję make i kończy działanie.
  -w, --print-directory       Wyświetla aktualny katalog.
  --no-print-directory        Wyłącza -w, nawet jeśli było ono włączone
                              domyślnie.
  -W PLIK, --what-if=PLIK, --new-file=PLIK, --assume-new=PLIK
                              Uznaje PLIK za nieskończenie nowy.
  --warn-undefined-variables  Ostrzega przy odwołaniach do niezdefiniowanych
                              zmiennych.

Ten program został zbudowany dla x86_64-pc-linux-gnu
Błędy proszę zgłaszać na adres <bug-make@gnu.org>
==> BŁĄD: Wystąpił błąd w build().
    Przerywam...`

Dzien dobry, gdy chcialem zainstalowac pakiet snapd (ten do robienia screenshoots)
wystapil blad podany powyzej

Last edited by Sh4dowNotFound (2024-07-17 15:29:31)

Offline

#2 2024-07-17 23:12:48

stanczew
Member
Registered: 2021-03-02
Posts: 76

Re: Wystapil blad w build().

Cześć,

Tekst z terminala wrzucaj proszę między tagi [ code ] [ /code ], dzięki temu łatwiej będzie go przewijać.

Błąd:

make: opcja '-j' wymaga argumentu będącego liczbą całkowitą dodatnią

wskazuje na to, że make zostal wywołany niepoprawnie. W PKGBUILD znajduje się następujące wywołanie:

make $MAKEFLAGS

Wygląda jakby zmienna MAKEFLAGS zawierała opcję "-j", ale bez odpowiedniej wartości (np. "-j 8").

W kontekście makepkg, wartość MAKEFLAGS może się brać ze standardowych miejsc (Wiki), albo z makepkg.conf. A zatem:

$ echo $MAKEFLAGS
$ cat /etc/makepkg.conf /etc/makepkg.conf.d/*

Swoją drogą:

pakiet snapd (ten do robienia screenshoots)

Czy na pewno chodzi o właściwy pakiet? snapd służy do zarządzania dystrybucją oprogramowania, nie do robienia screenshotów.

Offline

#3 2024-07-19 09:07:12

Sh4dowNotFound
Member
Registered: 2024-07-14
Posts: 2

Re: Wystapil blad w build().

co ja mowie, to spectacle byl do zdjec
a tak po drodze teraz wszystko dziala tylko ze zamiast -j (liczba dodatnia) to dalem -j$ i teraz jakos dziala

Last edited by Sh4dowNotFound (2024-07-19 09:09:40)

Offline

Board footer

Powered by FluxBB