kdlucas / byte-unixbench

Automatically exported from code.google.com/p/byte-unixbench
GNU General Public License v2.0
1.27k stars 323 forks source link

unable to run Unixbench on my server #76

Open vickyvikas7988 opened 2 years ago

vickyvikas7988 commented 2 years ago
# ./Run -c 1 -c `grep 'processor' /proc/cpuinfo |sort |uniq |wc -l`
gcc -o pgms/arithoh -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Darithoh src/arith.c 
src/arith.c:1:0: error: unknown value ‘native’ for -march

 ^
src/arith.c:1:0: error: unknown value ‘native’ for -mtune
make: *** [pgms/arithoh] Error 1
make distr
make[1]: Entering directory `/opt/benchmarks/scripts/unixbench/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/opt/benchmarks/scripts/unixbench/UnixBench'
make programs
make[1]: Entering directory `/opt/benchmarks/scripts/unixbench/UnixBench'
gcc -o pgms/arithoh -Wall -pedantic -O3 -ffast-math -march=native -mtune=native -I ./src -DTIME -Darithoh src/arith.c 
src/arith.c:1:0: error: unknown value ‘native’ for -march

 ^
src/arith.c:1:0: error: unknown value ‘native’ for -mtune
make[1]: *** [pgms/arithoh] Error 1
make[1]: Leaving directory `/opt/benchmarks/scripts/unixbench/UnixBench'
make: *** [all] Error 2

**********************************************
Run: "make all" failed; aborting
# uname -p
aarch64
# cat /etc/os-release 
NAME="Oracle Linux Server"
VERSION="7.9"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Oracle Linux Server 7.9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:9:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.9
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.9
# cat /proc/cpuinfo 
processor   : 0
BogoMIPS    : 50.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part    : 0xd0c
CPU revision    : 1
# cat /proc/version 
Linux version 5.4.17-2136.302.7.2.1.el7uek.aarch64 (mockbuild@build-ol7-aarch64.oracle.com) (gcc version 7.3.0 20180125 (Red Hat 7.3.0-7) (GCC)) #2 SMP Tue Jan 18 12:03:48 PST 2022

Please let me know if you require additional information.

febryanvaldo commented 1 year ago

Hello, i have same problem, do you find any solution?

gstrauss commented 1 year ago

Please share the output of: uname -p and uname -m for your system, as well as gcc --version

jimjiyn commented 1 year ago

gcc version is too old to recognize the option ‘-march=native’

gstrauss commented 1 year ago

@jimjiyn your gcc may be old, but are you old enough to read and understand the comment directly above your comment? You posting the equivalent of "me too" is juvenile.