stressapptest / stressapptest

Stressful Application Test - userspace memory and IO test
Apache License 2.0
559 stars 147 forks source link

For mips::Error: opcode not supported on this processor: mips32 (mips32) `rdhwr $4,$2' #79

Open froggatt opened 3 years ago

froggatt commented 3 years ago

I get below error message When cross-compile for mips cpu: mips-openwrt-linux-uclibc-g++ -DHAVE_CONFIG_H -I. -O2 -Wall -march=mips32 -DMIPSEL -DCHECKOPTS -Wreturn-type -Wunused -Wuninitialized -Wall -O3 -funroll-all-loops -funroll-loops -DNDEBUG -MT sat.o -MD -MP -MF .deps/sat.Tpo -c -o sat.o sat.cc /tmp/ccVt2yhl.s: Assembler messages: /tmp/ccVt2yhl.s:1469: Error: opcode not supported on this processor: mips32 (mips32) rdhwr $4,$2' /tmp/ccVt2yhl.s:1579: Error: opcode not supported on this processor: mips32 (mips32)rdhwr $4,$2' /tmp/ccVt2yhl.s:11253: Error: opcode not supported on this processor: mips32 (mips32) rdhwr $4,$2' /tmp/ccVt2yhl.s:19639: Error: opcode not supported on this processor: mips32 (mips32)rdhwr $2,$2' make[3]: *** [sat.o] Error 1

We want to run stresapptest on mips cpu(atheros AR9344): ./configure --host=mips-openwrt-linux CXX=mips-openwrt-linux-uclibc-g++ CC=mips-openwrt-linux-uclibc-gcc CFLAGS="-O2 -Wall -march=mips32 -DMIPSEL" CXXFLAGS="-O2 -Wall -march=mips32 -DMIPSEL" --enable-shared=no;

Please provide any suggestion, tks。