Not able to compile code for aarch64

Skip to first unread message

Prakash T

Jul 12, 2019, 7:27:44 AM7/12/19
to stressapptest-discuss

I am trying to cross compile stressapptest for aarch64, getting below error:

g++ -DHAVE_CONFIG_H -I.     -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops  -funroll-loops -DNDEBUG -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I.     -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops  -funroll-loops -DNDEBUG -MT os.o -MD -MP -MF .deps/os.Tpo -c -o os.o warning: #warning "Unsupported CPU type: unable to determine feature set."
os.h: Assembler messages:
os.h:160: Error: no such instruction: `dc cvau,%rsi'
os.h:161: Error: suffix or operands invalid for `ds'
os.h:162: Error: no such instruction: `ic ivau,%rsi'
os.h:163: Error: suffix or operands invalid for `ds'
os.h:164: Error: no such instruction: `isb'
make[2]: *** [os.o] Error 1

Above error gives me clue that instead of cross compiler, make still using the standard g++/gcc on my machine not the correct one. Can someone help me to get past this error ?



Nick Sanders

Jul 12, 2019, 12:57:08 PM7/12/19
Maybe try with verbose, and check your cross compiling setup? how did you run configure and where is your cross compiler?
The commandline listed looks like you are running "g++" from your path, which probably isn't right unless your build system is aarch64


You received this message because you are subscribed to the Google Groups "stressapptest-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

Prakash T

Jul 16, 2019, 2:24:49 AM7/16/19
to stressapptest-discuss

I am able to compile code using below config options:

./configure --host=aarch64-xxxxx-linux-gnu --with-static


Reply all
Reply to author
0 new messages