Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.20.0: build fails #1948

Closed
kloczek opened this issue Feb 16, 2020 · 0 comments
Closed

0.20.0: build fails #1948

kloczek opened this issue Feb 16, 2020 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Feb 16, 2020

gcc 10.0..1

Making all in p11test
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/opensc-0.20.0/src/tests/p11test'
/bin/sh ../../../libtool  --tag=CC   --mode=link gcc -DNDEBUG  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wextra -Wno-unused-parameter -Werror  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o p11test p11test-p11test.o p11test-p11test_loader.o p11test-p11test_case_common.o p11test-p11test_case_readonly.o p11test-p11test_case_multipart.o p11test-p11test_case_mechs.o p11test-p11test_case_ec_sign.o p11test-p11test_case_ec_derive.o p11test-p11test_case_usage.o p11test-p11test_case_wait.o p11test-p11test_case_pss_oaep.o p11test-p11test_helpers.o  -lcrypto  -lcmocka  -ldl
libtool: link: gcc -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wextra -Wno-unused-parameter -Werror -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o p11test p11test-p11test.o p11test-p11test_loader.o p11test-p11test_case_common.o p11test-p11test_case_readonly.o p11test-p11test_case_multipart.o p11test-p11test_case_mechs.o p11test-p11test_case_ec_sign.o p11test-p11test_case_ec_derive.o p11test-p11test_case_usage.o p11test-p11test_case_wait.o p11test-p11test_case_pss_oaep.o p11test-p11test_helpers.o  -lcrypto -lcmocka -ldl
p11test_case_pss_oaep.c: In function 'pss_oaep_test':
p11test_case_pss_oaep.c:424:2: error: 'enc_message' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  424 |  free(enc_message);
      |  ^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:503: p11test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant