Not able to compile code for aarch64

159 views
Skip to first unread message

Prakash T

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

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 main.cc
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 os.cc
os.cc:215:2: 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 ?

Thanks

-Prakash

Nick Sanders

unread,
Jul 12, 2019, 12:57:08 PM7/12/19
to stressappt...@googlegroups.com
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 stressapptest-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stressapptest-discuss/3d12a0fa-3468-4388-8f7e-996545c56b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Prakash T

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

I am able to compile code using below config options:

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

Thanks

-Prakash
Reply all
Reply to author
Forward
0 new messages