pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: openssl: "architecture lacks an FPU" on Debian 12/armv7



Hi,

Am Samstag, 13. Juli 2024, 16:08:10 CEST schrieb Greg Troxel:
> Could you file a bug with openssl, that it is overriding the configured
> target of the build environment?

I've commented on the existing issue suggesting that it should be
treated like a bug and attached a patch (attached below):

https://github.com/openssl/openssl/issues/21630#issuecomment-2227314412

> For pkgsrc, I would lean to patching so that no -m flag is passed at all
> to the compiler.  Unless of course someone can explain why that's wrong,
> or causes trouble (such as by uncovering other latent issues).

Do you mean stripping -march with BUILDLINK_TRANSFORM or by patching
Configure like below?

(Btw re. Pi 2B progress, the CMake build keep getting killed, I think
OOM. I'll try with fewer jobs and more swap.)

Sijmen


diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm
index 04aef069f9..735d1bf632 100755
--- a/util/perl/OpenSSL/config.pm
+++ b/util/perl/OpenSSL/config.pm
@@ -675,9 +675,6 @@ EOF
         }
       ],
       [ 'armv[1-3].*-.*-linux2',  { target => "linux-generic32" } ],
-      [ 'armv[7-9].*-.*-linux2',  { target => "linux-armv4",
-                                    cflags => [ '-march=armv7-a' ],
-                                    cxxflags => [ '-march=armv7-a' ] } ],
       [ 'arm.*-.*-linux2',        { target => "linux-armv4" } ],
       [ 'aarch64-.*-linux2',      { target => "linux-aarch64" } ],
       [ 'sh.*b-.*-linux2',        { target => "linux-generic32",
@@ -855,9 +852,6 @@ EOF
       [ '.*-.*-cygwin',
         sub { return { target => "Cygwin-${MACHINE}" } } ],
       [ 'x86-.*-android|i.86-.*-android', { target => "android-x86" } ],
-      [ 'armv[7-9].*-.*-android', { target => "android-armeabi",
-                                    cflags => [ '-march=armv7-a' ],
-                                    cxxflags => [ '-march=armv7-a' ] } ],
       [ 'arm.*-.*-android',       { target => "android-armeabi" } ],
       [ 'riscv64-.*-android',     { target => "android-riscv64" } ],
       [ '.*-hpux1.*',




Home | Main Index | Thread Index | Old Index