I have a fresh install of EndeavorOS with KDE. I tried to install the Bup package for backups but it fails when trying to install (using yay -S bup). I have tried Bup and Bup-git but both fail.
This is what is printed out before failing to install Bup.
O2 -pipe -fno-plt
_helpers.c:359:13: error: conflicting types for ‘Py_GetArgcArgv’
359 | extern void Py_GetArgcArgv(int *argc, char ***argv);
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.9/cpython/pystate.h:9,
from /usr/include/python3.9/pystate.h:143,
from /usr/include/python3.9/genobject.h:11,
from /usr/include/python3.9/Python.h:123,
from _helpers.c:8:
/usr/include/python3.9/cpython/initconfig.h:456:18: note: previous declaration of ‘Py_GetArgcArgv’ was here
456 | PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
| ^~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
make: *** [Makefile:152: lib/bup/_helpers.so] Error 1
==> ERROR: A failure occurred in build().
Aborting...
error making: bup
Any help in getting this fixed or what I’m doing wrong is appreciated. I am a bit of a newb so keep that in mind for help
yay -S bup
:: There are 2 providers available for bup:
:: Repository AUR
1) bup 2) bup-git
Enter a number (default=1):
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] bup-0.31-1
1 bup (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): bup
1 bup (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: bup
==> Making package: bup 0.31-1 (Sat 12 Dec 2020 12:32:24 PM)
==> Retrieving sources...
-> Found bup-0.31.tar.gz
==> Validating source files with sha256sums...
bup-0.31.tar.gz ... Passed
==> Making package: bup 0.31-1 (Sat 12 Dec 2020 12:32:25 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found bup-0.31.tar.gz
==> Validating source files with sha256sums...
bup-0.31.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting bup-0.31.tar.gz with bsdtar
==> Sources are ready.
==> Making package: bup 0.31-1 (Sat 12 Dec 2020 12:32:27 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Configuring for [bup]
Looking for cpp (/usr/bin/cpp) ok
checking for install (/usr/bin/install)
checking the C compiler (cc) ok
ignoring bogus LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
checking for make (/usr/bin/make)
checking for python2.7 ()
checking for python2.6 ()
checking for python2 ()
checking for python (/usr/bin/python)
checking for git (/usr/bin/git)
checking for header sys/stat.h (found)
checking for header sys/types.h (found)
checking for header unistd.h (found)
checking for header sys/mman.h (found)
checking for header linux/fs.h (found)
checking for header sys/ioctl.h (found)
checking for the utimensat function (found)
checking for the utimes function (found)
checking for the lutimes function (found)
checking for __builtin_mul_overflow (found)
checking for the mincore function (found)
checking for MINCORE_INCORE (not found)
checking mincore buf type (unsigned char)
checking for readlinechecking that struct stat has a st_atim field (yes)
checking that struct stat has a st_mtim field (yes)
checking that struct stat has a st_ctim field (yes)
checking that struct stat has a st_atimensec field (no)
checking that struct stat has a st_mtimensec field (no)
checking that struct stat has a st_ctimensec field (no)
checking that struct tm has a tm_gmtoff field (yes)
checking for libacl (yes, pkg-config)
checking for header sys/acl.h (found)
checking for header acl/libacl.h (found)
checking for the acl_get_file function (found)
checking for the acl_from_text function (found)
checking for the acl_set_file function (found)
checking for the acl_extended_file function (found)
checking for the acl_to_any_text function (found)
checking for complete acl support (yes)
looking for sed (/usr/bin/sed)
generating config.vars
found: python (/usr/bin/python, Python 3.9.0)
found: git (/usr/bin/git, (git version 2.29.2)
not found: readline support (e.g. bup ftp)
found: POSIX ACL support
cd lib/bup && /home/michael/.cache/yay/bup/src/bup-0.31/config/bin/python csetup.py build "-D_FILE_OFFSET_BITS=64 -Wall -Wformat=2 -O2 -Werror -Wno-unknown-pragmas -march=x86-64 -mtune=generic -O2 -pipe -fno-plt" "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lacl"
running build
running build_ext
building '_helpers' extension
creating build
creating build/temp.linux-x86_64-3.9
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -D_FILE_OFFSET_BITS=64 -Wall -Wformat=2 -O2 -Werror -Wno-unknown-pragmas -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c _helpers.c -o build/temp.linux-x86_64-3.9/_helpers.o -D_FILE_OFFSET_BITS=64 -Wall -Wformat=2 -O2 -Werror -Wno-unknown-pragmas -march=x86-64 -mtune=generic -O2 -pipe -fno-plt
_helpers.c:359:13: error: conflicting types for ‘Py_GetArgcArgv’
359 | extern void Py_GetArgcArgv(int *argc, char ***argv);
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.9/cpython/pystate.h:9,
from /usr/include/python3.9/pystate.h:143,
from /usr/include/python3.9/genobject.h:11,
from /usr/include/python3.9/Python.h:123,
from _helpers.c:8:
/usr/include/python3.9/cpython/initconfig.h:456:18: note: previous declaration of ‘Py_GetArgcArgv’ was here
456 | PyAPI_FUNC(void) Py_GetArgcArgv(int *argc, wchar_t ***argv);
| ^~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
make: *** [Makefile:152: lib/bup/_helpers.so] Error 1
==> ERROR: A failure occurred in build().
Aborting...
error making: bup