""" * Running compile phase for ruby25 ... make -j13 -l12 V=1 -Cext/x25519_precomputed make: Entering directory '/dev/shm/portage/dev-ruby/x25519-1.0.8/work/ruby25/x25519-1.0.8/ext/x25519_precomputed' powerpc64-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.5.0/powerpc64-linux -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -fPIC -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fno-strict-aliasing -fPIC -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=native -mtune=native -o cputest.o -c cputest.c powerpc64-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.5.0/powerpc64-linux -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -fPIC -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fno-strict-aliasing -fPIC -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=native -mtune=native -o fp25519_x64.o -c fp25519_x64.c powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi2’ powerpc64-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.5.0/powerpc64-linux -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -fPIC -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fno-strict-aliasing -fPIC -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=native -mtune=native -o x25519_precomputed.o -c x25519_precomputed.c powerpc64-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.5.0/powerpc64-linux -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -fPIC -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fno-strict-aliasing -fPIC -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=native -mtune=native -o x25519_x64.o -c x25519_x64.c powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-march=native’; did you mean ‘-mcpu=native’? make: *** [Makefile:243: cputest.o] Error 1 make: *** Waiting for unfinished jobs.... powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi2’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi2’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mbmi2’ powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-march=native’; did you mean ‘-mcpu=native’? powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-march=native’; did you mean ‘-mcpu=native’? make: *** [Makefile:243: fp25519_x64.o] Error 1 powerpc64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-march=native’; did you mean ‘-mcpu=native’? """
Seems to come from: all/x25519-1.0.8/ext/x25519_precomputed/extconf.rb: $CFLAGS << " -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=native -mtune=native" ruby25/x25519-1.0.8/ext/x25519_precomputed/extconf.rb: $CFLAGS << " -Wall -O3 -pedantic -std=c99 -mbmi -mbmi2 -march=native -mtune=native"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eea031d253fac214034a2b18e2ee16d4c3295a14 commit eea031d253fac214034a2b18e2ee16d4c3295a14 Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2020-06-21 07:47:55 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2020-06-21 07:48:06 +0000 dev-ruby/x25519: precomputed impl only works on amd64 The precomputed implementation only works on amd64, so avoid it on other arches and let them fall back to the unoptimized reference implementation. Closes: https://bugs.gentoo.org/728420 Closes: https://bugs.gentoo.org/728888 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Hans de Graaff <graaff@gentoo.org> dev-ruby/x25519/x25519-1.0.8.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)