Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-tweetnacl.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1634141069.134457/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.wxfdzvq3:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.wxfdzvq3:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '989073d83d584979953042df3d3364f6', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1634141069.134457/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.wxfdzvq3:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rubygem-tweetnacl.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1631750400 Wrote: /builddir/build/SRPMS/rubygem-tweetnacl-1.0.0-1.fc36.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/rubygem-tweetnacl.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1634141069.134457/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.wxfdzvq3:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.wxfdzvq3:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'e55dcca9be694649b8a6f92f9dbba9f9', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1634141069.134457/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.wxfdzvq3:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rubygem-tweetnacl.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1631750400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MQ6ner + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tweetnacl-1.0.0 + /usr/bin/gem unpack /builddir/build/SOURCES/tweetnacl-1.0.0.gem Unpacked gem: '/builddir/build/BUILD/tweetnacl-1.0.0' + /usr/bin/gem spec /builddir/build/SOURCES/tweetnacl-1.0.0.gem --ruby + STATUS=0 + '[' 0 -ne 0 ']' + cd tweetnacl-1.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.azd4HT + umask 022 + cd /builddir/build/BUILD + cd tweetnacl-1.0.0 + gem build ../tweetnacl-1.0.0.gemspec WARNING: license value 'GPLv3' is invalid. Use a license identifier from http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. Did you mean 'GPL-3.0', 'LGPLLR', 'NGPL'? WARNING: open-ended dependency on rake-compiler (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on minitest (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: tweetnacl Version: 1.0.0 File: tweetnacl-1.0.0.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc tweetnacl-1.0.0.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/tweetnacl-1.0.0 Bin dir: /builddir/build/BUILD/tweetnacl-1.0.0/usr/bin Gem home: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems Plugins dir: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/plugins /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/.circleci/config.yml /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/.gitignore /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/CHANGELOG.md /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/Gemfile /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/LICENSE.txt /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/README.md /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/Rakefile /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/certs/franckverrot.pem /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl/extconf.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl/randombytes.c /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl/randombytes.h /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl/rbext.c /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl/tweetnacl.c /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl/tweetnacl.h /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/lib/tweet_na_cl.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/lib/tweetnacl/crypto_box.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/lib/tweetnacl/crypto_sign.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/lib/tweetnacl/key_pair.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/test_helper.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl/crypto_box_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl/crypto_sign_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl/key_pair_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_alias_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_constants_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_box_key_pair_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_box_open_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_box_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_secretbox_open_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_secretbox_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_sign_key_pair_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_sign_open_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/test/tweetnacl_crypto_sign_test.rb /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/tweetnacl.gemspec Building native extensions. This could take a while... current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl ["/usr/bin/ruby", "-I", "/usr/share/rubygems", "-r", "./siteconf20211013-32-jlsed2.rb", "extconf.rb"] creating Makefile current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl ["make", "DESTDIR=", "clean"] rm -f rm -f tweetnacl.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl ["make", "DESTDIR="] gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -m64 -o randombytes.o -c randombytes.c gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -m64 -o rbext.o -c rbext.c rbext.c: In function 'm_crypto_box_keypair': rbext.c:36:24: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 36 | rb_ary_store(ary, 0, rb_str_new(pk, crypto_box_PUBLICKEYBYTES)); | ^~~~~~~~~~ | | | unsigned char * rbext.c:36:24: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c:37:24: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 37 | rb_ary_store(ary, 1, rb_str_new(sk, crypto_box_SECRETKEYBYTES)); | ^~~~~~~~~~ | | | unsigned char * rbext.c:37:24: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c: In function 'm_crypto_box': rbext.c:58:24: warning: pointer targets in passing argument 1 of 'crypto_box_curve25519xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 58 | int res = crypto_box(c, padded_message, len + PADDING_LEN, nonce, pk, sk); | ^ | | | char * In file included from rbext.c:3: tweetnacl.h:42:56: note: expected 'unsigned char *' but argument is of type 'char *' 42 | extern int crypto_box_curve25519xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~ rbext.c:58:27: warning: pointer targets in passing argument 2 of 'crypto_box_curve25519xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 58 | int res = crypto_box(c, padded_message, len + PADDING_LEN, nonce, pk, sk); | ^~~~~~~~~~~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:42:72: note: expected 'const unsigned char *' but argument is of type 'char *' 42 | extern int crypto_box_curve25519xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:58:62: warning: pointer targets in passing argument 4 of 'crypto_box_curve25519xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 58 | int res = crypto_box(c, padded_message, len + PADDING_LEN, nonce, pk, sk); | ^~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:42:113: note: expected 'const unsigned char *' but argument is of type 'char *' 42 | extern int crypto_box_curve25519xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:58:69: warning: pointer targets in passing argument 5 of 'crypto_box_curve25519xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 58 | int res = crypto_box(c, padded_message, len + PADDING_LEN, nonce, pk, sk); | ^~ | | | char * In file included from rbext.c:3: tweetnacl.h:42:135: note: expected 'const unsigned char *' but argument is of type 'char *' 42 | extern int crypto_box_curve25519xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:58:73: warning: pointer targets in passing argument 6 of 'crypto_box_curve25519xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 58 | int res = crypto_box(c, padded_message, len + PADDING_LEN, nonce, pk, sk); | ^~ | | | char * In file included from rbext.c:3: tweetnacl.h:42:157: note: expected 'const unsigned char *' but argument is of type 'char *' 42 | extern int crypto_box_curve25519xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c: In function 'm_crypto_box_open': rbext.c:74:23: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 74 | unsigned char * c = RSTRING_PTR(_c); | ^~~~~~~~~~~ rbext.c:84:60: warning: pointer targets in passing argument 4 of 'crypto_box_curve25519xsalsa20poly1305_tweet_open' differ in signedness [-Wpointer-sign] 84 | int res = crypto_box_open(message, ciphertext, len + 16, nonce, pk, sk); | ^~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:43:118: note: expected 'const unsigned char *' but argument is of type 'char *' 43 | extern int crypto_box_curve25519xsalsa20poly1305_tweet_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:84:67: warning: pointer targets in passing argument 5 of 'crypto_box_curve25519xsalsa20poly1305_tweet_open' differ in signedness [-Wpointer-sign] 84 | int res = crypto_box_open(message, ciphertext, len + 16, nonce, pk, sk); | ^~ | | | char * In file included from rbext.c:3: tweetnacl.h:43:140: note: expected 'const unsigned char *' but argument is of type 'char *' 43 | extern int crypto_box_curve25519xsalsa20poly1305_tweet_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:84:71: warning: pointer targets in passing argument 6 of 'crypto_box_curve25519xsalsa20poly1305_tweet_open' differ in signedness [-Wpointer-sign] 84 | int res = crypto_box_open(message, ciphertext, len + 16, nonce, pk, sk); | ^~ | | | char * In file included from rbext.c:3: tweetnacl.h:43:162: note: expected 'const unsigned char *' but argument is of type 'char *' 43 | extern int crypto_box_curve25519xsalsa20poly1305_tweet_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/ruby/intern.h:57, from /usr/include/ruby/ruby.h:101, from rbext.c:1: rbext.c:87:34: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 87 | VALUE ret = rb_str_new(message + PADDING_LEN, len - 16); | ^ | | | unsigned char * rbext.c:87:34: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c: In function 'm_crypto_secretbox': rbext.c:104:30: warning: pointer targets in passing argument 1 of 'crypto_secretbox_xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 104 | int res = crypto_secretbox(c, padded_message, len + PADDING_LEN, nonce, k); | ^ | | | char * In file included from rbext.c:3: tweetnacl.h:189:52: note: expected 'unsigned char *' but argument is of type 'char *' 189 | extern int crypto_secretbox_xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~ rbext.c:104:33: warning: pointer targets in passing argument 2 of 'crypto_secretbox_xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 104 | int res = crypto_secretbox(c, padded_message, len + PADDING_LEN, nonce, k); | ^~~~~~~~~~~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:189:68: note: expected 'const unsigned char *' but argument is of type 'char *' 189 | extern int crypto_secretbox_xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:104:68: warning: pointer targets in passing argument 4 of 'crypto_secretbox_xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 104 | int res = crypto_secretbox(c, padded_message, len + PADDING_LEN, nonce, k); | ^~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:189:109: note: expected 'const unsigned char *' but argument is of type 'char *' 189 | extern int crypto_secretbox_xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:104:75: warning: pointer targets in passing argument 5 of 'crypto_secretbox_xsalsa20poly1305_tweet' differ in signedness [-Wpointer-sign] 104 | int res = crypto_secretbox(c, padded_message, len + PADDING_LEN, nonce, k); | ^ | | | char * In file included from rbext.c:3: tweetnacl.h:189:131: note: expected 'const unsigned char *' but argument is of type 'char *' 189 | extern int crypto_secretbox_xsalsa20poly1305_tweet(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c: In function 'm_crypto_secretbox_open': rbext.c:117:23: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 117 | unsigned char * c = RSTRING_PTR(_c); | ^~~~~~~~~~~ rbext.c:127:35: warning: pointer targets in passing argument 1 of 'crypto_secretbox_xsalsa20poly1305_tweet_open' differ in signedness [-Wpointer-sign] 127 | int res = crypto_secretbox_open(message, ciphertext, len + 16, nonce, k); | ^~~~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:190:57: note: expected 'unsigned char *' but argument is of type 'char *' 190 | extern int crypto_secretbox_xsalsa20poly1305_tweet_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~ rbext.c:127:66: warning: pointer targets in passing argument 4 of 'crypto_secretbox_xsalsa20poly1305_tweet_open' differ in signedness [-Wpointer-sign] 127 | int res = crypto_secretbox_open(message, ciphertext, len + 16, nonce, k); | ^~~~~ | | | char * In file included from rbext.c:3: tweetnacl.h:190:114: note: expected 'const unsigned char *' but argument is of type 'char *' 190 | extern int crypto_secretbox_xsalsa20poly1305_tweet_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:127:73: warning: pointer targets in passing argument 5 of 'crypto_secretbox_xsalsa20poly1305_tweet_open' differ in signedness [-Wpointer-sign] 127 | int res = crypto_secretbox_open(message, ciphertext, len + 16, nonce, k); | ^ | | | char * In file included from rbext.c:3: tweetnacl.h:190:136: note: expected 'const unsigned char *' but argument is of type 'char *' 190 | extern int crypto_secretbox_xsalsa20poly1305_tweet_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c: In function 'm_crypto_sign_keypair': rbext.c:140:24: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 140 | rb_ary_store(ary, 0, rb_str_new(pk, crypto_sign_PUBLICKEYBYTES)); | ^~~~~~~~~~ | | | unsigned char * rbext.c:140:24: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c:141:24: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 141 | rb_ary_store(ary, 1, rb_str_new(sk, crypto_sign_SECRETKEYBYTES)); | ^~~~~~~~~~ | | | unsigned char * rbext.c:141:24: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c:137:7: warning: unused variable 'res' [-Wunused-variable] 137 | int res = crypto_sign_keypair(pk, sk); | ^~~ rbext.c: In function 'm_crypto_sign': rbext.c:150:29: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 150 | unsigned char * message = RSTRING_PTR(_m); | ^~~~~~~~~~~ rbext.c:156:50: warning: pointer targets in passing argument 5 of 'crypto_sign_ed25519_tweet' differ in signedness [-Wpointer-sign] 156 | int res = crypto_sign(c, &smlen, message, len, k); | ^ | | | char * In file included from rbext.c:3: tweetnacl.h:212:116: note: expected 'const unsigned char *' but argument is of type 'char *' 212 | extern int crypto_sign_ed25519_tweet(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:159:15: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 159 | VALUE ret = rb_str_new(c, smlen); | ^~~~~~~~~~ | | | unsigned char * rbext.c:159:15: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c: In function 'm_crypto_sign_open': rbext.c:168:28: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 168 | unsigned char * cipher = RSTRING_PTR(_c); | ^~~~~~~~~~~ rbext.c:174:59: warning: pointer targets in passing argument 5 of 'crypto_sign_ed25519_tweet_open' differ in signedness [-Wpointer-sign] 174 | int res = crypto_sign_open(message, &mlen, cipher, len, k); | ^ | | | char * In file included from rbext.c:3: tweetnacl.h:213:121: note: expected 'const unsigned char *' but argument is of type 'char *' 213 | extern int crypto_sign_ed25519_tweet_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *); | ^~~~~~~~~~~~~~~~~~~~~ rbext.c:177:15: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness [-Wpointer-sign] 177 | VALUE ret = rb_str_new(message, mlen); | ^~~~~~~~~~ | | | unsigned char * rbext.c:177:15: note: expected 'const char *' but argument is of type 'unsigned char *' rbext.c: In function 'm_crypto_sign_keypair': rbext.c:138:5: warning: array subscript 32 is outside array bounds of 'unsigned char[32]' [-Warray-bounds] 138 | pk[crypto_sign_PUBLICKEYBYTES] = 0; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rbext.c:135:39: note: referencing an object of size 32 allocated by 'calloc' 135 | unsigned char *pk = (unsigned char*)calloc(crypto_sign_PUBLICKEYBYTES, sizeof(unsigned char)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rbext.c:139:5: warning: array subscript 64 is outside array bounds of 'unsigned char[64]' [-Warray-bounds] 139 | sk[crypto_sign_SECRETKEYBYTES] = 0; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rbext.c:136:39: note: referencing an object of size 64 allocated by 'calloc' 136 | unsigned char *sk = (unsigned char*)calloc(crypto_sign_SECRETKEYBYTES, sizeof(unsigned char)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -m64 -o tweetnacl.o -c tweetnacl.c rm -f tweetnacl.so gcc -shared -o tweetnacl.so randombytes.o rbext.o tweetnacl.o -L. -L/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -lruby -lm -lc tweetnacl.c:10:13: warning: type of 'randombytes' does not match original declaration [-Wlto-type-mismatch] 10 | extern void randombytes(u8 *,u64); | ^ randombytes.c:3:6: note: type mismatch in parameter 2 3 | void randombytes(unsigned char * ptr,unsigned int length) | ^ randombytes.c:3:6: note: type 'unsigned int' should match type 'u64' randombytes.c:3:6: note: 'randombytes' was previously declared here randombytes.c:3:6: note: code may be misoptimized unless '-fno-strict-aliasing' is used rbext.c: In function 'm_crypto_sign_keypair': rbext.c:138:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 138 | pk[crypto_sign_PUBLICKEYBYTES] = 0; | ^ rbext.c:135:39: note: at offset 32 into destination object of size 32 allocated by 'calloc' 135 | unsigned char *pk = (unsigned char*)calloc(crypto_sign_PUBLICKEYBYTES, sizeof(unsigned char)); | ^ rbext.c:139:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 139 | sk[crypto_sign_SECRETKEYBYTES] = 0; | ^ rbext.c:136:39: note: at offset 64 into destination object of size 64 allocated by 'calloc' 136 | unsigned char *sk = (unsigned char*)calloc(crypto_sign_SECRETKEYBYTES, sizeof(unsigned char)); | ^ current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl ["make", "DESTDIR=", "install"] /usr/bin/mkdir -p . ./.gem.20211013-32-tn6zg4 exit > .sitearchdir.time /usr/bin/install -c -m 0755 tweetnacl.so ./.gem.20211013-32-tn6zg4 current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20211013-32-jlsed2.rb extconf.rb current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl make DESTDIR\= clean current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl make DESTDIR\= current directory: /builddir/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0/ext/tweetnacl make DESTDIR\= install [TweetNaCl] Breaking change in v1.0.0! A breaking change has been introduced to `crypto_box` and `crypto_secretbox` that makes ciphers differ. The first 64 bits are always empty and have been dropped from the cipher output. This causes differences like: - expected_cipher = "0000000000000000FBC937C3F136E09FA8A45C58C15E801394F5BB74CE8D538FE3D726" + expected_cipher = "FBC937C3F136E09FA8A45C58C15E801394F5BB74CE8D538FE3D726" You might need to go through all persisted ciphers and change these values. If you have more questions, please file a ticket! Thanks! Successfully installed tweetnacl-1.0.0 Parsing documentation for tweetnacl-1.0.0 Parsing sources... 6% [ 1/15] ext/tweetnacl/Makefile 13% [ 2/15] ext/tweetnacl/extconf.rb 20% [ 3/15] ext/tweetnacl/randombytes.c 26% [ 4/15] ext/tweetnacl/randombytes.h 33% [ 5/15] ext/tweetnacl/randombytes.o 40% [ 6/15] ext/tweetnacl/rbext.c 46% [ 7/15] ext/tweetnacl/rbext.o 53% [ 8/15] ext/tweetnacl/tweetnacl.c 60% [ 9/15] ext/tweetnacl/tweetnacl.h 66% [10/15] ext/tweetnacl/tweetnacl.o 73% [11/15] ext/tweetnacl/tweetnacl.so 80% [12/15] lib/tweet_na_cl.rb 86% [13/15] lib/tweetnacl/crypto_box.rb 93% [14/15] lib/tweetnacl/crypto_sign.rb 100% [15/15] lib/tweetnacl/key_pair.rb Installing ri documentation for tweetnacl-1.0.0 Installing darkfish documentation for tweetnacl-1.0.0 Done installing documentation for tweetnacl after 0 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.uupxX0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64 ++ dirname /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64 + cd tweetnacl-1.0.0 + mkdir -p /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64/usr/lib64/gems/ruby/tweetnacl-1.0.0 + cp -a ./usr/lib64/gems/ruby/tweetnacl-1.0.0/gem.build_complete ./usr/lib64/gems/ruby/tweetnacl-1.0.0/tweetnacl.so /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64/usr/lib64/gems/ruby/tweetnacl-1.0.0/ + rm -rf /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64/usr/share/gems/gems/tweetnacl-1.0.0/ext/ + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 1.0.0-1.fc36 --unique-debug-suffix -1.0.0-1.fc36.x86_64 --unique-debug-src-base rubygem-tweetnacl-1.0.0-1.fc36.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/tweetnacl-1.0.0 extracting debug info from /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64/usr/lib64/gems/ruby/tweetnacl-1.0.0/tweetnacl.so original debug info size: 140kB, size after compression: 136kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 132 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.IVo1ls + umask 022 + cd /builddir/build/BUILD + cd tweetnacl-1.0.0 + pushd ./usr/share/gems/gems/tweetnacl-1.0.0 ~/build/BUILD/tweetnacl-1.0.0/usr/share/gems/gems/tweetnacl-1.0.0 ~/build/BUILD/tweetnacl-1.0.0 ~/build/BUILD/tweetnacl-1.0.0 + popd + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rubygem-tweetnacl-1.0.0-1.fc36.x86_64 Provides: rubygem(tweetnacl) = 1.0.0 rubygem-tweetnacl = 1.0.0-1.fc36 rubygem-tweetnacl(x86-64) = 1.0.0-1.fc36 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.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libruby.so.3.0()(64bit) rtld(GNU_HASH) ruby(rubygems) Processing files: rubygem-tweetnacl-doc-1.0.0-1.fc36.noarch Provides: rubygem-tweetnacl-doc = 1.0.0-1.fc36 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-tweetnacl-debugsource-1.0.0-1.fc36.x86_64 Provides: rubygem-tweetnacl-debugsource = 1.0.0-1.fc36 rubygem-tweetnacl-debugsource(x86-64) = 1.0.0-1.fc36 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rubygem-tweetnacl-debuginfo-1.0.0-1.fc36.x86_64 Provides: debuginfo(build-id) = 90b0669949715975ecf952f23476b8f9ec51e79a rubygem-tweetnacl-debuginfo = 1.0.0-1.fc36 rubygem-tweetnacl-debuginfo(x86-64) = 1.0.0-1.fc36 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rubygem-tweetnacl-debugsource(x86-64) = 1.0.0-1.fc36 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64 Wrote: /builddir/build/RPMS/rubygem-tweetnacl-debuginfo-1.0.0-1.fc36.x86_64.rpm Wrote: /builddir/build/RPMS/rubygem-tweetnacl-1.0.0-1.fc36.x86_64.rpm Wrote: /builddir/build/RPMS/rubygem-tweetnacl-doc-1.0.0-1.fc36.noarch.rpm Wrote: /builddir/build/RPMS/rubygem-tweetnacl-debugsource-1.0.0-1.fc36.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.0fpkeP + umask 022 + cd /builddir/build/BUILD + cd tweetnacl-1.0.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rubygem-tweetnacl-1.0.0-1.fc36.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0