Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/efivar.spec'], chrootPath='/var/lib/mock/dist-an23-build-78267-40551/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/efivar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646265600 Wrote: /builddir/build/SRPMS/efivar-38-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/efivar.spec'], chrootPath='/var/lib/mock/dist-an23-build-78267-40551/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/efivar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1646265600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.I3hIBu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf efivar-38 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/efivar-38.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd efivar-38 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + git init hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /builddir/build/BUILD/efivar-38/.git/ + git config user.email efivar-owner@openanolis.cn + git config user.name 'anolis Ninjas' + git add . + git commit -a -q -m '38 baseline.' + git am + git config --unset user.email + git config --unset user.name + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tNPkOI + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd efivar-38 + make LIBDIR=/usr/lib64 BINDIR=/usr/bin 'CFLAGS=-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS= make[1]: Entering directory '/builddir/build/BUILD/efivar-38/src' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -march=native -c -o makeguids.o makeguids.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -march=native -c -o util.o util.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,-z,now -Wl,-z,muldefs -Wl,--no-undefined-version -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -march=native -o makeguids makeguids.o util.o -ldl ./makeguids -T guids.txt guid-symbols.c include/efivar/efivar-guids.h guids.lds ./makeguids -T guids.txt guid-symbols.c include/efivar/efivar-guids.h guids.lds make[2]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Nothing to be done for 'prep'. make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/docs' make[1]: Nothing to be done for 'prep'. make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/docs' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Nothing to be done for 'deps'. make[2]: Leaving directory '/builddir/build/BUILD/efivar-38/src' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o crc32.o crc32.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp.o dp.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-acpi.o dp-acpi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-hw.o dp-hw.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-media.o dp-media.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-message.o dp-message.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o efivarfs.o efivarfs.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o error.o error.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o export.o export.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid.o guid.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid-symbols.o guid-symbols.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o lib.o lib.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o vars.o vars.c vars.c: In function 'vars_probe': vars.c:222:14: warning: pointer used after 'free' [-Wuse-after-free] 222 | if (!access(newvar, F_OK)) | ^~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from vars.c:20: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_del_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_set_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o time.o time.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map \ -T guids.lds \ -o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o guid.o guid-symbols.o lib.o vars.o time.o -ldl ln -vfs libefivar.so libefivar.so.1 'libefivar.so.1' -> 'libefivar.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o creator.o creator.c In file included from /usr/include/fcntl.h:342, from creator.c:9: In function 'open', inlined from 'open_disk.isra' at creator.c:139:7: /usr/include/bits/fcntl2.h:57:12: warning: pointer used after 'free' [-Wuse-after-free] 57 | return __open_2 (__path, __oflag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from creator.c:21: creator.c: In function 'open_disk.isra': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o disk.o disk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o gpt.o gpt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o loadopt.o loadopt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o path-helpers.o path-helpers.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux.o linux.c In file included from /usr/include/fcntl.h:342, from linux.c:12: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux.c:30: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/dirent.h:25, from linux.c:10: In function 'readlink', inlined from 'find_parent_devpath' at linux.c:46:8: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'find_parent_devpath': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:414:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:448:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ In file included from efivar.h:28: linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ In function 'readlink', inlined from 'make_mac_path' at linux.c:652:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'make_mac_path': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi-root.o linux-acpi-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi.o linux-acpi.c In file included from /usr/include/fcntl.h:342, from linux-acpi.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-acpi.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ linux-acpi.c: In function 'parse_acpi_hid_uid': util.h:364:34: warning: pointer used after 'free' [-Wuse-after-free] 364 | #define log(level, fmt, args...) log_(__FILE__, __LINE__, __func__, level, fmt, ## args) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.h:365:29: note: in expansion of macro 'log' 365 | #define debug(fmt, args...) log(DEBUG_LEVEL, fmt, ## args) | ^~~ linux-acpi.c:33:9: note: in expansion of macro 'debug' 33 | debug("path:%s rc:%d", path, rc); | ^~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-ata.o linux-ata.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-emmc.o linux-emmc.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-i2o.o linux-i2o.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-md.o linux-md.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-nvme.o linux-nvme.c In file included from /usr/include/fcntl.h:342, from linux-nvme.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-nvme.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-nvme.c: In function 'parse_nvme': linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci-root.o linux-pci-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci.o linux-pci.c In file included from efivar.h:28, from efiboot.h:10, from linux-pci.c:15: linux-pci.c: In function 'parse_pci': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from efivar.h:19: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/errno.h:25, from linux-pci.c:9: In function 'readlink', inlined from 'parse_pci' at linux-pci.c:88:23: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux-pci.c: In function 'parse_pci': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pmem.o linux-pmem.c In file included from /usr/include/fcntl.h:342, from linux-pmem.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-pmem.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sas.o linux-sas.c In file included from /usr/include/fcntl.h:342, from linux-sas.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sas.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sas.c: In function 'parse_sas': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sata.o linux-sata.c In file included from /usr/include/fcntl.h:342, from linux-sata.c:11: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sata.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sata.c: In function 'sysfs_sata_get_port_info': linux.h:256:32: warning: pointer used after 'free' [-Wuse-after-free] 256 | dir_ = opendir(pn_); \ | ^~~~~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-scsi.o linux-scsi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-soc-root.o linux-soc-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtblk.o linux-virtblk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtual-root.o linux-virtual-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefiboot.so.1 -Wl,--version-script=libefiboot.map \ \ -o libefiboot.so crc32.o creator.o disk.o gpt.o loadopt.o path-helpers.o linux.o linux-acpi-root.o linux-acpi.o linux-ata.o linux-emmc.o linux-i2o.o linux-md.o linux-nvme.o linux-pci-root.o linux-pci.o linux-pmem.o linux-sas.o linux-sata.o linux-scsi.o linux-soc-root.o linux-virtblk.o linux-virtual-root.o -lefivar ln -vfs libefiboot.so libefiboot.so.1 'libefiboot.so.1' -> 'libefiboot.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o sec.o sec.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o secdb.o secdb.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o esl-iter.o esl-iter.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefisec.so.1 -Wl,--version-script=libefisec.map \ \ -o libefisec.so sec.o secdb.o esl-iter.o util.o ln -vfs libefisec.so libefisec.so.1 'libefisec.so.1' -> 'libefisec.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o efivar.o efivar.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o efivar efivar.o guid.o util.o -lefivar -ldl gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o efisecdb.o efisecdb.c In file included from /usr/include/fcntl.h:342, from efisecdb.c:12: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efisec.h:24, from efisecdb.c:23: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o secdb-dump.o secdb-dump.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o efisecdb efisecdb.o guid-symbols.o secdb-dump.o util.o -lefivar -lefisec -ldl gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -I/builddir/build/BUILD/efivar-38/src/include/efivar -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o thread-test.o thread-test.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -I/builddir/build/BUILD/efivar-38/src/include/efivar -L. -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o thread-test libefivar.so thread-test.o -lpthread -lefivar rm thread-test.o make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/docs' mandoc -mdoc -Tman -Ios=Linux efisecdb.1.mdoc > efisecdb.1 make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/docs' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.AMo7zd + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64 ++ dirname /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd efivar-38 + echo 'warning: %makeinstall is deprecated, try %make_install instead' warning: %makeinstall is deprecated, try %make_install instead + /usr/bin/make prefix=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr exec_prefix=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr bindir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin sbindir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/sbin sysconfdir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/etc datadir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share includedir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include libdir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64 libexecdir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/libexec localstatedir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/var sharedstatedir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/var/lib mandir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man infodir=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/info install make[1]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Nothing to be done for 'deps'. make[2]: Leaving directory '/builddir/build/BUILD/efivar-38/src' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o crc32.o crc32.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp.o dp.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-acpi.o dp-acpi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-hw.o dp-hw.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-media.o dp-media.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-message.o dp-message.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o efivarfs.o efivarfs.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o error.o error.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o export.o export.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid.o guid.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid-symbols.o guid-symbols.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o lib.o lib.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o vars.o vars.c vars.c: In function 'vars_probe': vars.c:222:14: warning: pointer used after 'free' [-Wuse-after-free] 222 | if (!access(newvar, F_OK)) | ^~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from vars.c:20: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_del_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_set_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o time.o time.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map \ -T guids.lds \ -o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o guid.o guid-symbols.o lib.o vars.o time.o -ldl ln -vfs libefivar.so libefivar.so.1 'libefivar.so.1' -> 'libefivar.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o creator.o creator.c In file included from /usr/include/fcntl.h:342, from creator.c:9: In function 'open', inlined from 'open_disk.isra' at creator.c:139:7: /usr/include/bits/fcntl2.h:57:12: warning: pointer used after 'free' [-Wuse-after-free] 57 | return __open_2 (__path, __oflag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from creator.c:21: creator.c: In function 'open_disk.isra': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o disk.o disk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o gpt.o gpt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o loadopt.o loadopt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o path-helpers.o path-helpers.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux.o linux.c In file included from /usr/include/fcntl.h:342, from linux.c:12: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux.c:30: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/dirent.h:25, from linux.c:10: In function 'readlink', inlined from 'find_parent_devpath' at linux.c:46:8: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'find_parent_devpath': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:414:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:448:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ In file included from efivar.h:28: linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ In function 'readlink', inlined from 'make_mac_path' at linux.c:652:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'make_mac_path': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi-root.o linux-acpi-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi.o linux-acpi.c In file included from /usr/include/fcntl.h:342, from linux-acpi.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-acpi.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ linux-acpi.c: In function 'parse_acpi_hid_uid': util.h:364:34: warning: pointer used after 'free' [-Wuse-after-free] 364 | #define log(level, fmt, args...) log_(__FILE__, __LINE__, __func__, level, fmt, ## args) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.h:365:29: note: in expansion of macro 'log' 365 | #define debug(fmt, args...) log(DEBUG_LEVEL, fmt, ## args) | ^~~ linux-acpi.c:33:9: note: in expansion of macro 'debug' 33 | debug("path:%s rc:%d", path, rc); | ^~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-ata.o linux-ata.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-emmc.o linux-emmc.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-i2o.o linux-i2o.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-md.o linux-md.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-nvme.o linux-nvme.c In file included from /usr/include/fcntl.h:342, from linux-nvme.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-nvme.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-nvme.c: In function 'parse_nvme': linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci-root.o linux-pci-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci.o linux-pci.c In file included from efivar.h:28, from efiboot.h:10, from linux-pci.c:15: linux-pci.c: In function 'parse_pci': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from efivar.h:19: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/errno.h:25, from linux-pci.c:9: In function 'readlink', inlined from 'parse_pci' at linux-pci.c:88:23: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux-pci.c: In function 'parse_pci': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pmem.o linux-pmem.c In file included from /usr/include/fcntl.h:342, from linux-pmem.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-pmem.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sas.o linux-sas.c In file included from /usr/include/fcntl.h:342, from linux-sas.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sas.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sas.c: In function 'parse_sas': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sata.o linux-sata.c In file included from /usr/include/fcntl.h:342, from linux-sata.c:11: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sata.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sata.c: In function 'sysfs_sata_get_port_info': linux.h:256:32: warning: pointer used after 'free' [-Wuse-after-free] 256 | dir_ = opendir(pn_); \ | ^~~~~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-scsi.o linux-scsi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-soc-root.o linux-soc-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtblk.o linux-virtblk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtual-root.o linux-virtual-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefiboot.so.1 -Wl,--version-script=libefiboot.map \ \ -o libefiboot.so crc32.o creator.o disk.o gpt.o loadopt.o path-helpers.o linux.o linux-acpi-root.o linux-acpi.o linux-ata.o linux-emmc.o linux-i2o.o linux-md.o linux-nvme.o linux-pci-root.o linux-pci.o linux-pmem.o linux-sas.o linux-sata.o linux-scsi.o linux-soc-root.o linux-virtblk.o linux-virtual-root.o -lefivar ln -vfs libefiboot.so libefiboot.so.1 'libefiboot.so.1' -> 'libefiboot.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o efivar efivar.o guid.o util.o -lefivar -ldl gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o efisecdb efisecdb.o guid-symbols.o secdb-dump.o util.o -lefivar -lefisec -ldl gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -I/builddir/build/BUILD/efivar-38/src/include/efivar -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o thread-test.o thread-test.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -I/builddir/build/BUILD/efivar-38/src/include/efivar -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o thread-test libefivar.so thread-test.o -lpthread -lefivar install -d -m 755 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64 install -m 755 libefivar.so /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefivar.so.1.38 ; ln -fs libefivar.so.1.38 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefivar.so.1 ; ln -fs libefivar.so.1.38 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefivar.so ; install -m 755 libefiboot.so /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefiboot.so.1.38 ; ln -fs libefiboot.so.1.38 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefiboot.so.1 ; ln -fs libefiboot.so.1.38 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefiboot.so ; install -m 755 libefisec.so /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefisec.so.1.38 ; ln -fs libefisec.so.1.38 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefisec.so.1 ; ln -fs libefisec.so.1.38 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefisec.so ; install -d -m 755 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/pkgconfig install -m 644 efivar.pc /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/pkgconfig ; install -m 644 efiboot.pc /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/pkgconfig ; install -m 644 efisec.pc /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/pkgconfig ; install -d -m 755 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efiboot-creator.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efiboot-creator.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efiboot-loadopt.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efiboot-loadopt.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efiboot.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efiboot.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efisec-secdb.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efisec-secdb.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efisec-types.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efisec-types.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efisec.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efisec.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efivar-dp.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efivar-dp.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efivar-guids.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efivar-guids.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efivar-time.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efivar-time.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efivar-types.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efivar-types.h; install -m 644 /builddir/build/BUILD/efivar-38/src/include/efivar/efivar.h /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/efivar.h; install -d -m 755 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin install -m 755 efivar /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin; install -m 755 efisecdb /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin; rm thread-test.o make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/docs' install -d -m 755 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man1 install -m 644 efisecdb.1 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man1/; install -m 644 efivar.1 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man1/; install -d -m 755 /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3 install -m 644 efi_append_variable.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_del_variable.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_get_next_variable_name.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_get_variable.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_get_variable_attributes.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_get_variable_size.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_guid_to_id_guid.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_guid_to_name.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_guid_to_str.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_guid_to_symbol.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_name_to_guid.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_set_variable.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_str_to_guid.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_symbol_to_guid.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variables_supported.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_t.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_import.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_export.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_alloc.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_free.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_set_name.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_get_name.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_set_guid.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_get_guid.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_set_data.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_get_data.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_get_attributes.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_set_attributes.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; install -m 644 efi_variable_realize.3 //builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/man/man3/; make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/docs' + install -m 0644 src/abignore /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/include/efivar/.abignore + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 38-1.an23 --unique-debug-suffix -38-1.an23.x86_64 --unique-debug-src-base efivar-38-1.an23.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/efivar-38 extracting debug info from /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin/efivar extracting debug info from /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin/efisecdb extracting debug info from /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefiboot.so.1.38 extracting debug info from /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefisec.so.1.38 extracting debug info from /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/lib64/libefivar.so.1.38 original debug info size: 1232kB, size after compression: 1068kB /usr/bin/sepdebugcrcfix: Updated 5 CRC32s, 0 CRC32s did match. 956 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ssjSCb + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd efivar-38 + make abicheck make[1]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Nothing to be done for 'deps'. make[2]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Nothing to be done for 'prep'. make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/docs' make[1]: Nothing to be done for 'prep'. make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/docs' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Nothing to be done for 'deps'. make[2]: Leaving directory '/builddir/build/BUILD/efivar-38/src' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o crc32.o crc32.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp.o dp.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-acpi.o dp-acpi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-hw.o dp-hw.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-media.o dp-media.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-message.o dp-message.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o efivarfs.o efivarfs.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o error.o error.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o export.o export.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid.o guid.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid-symbols.o guid-symbols.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o lib.o lib.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o vars.o vars.c vars.c: In function 'vars_probe': vars.c:222:14: warning: pointer used after 'free' [-Wuse-after-free] 222 | if (!access(newvar, F_OK)) | ^~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from vars.c:20: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_del_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_set_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o time.o time.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map \ -T guids.lds \ -o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o guid.o guid-symbols.o lib.o vars.o time.o -ldl ln -vfs libefivar.so libefivar.so.1 'libefivar.so.1' -> 'libefivar.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o creator.o creator.c In file included from /usr/include/fcntl.h:342, from creator.c:9: In function 'open', inlined from 'open_disk.isra' at creator.c:139:7: /usr/include/bits/fcntl2.h:57:12: warning: pointer used after 'free' [-Wuse-after-free] 57 | return __open_2 (__path, __oflag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from creator.c:21: creator.c: In function 'open_disk.isra': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o disk.o disk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o gpt.o gpt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o loadopt.o loadopt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o path-helpers.o path-helpers.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux.o linux.c In file included from /usr/include/fcntl.h:342, from linux.c:12: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux.c:30: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/dirent.h:25, from linux.c:10: In function 'readlink', inlined from 'find_parent_devpath' at linux.c:46:8: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'find_parent_devpath': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:414:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:448:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ In file included from efivar.h:28: linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ In function 'readlink', inlined from 'make_mac_path' at linux.c:652:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'make_mac_path': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi-root.o linux-acpi-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi.o linux-acpi.c In file included from /usr/include/fcntl.h:342, from linux-acpi.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-acpi.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ linux-acpi.c: In function 'parse_acpi_hid_uid': util.h:364:34: warning: pointer used after 'free' [-Wuse-after-free] 364 | #define log(level, fmt, args...) log_(__FILE__, __LINE__, __func__, level, fmt, ## args) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.h:365:29: note: in expansion of macro 'log' 365 | #define debug(fmt, args...) log(DEBUG_LEVEL, fmt, ## args) | ^~~ linux-acpi.c:33:9: note: in expansion of macro 'debug' 33 | debug("path:%s rc:%d", path, rc); | ^~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-ata.o linux-ata.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-emmc.o linux-emmc.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-i2o.o linux-i2o.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-md.o linux-md.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-nvme.o linux-nvme.c In file included from /usr/include/fcntl.h:342, from linux-nvme.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-nvme.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-nvme.c: In function 'parse_nvme': linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci-root.o linux-pci-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci.o linux-pci.c In file included from efivar.h:28, from efiboot.h:10, from linux-pci.c:15: linux-pci.c: In function 'parse_pci': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from efivar.h:19: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/errno.h:25, from linux-pci.c:9: In function 'readlink', inlined from 'parse_pci' at linux-pci.c:88:23: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux-pci.c: In function 'parse_pci': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pmem.o linux-pmem.c In file included from /usr/include/fcntl.h:342, from linux-pmem.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-pmem.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sas.o linux-sas.c In file included from /usr/include/fcntl.h:342, from linux-sas.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sas.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sas.c: In function 'parse_sas': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sata.o linux-sata.c In file included from /usr/include/fcntl.h:342, from linux-sata.c:11: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sata.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sata.c: In function 'sysfs_sata_get_port_info': linux.h:256:32: warning: pointer used after 'free' [-Wuse-after-free] 256 | dir_ = opendir(pn_); \ | ^~~~~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-scsi.o linux-scsi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-soc-root.o linux-soc-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtblk.o linux-virtblk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtual-root.o linux-virtual-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefiboot.so.1 -Wl,--version-script=libefiboot.map \ \ -o libefiboot.so crc32.o creator.o disk.o gpt.o loadopt.o path-helpers.o linux.o linux-acpi-root.o linux-acpi.o linux-ata.o linux-emmc.o linux-i2o.o linux-md.o linux-nvme.o linux-pci-root.o linux-pci.o linux-pmem.o linux-sas.o linux-sata.o linux-scsi.o linux-soc-root.o linux-virtblk.o linux-virtual-root.o -lefivar ln -vfs libefiboot.so libefiboot.so.1 'libefiboot.so.1' -> 'libefiboot.so' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o efivar efivar.o guid.o util.o -lefivar -ldl gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o efisecdb efisecdb.o guid-symbols.o secdb-dump.o util.o -lefivar -lefisec -ldl gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -I/builddir/build/BUILD/efivar-38/src/include/efivar -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o thread-test.o thread-test.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -I/builddir/build/BUILD/efivar-38/src/include/efivar -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -o thread-test libefivar.so thread-test.o -lpthread -lefivar rm thread-test.o make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src' make[1]: Entering directory '/builddir/build/BUILD/efivar-38/docs' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/docs' make -C src abicheck make[1]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Entering directory '/builddir/build/BUILD/efivar-38/src' make[2]: Nothing to be done for 'deps'. make[2]: Leaving directory '/builddir/build/BUILD/efivar-38/src' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o crc32.o crc32.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp.o dp.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-acpi.o dp-acpi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-hw.o dp-hw.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-media.o dp-media.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o dp-message.o dp-message.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o efivarfs.o efivarfs.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o error.o error.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o export.o export.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid.o guid.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o guid-symbols.o guid-symbols.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o lib.o lib.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o vars.o vars.c vars.c: In function 'vars_probe': vars.c:222:14: warning: pointer used after 'free' [-Wuse-after-free] 222 | if (!access(newvar, F_OK)) | ^~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from vars.c:20: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:218:13: note: in expansion of macro 'asprintfa' 218 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_del_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:425:13: note: in expansion of macro 'asprintfa' 425 | if (asprintfa(&delvar, "%s%s", get_vars_path(), "del_var") < 0) { | ^~~~~~~~~ vars.c: In function 'vars_set_variable': util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ vars.c:553:13: note: in expansion of macro 'asprintfa' 553 | if (asprintfa(&newvar, "%s%s", get_vars_path(), "new_var") < 0) { | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o time.o time.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map \ -T guids.lds \ -o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o guid.o guid-symbols.o lib.o vars.o time.o -ldl ln -vfs libefivar.so libefivar.so.1 'libefivar.so.1' -> 'libefivar.so' abidiff \ --suppr abignore \ --headers-dir2 /builddir/build/BUILD/efivar-38/src/include/efivar/ \ libefivar.abixml \ libefivar.so gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o creator.o creator.c In file included from /usr/include/fcntl.h:342, from creator.c:9: In function 'open', inlined from 'open_disk.isra' at creator.c:139:7: /usr/include/bits/fcntl2.h:57:12: warning: pointer used after 'free' [-Wuse-after-free] 57 | return __open_2 (__path, __oflag); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from creator.c:21: creator.c: In function 'open_disk.isra': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ creator.c:133:14: note: in expansion of macro 'asprintfa' 133 | rc = asprintfa(&diskpath, "/dev/%s", dev->disk_name); | ^~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o disk.o disk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o gpt.o gpt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o loadopt.o loadopt.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o path-helpers.o path-helpers.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux.o linux.c In file included from /usr/include/fcntl.h:342, from linux.c:12: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux.c:30: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/dirent.h:25, from linux.c:10: In function 'readlink', inlined from 'find_parent_devpath' at linux.c:46:8: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'find_parent_devpath': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:46:15: note: in expansion of macro 'sysfs_readlink' 46 | ret = sysfs_readlink(&linkbuf, "class/block/%s", node); | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:414:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:414:14: note: in expansion of macro 'sysfs_readlink' 414 | rc = sysfs_readlink(&linkbuf, "dev/block/%"PRIu64":%"PRIu32, | ^~~~~~~~~~~~~~ In function 'readlink', inlined from 'device_get' at linux.c:448:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'device_get': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:448:14: note: in expansion of macro 'sysfs_readlink' 448 | rc = sysfs_readlink(&tmpbuf, "block/%s/device", dev->disk_name); | ^~~~~~~~~~~~~~ In file included from efivar.h:28: linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux.c:483:14: note: in expansion of macro 'find_device_file' 483 | rc = find_device_file(&filepath, "driver", "block/%s", dev->disk_name); | ^~~~~~~~~~~~~~~~ In function 'readlink', inlined from 'make_mac_path' at linux.c:652:7: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux.c: In function 'make_mac_path': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.c:652:14: note: in expansion of macro 'sysfs_readlink' 652 | rc = sysfs_readlink(&dev.link, "class/net/%s", ifname); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi-root.o linux-acpi-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-acpi.o linux-acpi.c In file included from /usr/include/fcntl.h:342, from linux-acpi.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-acpi.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ linux-acpi.c: In function 'parse_acpi_hid_uid': util.h:364:34: warning: pointer used after 'free' [-Wuse-after-free] 364 | #define log(level, fmt, args...) log_(__FILE__, __LINE__, __func__, level, fmt, ## args) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util.h:365:29: note: in expansion of macro 'log' 365 | #define debug(fmt, args...) log(DEBUG_LEVEL, fmt, ## args) | ^~~ linux-acpi.c:33:9: note: in expansion of macro 'debug' 33 | debug("path:%s rc:%d", path, rc); | ^~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ linux-acpi.c:31:14: note: in expansion of macro 'vasprintfa' 31 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-ata.o linux-ata.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-emmc.o linux-emmc.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-i2o.o linux-i2o.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-md.o linux-md.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-nvme.o linux-nvme.c In file included from /usr/include/fcntl.h:342, from linux-nvme.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-nvme.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-nvme.c: In function 'parse_nvme': linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:291:31: note: in expansion of macro 'sysfs_access' 291 | rc_ = sysfs_access(F_OK, fmt "/%s", ## args, slashdev_);\ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ linux.h:223:31: warning: pointer used after 'free' [-Wuse-after-free] 223 | rc_ = access(pn_, mode); \ | ^~~~~~~~~~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:221:23: note: in expansion of macro 'asprintfa' 221 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux.h:302:31: note: in expansion of macro 'sysfs_access' 302 | rc_ = sysfs_access(F_OK, fmt "/%s/%s", \ | ^~~~~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:314:31: note: in expansion of macro 'asprintfa' 314 | rc_ = asprintfa(result, fmt "/%s/%s", \ | ^~~~~~~~~ linux-nvme.c:129:22: note: in expansion of macro 'find_device_file' 129 | rc = find_device_file(&euipath, "eui", "class/block/nvme%dn%d", ctrl_id, ns_id); | ^~~~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci-root.o linux-pci-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pci.o linux-pci.c In file included from efivar.h:28, from efiboot.h:10, from linux-pci.c:15: linux-pci.c: In function 'parse_pci': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from efivar.h:19: util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:82:22: note: in expansion of macro 'sysfs_stat' 82 | rc = sysfs_stat(&statbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~ In file included from /usr/include/features.h:490, from /usr/include/errno.h:25, from linux-pci.c:9: In function 'readlink', inlined from 'parse_pci' at linux-pci.c:88:23: /usr/include/bits/unistd.h:119:10: warning: pointer used after 'free' [-Wuse-after-free] 119 | return __glibc_fortify (readlink, __len, sizeof (char), | ^~~~~~~~~~~~~~~ linux-pci.c: In function 'parse_pci': util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:201:23: note: in expansion of macro 'asprintfa' 201 | _rc = asprintfa(&_pn, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-pci.c:88:30: note: in expansion of macro 'sysfs_readlink' 88 | rc = sysfs_readlink(&linkbuf, "class/block/%s/driver", tmp); | ^~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-pmem.o linux-pmem.c In file included from /usr/include/fcntl.h:342, from linux-pmem.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-pmem.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sas.o linux-sas.c In file included from /usr/include/fcntl.h:342, from linux-sas.c:10: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sas.c:15: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sas.c: In function 'parse_sas': linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:169:14: note: in expansion of macro 'sysfs_stat' 169 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ linux.h:239:31: warning: pointer used after 'free' [-Wuse-after-free] 239 | rc_ = stat(pn_, statbuf); \ | ^~~~~~~~~~~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:237:23: note: in expansion of macro 'asprintfa' 237 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sas.c:187:22: note: in expansion of macro 'sysfs_stat' 187 | rc = sysfs_stat(&statbuf, | ^~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-sata.o linux-sata.c In file included from /usr/include/fcntl.h:342, from linux-sata.c:11: In function 'open', inlined from 'get_file.constprop' at util.h:231:7: /usr/include/bits/fcntl2.h:53:14: warning: pointer used after 'free' [-Wuse-after-free] 53 | return __open_alias (__path, __oflag, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from efivar.h:19, from efiboot.h:10, from linux-sata.c:16: util.h: In function 'get_file.constprop': util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:197:40: warning: pointer used after 'free' [-Wuse-after-free] 197 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ util.h:196:33: note: call to 'free' here 196 | free(*(str)); \ | ^~~~~~~~~~~~ util.h:224:14: note: in expansion of macro 'vasprintfa' 224 | rc = vasprintfa(&path, fmt, ap); | ^~~~~~~~~~ In file included from efivar.h:28: linux-sata.c: In function 'sysfs_sata_get_port_info': linux.h:256:32: warning: pointer used after 'free' [-Wuse-after-free] 256 | dir_ = opendir(pn_); \ | ^~~~~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:177:40: warning: pointer used after 'free' [-Wuse-after-free] 177 | *(str) = _tmp; \ | ~~~~~~~^~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ util.h:176:33: note: call to 'free' here 176 | free(*(str)); \ | ^~~~~~~~~~~~ linux.h:254:23: note: in expansion of macro 'asprintfa' 254 | rc_ = asprintfa(&pn_, "/sys/" fmt, ## args); \ | ^~~~~~~~~ linux-sata.c:59:13: note: in expansion of macro 'sysfs_opendir' 59 | d = sysfs_opendir("class/ata_device/"); | ^~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-scsi.o linux-scsi.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-soc-root.o linux-soc-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtblk.o linux-virtblk.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -c -o linux-virtual-root.o linux-virtual-root.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -shared -Wl,-soname,libefiboot.so.1 -Wl,--version-script=libefiboot.map \ \ -o libefiboot.so crc32.o creator.o disk.o gpt.o loadopt.o path-helpers.o linux.o linux-acpi-root.o linux-acpi.o linux-ata.o linux-emmc.o linux-i2o.o linux-md.o linux-nvme.o linux-pci-root.o linux-pci.o linux-pmem.o linux-sas.o linux-sata.o linux-scsi.o linux-soc-root.o linux-virtblk.o linux-virtual-root.o -lefivar ln -vfs libefiboot.so libefiboot.so.1 'libefiboot.so.1' -> 'libefiboot.so' abidiff \ --suppr abignore \ --headers-dir2 /builddir/build/BUILD/efivar-38/src/include/efivar/ \ libefiboot.abixml \ libefiboot.so abidiff \ --suppr abignore \ --headers-dir2 /builddir/build/BUILD/efivar-38/src/include/efivar/ \ libefisec.abixml \ libefisec.so make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src' + RPM_EC=0 ++ jobs -p + exit 0 Processing files: efivar-38-1.an23.x86_64 warning: File not found: /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/bin/efivar-static Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.looh6r + umask 022 + cd /builddir/build/BUILD + cd efivar-38 + DOCDIR=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/doc/efivar + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/doc/efivar + cp -pr README.md /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/doc/efivar + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.35nsf0 + umask 022 + cd /builddir/build/BUILD + cd efivar-38 + LICENSEDIR=/builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/licenses/efivar + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/licenses/efivar + cp -pr COPYING /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64/usr/share/licenses/efivar + RPM_EC=0 ++ jobs -p + exit 0 Provides: efivar = 38-1.an23 efivar(x86-64) = 38-1.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libefisec.so.1()(64bit) libefisec.so.1(LIBEFISEC_1.38)(64bit) libefivar.so.1()(64bit) libefivar.so.1(LIBEFIVAR_0.24)(64bit) libefivar.so.1(LIBEFIVAR_1.30)(64bit) libefivar.so.1(LIBEFIVAR_1.36)(64bit) libefivar.so.1(LIBEFIVAR_1.38)(64bit) libefivar.so.1(libefivar.so.0)(64bit) rtld(GNU_HASH) Processing files: efivar-libs-38-1.an23.x86_64 Provides: efivar-libs = 38-1.an23 efivar-libs(x86-64) = 38-1.an23 libefiboot.so.1()(64bit) libefiboot.so.1(LIBEFIBOOT_0.0)(64bit) libefiboot.so.1(LIBEFIBOOT_0.24)(64bit) libefiboot.so.1(LIBEFIBOOT_1.28)(64bit) libefiboot.so.1(LIBEFIBOOT_1.29)(64bit) libefiboot.so.1(LIBEFIBOOT_1.30)(64bit) libefiboot.so.1(LIBEFIBOOT_1.31)(64bit) libefiboot.so.1(libefiboot.so.0)(64bit) libefisec.so.1()(64bit) libefisec.so.1(LIBEFISEC_1.38)(64bit) libefisec.so.1(libefisec.so.0)(64bit) libefivar.so.1()(64bit) libefivar.so.1(LIBEFIVAR_0.0)(64bit) libefivar.so.1(LIBEFIVAR_0.24)(64bit) libefivar.so.1(LIBEFIVAR_1.28)(64bit) libefivar.so.1(LIBEFIVAR_1.29)(64bit) libefivar.so.1(LIBEFIVAR_1.30)(64bit) libefivar.so.1(LIBEFIVAR_1.33)(64bit) libefivar.so.1(LIBEFIVAR_1.35)(64bit) libefivar.so.1(LIBEFIVAR_1.36)(64bit) libefivar.so.1(LIBEFIVAR_1.37)(64bit) libefivar.so.1(LIBEFIVAR_1.38)(64bit) libefivar.so.1(libefivar.so.0)(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.25)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libefivar.so.1()(64bit) libefivar.so.1(LIBEFIVAR_1.30)(64bit) libefivar.so.1(LIBEFIVAR_1.33)(64bit) libefivar.so.1(LIBEFIVAR_1.36)(64bit) libefivar.so.1(LIBEFIVAR_1.38)(64bit) libefivar.so.1(libefivar.so.0)(64bit) rtld(GNU_HASH) Processing files: efivar-devel-38-1.an23.x86_64 Provides: efivar-devel = 38-1.an23 efivar-devel(x86-64) = 38-1.an23 pkgconfig(efiboot) = 38 pkgconfig(efisec) = 38 pkgconfig(efivar) = 38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/pkg-config libefiboot.so.1()(64bit) libefisec.so.1()(64bit) libefivar.so.1()(64bit) pkgconfig(efivar) Processing files: efivar-debugsource-38-1.an23.x86_64 Provides: efivar-debugsource = 38-1.an23 efivar-debugsource(x86-64) = 38-1.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: efivar-debuginfo-38-1.an23.x86_64 Provides: debuginfo(build-id) = 208a7980297e1ced41723df8c032e5dc7e1abfda debuginfo(build-id) = f1af338c19f1019bca97170832e3845662b5a5bf efivar-debuginfo = 38-1.an23 efivar-debuginfo(x86-64) = 38-1.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: efivar-debugsource(x86-64) = 38-1.an23 Processing files: efivar-libs-debuginfo-38-1.an23.x86_64 Provides: debuginfo(build-id) = 13a617555f4bd7258d27050513d544a7adb46564 debuginfo(build-id) = 72f118061cc8f8b88f1fcb8f14075cefdde01ab0 debuginfo(build-id) = 7f933d8d20e2779fc6128eda4ee1820e7812019e efivar-libs-debuginfo = 38-1.an23 efivar-libs-debuginfo(x86-64) = 38-1.an23 libefiboot.so.1.38-38-1.an23.x86_64.debug()(64bit) libefisec.so.1.38-38-1.an23.x86_64.debug()(64bit) libefivar.so.1.38-38-1.an23.x86_64.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: efivar-debugsource(x86-64) = 38-1.an23 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64 Wrote: /builddir/build/RPMS/efivar-devel-38-1.an23.x86_64.rpm Wrote: /builddir/build/RPMS/efivar-38-1.an23.x86_64.rpm Wrote: /builddir/build/RPMS/efivar-debuginfo-38-1.an23.x86_64.rpm Wrote: /builddir/build/RPMS/efivar-libs-38-1.an23.x86_64.rpm Wrote: /builddir/build/RPMS/efivar-debugsource-38-1.an23.x86_64.rpm Wrote: /builddir/build/RPMS/efivar-libs-debuginfo-38-1.an23.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.UULKzD + umask 022 + cd /builddir/build/BUILD + cd efivar-38 + /usr/bin/rm -rf /builddir/build/BUILDROOT/efivar-38-1.an23.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0