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

[2.1.3] no "target_cpu" during configure on Arch Linux / Raspberry Pi 4 #13193

Closed
UweSauter opened this issue Mar 11, 2022 · 3 comments
Closed
Labels
Type: Architecture Indicates an issue is specific to a single processor architecture Type: Building Indicates an issue related to building binaries

Comments

@UweSauter
Copy link

UweSauter commented Mar 11, 2022

System information

Type Version/Name
Distribution Name Arch Linux (ARM)
Distribution Version Rolling Update
Kernel Version 5.15.27-1-rpi-ARCH
Architecture armv7l (Raspberry Pi 4)
OpenZFS Version 2.1.3

Describe the problem you're observing

During ./configure I see

[…]
checking whether gcc supports -fno-omit-frame-pointer... yes
checking whether gcc supports -fno-ipa-sra... yes
checking whether to build with -fsanitize=address support... no
checking for system type (linux-gnueabihf)... Linux
./configure: line 16696: test: =: unary operator expected
./configure: line 16704: test: =: unary operator expected
./configure: line 16712: test: =: unary operator expected
./configure: line 16720: test: =: unary operator expected
./configure: line 16728: test: =: unary operator expected
checking for python version... 
checking for python platform... 
checking for python script directory... 
[…]

which relates to

        case $target_cpu in
        i?86)
                TARGET_CPU=i386
                ;;
        amd64|x86_64)
                TARGET_CPU=x86_64
                ;;
        powerpc*)
                TARGET_CPU=powerpc
                ;;
        aarch64*)
                TARGET_CPU=aarch64
                ;;
        sparc64)
                TARGET_CPU=sparc64
                ;;
        esac
        
         if test $TARGET_CPU = i386; then
  TARGET_CPU_I386_TRUE=
  TARGET_CPU_I386_FALSE='#'
else
  TARGET_CPU_I386_TRUE='#'
  TARGET_CPU_I386_FALSE=
fi

         if test $TARGET_CPU = x86_64; then
  TARGET_CPU_X86_64_TRUE=
  TARGET_CPU_X86_64_FALSE='#'
else
  TARGET_CPU_X86_64_TRUE='#'
  TARGET_CPU_X86_64_FALSE=
fi

         if test $TARGET_CPU = powerpc; then
  TARGET_CPU_POWERPC_TRUE=
  TARGET_CPU_POWERPC_FALSE='#'
else
  TARGET_CPU_POWERPC_TRUE='#'
  TARGET_CPU_POWERPC_FALSE=
fi

         if test $TARGET_CPU = aarch64; then
  TARGET_CPU_AARCH64_TRUE=
  TARGET_CPU_AARCH64_FALSE='#'
else
  TARGET_CPU_AARCH64_TRUE='#'
  TARGET_CPU_AARCH64_FALSE=
fi

         if test $TARGET_CPU = sparc64; then
  TARGET_CPU_SPARC64_TRUE=
  TARGET_CPU_SPARC64_FALSE='#'
else
  TARGET_CPU_SPARC64_TRUE='#'
  TARGET_CPU_SPARC64_FALSE=
fi

in ./configure script.

Possibly the automated build script doesn't call ./configure correctly. But lscpu gives

# lscpu
Architecture:           armv7l
  Byte Order:           Little Endian
CPU(s):                 4
  On-line CPU(s) list:  0-3
Vendor ID:              ARM
  Model name:           Cortex-A72
    Model:              3
    Thread(s) per core: 1
    Core(s) per socket: 4
    Socket(s):          1
    Stepping:           r0p3
    CPU max MHz:        1800.0000
    CPU min MHz:        600.0000
    BogoMIPS:           216.00
    Flags:              half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

and armv7l is not listed in that selection.

Edit: BTW I'm using Arch Linux AUR's zfs-utils build script.

@UweSauter UweSauter added the Type: Defect Incorrect behavior (e.g. crash, hang) label Mar 11, 2022
@behlendorf behlendorf added Type: Architecture Indicates an issue is specific to a single processor architecture Type: Building Indicates an issue related to building binaries and removed Type: Defect Incorrect behavior (e.g. crash, hang) labels Mar 11, 2022
@nabijaczleweli
Copy link
Contributor

Just for reference, if you add echo $target_cpu (possibly > /tmp/tc) before the case $target_cpu in stanza – do you get armv7l?

@UweSauter
Copy link
Author

I applied this patch on ./configure:

--- configure   2022-03-10 22:47:53.121408247 +0100
+++ configure   2022-03-12 17:23:06.547460462 +0100
@@ -16671,7 +16671,11 @@
   BUILD_FREEBSD_FALSE=
 fi
 
-
+if [ -n "$target_cpu" ]; then
+  echo "target_cpu=$target_cpu" | tee >/tmp/target_cpu
+else
+  echo "target_cpu not set" | tee >/tmp/target_cpu
+fi
 
        case $target_cpu in
        i?86)

The result is:

$ cat /tmp/target_cpu 
target_cpu=armv7l

nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Mar 16, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Closes openzfs#13193
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
@nabijaczleweli
Copy link
Contributor

These are harmless, but if you wanna try #13225, it eliminates them.

nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Mar 20, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Closes openzfs#13193
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
nicman23 pushed a commit to nicman23/zfs that referenced this issue Aug 22, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
nicman23 pushed a commit to nicman23/zfs that referenced this issue Aug 22, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
lundman pushed a commit to openzfsonwindows/openzfs that referenced this issue Sep 2, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
beren12 pushed a commit to beren12/zfs that referenced this issue Sep 19, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
This fixes (harmless) error spew from configuring on, e.g., armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13193
Closes openzfs#13225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Architecture Indicates an issue is specific to a single processor architecture Type: Building Indicates an issue related to building binaries
Projects
None yet
Development

No branches or pull requests

3 participants