Open rmarable opened 1 year ago
Hey @rmarable
First time I've seen a bug report from an ARM build of Perl. Also, that error message is new to me.
When the Perl binary is built it remembers the gcc settings used so that it can reuse them when building a module, like DB_File
, that is partially written in C. Below is the gcc
command line used when you built DB_File
gcc -c -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -O2 -ftree-vectorize -mcpu=native -fno-math-errno -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"1.858\" -DXS_VERSION=\"1.858\" -fPIC "-I/build/rocky8_arm64/software/Perl/5.36.0-GCCcore-12.2.0/lib/perl5/5.36.0/aarch64-linux-thread-multi/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c
The option that jumps out is -mcpu=native
.
You could try removing that option to see if it helps. To do that download the DB_File tar bundle
wget https://cpan.metacpan.org/authors/id/P/PM/PMQS/DB_File-1.858.tar.gz
tar xvf DB_File-1.858.tar.gz
cd DB_File-1.858
perl Makefile.PL
Now edit the generated Makefile
and delete -mcpu=native
. Then run make test
.
Does that make any difference?
@rmarable any updates on this issue?
DB_File-1.858 does not build on Rocky Linux 8.8 due to an error caused by an unknown architectural extension called
ssbs
when compiled with GCC-12.2.0 on an AWS c6g-class instance.This doesn't seem to be an issue for x86_64.
Any insights you could offer would be appreciated.
Here the logs.