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

unable to run Unixbench on my server #76

Open
vickyvikas7988 opened this issue Feb 28, 2022 · 4 comments
Open

unable to run Unixbench on my server #76

vickyvikas7988 opened this issue Feb 28, 2022 · 4 comments

Comments

@vickyvikas7988
Copy link

vickyvikas7988 commented Feb 28, 2022

# ./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
Copy link

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

@gstrauss
Copy link
Collaborator

gstrauss commented Apr 11, 2023

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

@jimjiyn
Copy link

jimjiyn commented Jul 20, 2023

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

@gstrauss
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants