xceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fcommon' running build running build_py creating build creating build/lib.linux-riscv64-3.8 creating build/lib.linux-riscv64-3.8/parted copying src/parted/geometry.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/decorators.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/device.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/cachedlist.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/filesystem.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/__init__.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/partition.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/alignment.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/disk.py -> build/lib.linux-riscv64-3.8/parted copying src/parted/constraint.py -> build/lib.linux-riscv64-3.8/parted running build_ext building '_ped' extension creating build/temp.linux-riscv64-3.8 creating build/temp.linux-riscv64-3.8/src gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fcommon -fPIC -DPYPARTED_VERSION="3.11.5" -Iinclude -I/usr/include/python3.8 -c src/_pedmodule.c -o build/temp.linux-riscv64-3.8/src/_pedmodule.o src/_pedmodule.c: In function ‘PyInit__ped’: src/_pedmodule.c:664:65: error: ‘PED_PARTITION_CHROMEOS_KERNEL’ undeclared (first use in this function) 664 | PyModule_AddIntConstant(m, "PARTITION_CHROMEOS_KERNEL", PED_PARTITION_CHROMEOS_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/_pedmodule.c:664:65: note: each undeclared identifier is reported only once for each function it appears in src/_pedmodule.c:666:58: error: ‘PED_PARTITION_BLS_BOOT’ undeclared (first use in this function); did you mean ‘PED_PARTITION_BOOT’? 666 | PyModule_AddIntConstant(m, "PARTITION_BLS_BOOT", PED_PARTITION_BLS_BOOT); | ^~~~~~~~~~~~~~~~~~~~~~ | PED_PARTITION_BOOT error: command 'gcc' failed with exit status 1 make: *** [Makefile:39: all] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.SRkuHb (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SRkuHb (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pyparted.spec