>>> gptfdisk: Building main/gptfdisk 1.0.9-r3 (using abuild 3.12.0-r0) started Sat, 21 Oct 2023 01:01:37 +0000 >>> gptfdisk: Checking sanity of /home/buildozer/aports/main/gptfdisk/APKBUILD... >>> gptfdisk: Analyzing dependencies... >>> gptfdisk: Installing for build: build-base ncurses-dev e2fsprogs-dev popt-dev linux-headers (1/18) Installing libformw (6.4_p20231007-r0) (2/18) Installing libmenuw (6.4_p20231007-r0) (3/18) Installing libpanelw (6.4_p20231007-r0) (4/18) Installing libncurses++ (6.4_p20231007-r0) (5/18) Installing ncurses-dev (6.4_p20231007-r0) (6/18) Installing libblkid (2.39.2-r0) (7/18) Installing libuuid (2.39.2-r0) (8/18) Installing libfdisk (2.39.2-r0) (9/18) Installing libmount (2.39.2-r0) (10/18) Installing libsmartcols (2.39.2-r0) (11/18) Installing util-linux-dev (2.39.2-r0) (12/18) Installing gawk (5.2.2-r0) (13/18) Installing libcom_err (1.47.0-r5) (14/18) Installing e2fsprogs-libs (1.47.0-r5) (15/18) Installing e2fsprogs-dev (1.47.0-r5) (16/18) Installing popt-dev (1.19-r3) (17/18) Installing linux-headers (6.5-r0) (18/18) Installing .makedepends-gptfdisk (20231021.010138) Executing busybox-1.36.1-r13.trigger OK: 429 MiB in 119 packages >>> gptfdisk: Cleaning up srcdir >>> gptfdisk: Cleaning up pkgdir >>> gptfdisk: Cleaning up tmpdir >>> gptfdisk: Fetching https://distfiles.alpinelinux.org/distfiles/v3.19/gptfdisk-1.0.9.tar.gz >>> gptfdisk: Fetching https://distfiles.alpinelinux.org/distfiles/v3.19/gptfdisk-1.0.9.tar.gz >>> gptfdisk: Checking sha512sums... gptfdisk-1.0.9.tar.gz: OK fix-wrong-include.patch: OK 0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch: OK 0002-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch: OK 0003-Fix-NULL-dereference-when-duplicating-string-argumen.patch: OK >>> gptfdisk: Unpacking /var/cache/distfiles/v3.19/gptfdisk-1.0.9.tar.gz... >>> gptfdisk: fix-wrong-include.patch patching file gptcurses.cc >>> gptfdisk: 0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch patching file NEWS patching file gptcl.cc patching file support.h >>> gptfdisk: 0002-Updated-guid.cc-to-deal-with-minor-change-in-libuuid.patch patching file NEWS patching file guid.cc >>> gptfdisk: 0003-Fix-NULL-dereference-when-duplicating-string-argumen.patch patching file gptcl.cc TARGET is not set; trying to determine target based on host OS.... Detected OS is Linux Build target is linux g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o crc32.o crc32.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o support.o support.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o guid.o guid.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o gptpart.o gptpart.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o mbrpart.o mbrpart.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o basicmbr.o basicmbr.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o mbr.o mbr.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o gpt.o gpt.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o bsd.o bsd.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o parttypes.o parttypes.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o attributes.o attributes.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o diskio.o diskio.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o diskio-unix.o diskio-unix.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o gdisk.o gdisk.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o gpttext.o gpttext.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o cgdisk.o cgdisk.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o gptcurses.o gptcurses.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o sgdisk.o sgdisk.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o gptcl.o gptcl.cc g++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_ENABLE_HARDENED_MODE=1 -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o fixparts.o fixparts.cc gptcurses.cc: In member function 'void GPTDataCurses::ShowInfo(int)': gptcurses.cc:332:29: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 332 | printw("First sector: %lld (at %s)\n", partitions[partNum].GetFirstLBA(), | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:334:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 334 | printw("Last sector: %lld (at %s)\n", partitions[partNum].GetLastLBA(), | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:337:31: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 337 | printw("Partition size: %lld sectors (%s)\n", size, BytesToIeee(size, blockSize).c_str()); | ~~~^ ~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:338:35: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 338 | printw("Attribute flags: %016llx\n", partitions[partNum].GetAttributes().GetAttributes()); | ~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %016lx gptcurses.cc: In member function 'void GPTDataCurses::MakeNewPart()': gptcurses.cc:446:32: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 446 | printw("First sector (%lld-%lld, default = %lld): ", newFirstLBA, currentSpace->lastLBA, newFirstLBA); | ~~~^ ~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:446:37: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 446 | printw("First sector (%lld-%lld, default = %lld): ", newFirstLBA, currentSpace->lastLBA, newFirstLBA); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:446:53: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 446 | printw("First sector (%lld-%lld, default = %lld): ", newFirstLBA, currentSpace->lastLBA, newFirstLBA); | ~~~^ ~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gptcurses.cc:460:56: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 460 | printw("Size in sectors or {KMGTP} (default = %lld): ", size); | ~~~^ ~~~~ | | | | | uint64_t {aka long unsigned int} | long long int | %ld diskio-unix.cc: In member function 'int DiskIO::OpenForRead()': diskio-unix.cc:55:18: error: aggregate 'DiskIO::OpenForRead()::stat64 st' has incomplete type and cannot be defined 55 | struct stat64 st; | ^~ diskio-unix.cc:81:14: error: 'fstat64' was not declared in this scope; did you mean 'stat64'? 81 | if (fstat64(fd, &st) == 0) { | ^~~~~~~ | stat64 diskio-unix.cc: In member function 'int DiskIO::Seek(uint64_t)': diskio-unix.cc:314:4: error: 'off64_t' was not declared in this scope; did you mean 'off_t'? 314 | off64_t seekTo, sought; | ^~~~~~~ | off_t diskio-unix.cc:322:7: error: 'seekTo' was not declared in this scope; did you mean 'fseeko'? 322 | seekTo = sector * (uint64_t) GetBlockSize(); | ^~~~~~ | fseeko diskio-unix.cc:323:7: error: 'sought' was not declared in this scope 323 | sought = lseek64(fd, seekTo, SEEK_SET); | ^~~~~~ diskio-unix.cc:323:16: error: 'lseek64' was not declared in this scope; did you mean 'lseek'? 323 | sought = lseek64(fd, seekTo, SEEK_SET); | ^~~~~~~ | lseek diskio-unix.cc: In member function 'uint64_t DiskIO::DiskSize(int*)': diskio-unix.cc:431:4: error: 'off64_t' was not declared in this scope; did you mean 'off_t'? 431 | off64_t bytes = 0; // size in bytes | ^~~~~~~ | off_t diskio-unix.cc:432:18: error: aggregate 'DiskIO::DiskSize(int*)::stat64 st' has incomplete type and cannot be defined 432 | struct stat64 st; | ^~ diskio-unix.cc:491:14: error: 'fstat64' was not declared in this scope; did you mean 'stat64'? 491 | if (fstat64(fd, &st) == 0) { | ^~~~~~~ | stat64 diskio-unix.cc:492:13: error: 'bytes' was not declared in this scope 492 | bytes = st.st_size; | ^~~~~ make: *** [: diskio-unix.o] Error 1 make: *** Waiting for unfinished jobs.... >>> ERROR: gptfdisk: build failed >>> gptfdisk: Uninstalling dependencies... (1/18) Purging .makedepends-gptfdisk (20231021.010138) (2/18) Purging ncurses-dev (6.4_p20231007-r0) (3/18) Purging libncurses++ (6.4_p20231007-r0) (4/18) Purging libpanelw (6.4_p20231007-r0) (5/18) Purging e2fsprogs-dev (1.47.0-r5) (6/18) Purging util-linux-dev (2.39.2-r0) (7/18) Purging libfdisk (2.39.2-r0) (8/18) Purging libmount (2.39.2-r0) (9/18) Purging libsmartcols (2.39.2-r0) (10/18) Purging libuuid (2.39.2-r0) (11/18) Purging gawk (5.2.2-r0) (12/18) Purging e2fsprogs-libs (1.47.0-r5) (13/18) Purging libcom_err (1.47.0-r5) (14/18) Purging popt-dev (1.19-r3) (15/18) Purging linux-headers (6.5-r0) (16/18) Purging libblkid (2.39.2-r0) (17/18) Purging libformw (6.4_p20231007-r0) (18/18) Purging libmenuw (6.4_p20231007-r0) Executing busybox-1.36.1-r13.trigger OK: 416 MiB in 101 packages