It said "impossible constraint in 'asm' error in base/cpu.cc:71:4, when compiled with Cobalt, after check the fluent, I found it may need to set the CPU ARCH, but I didn't not know where to set it, can anyone help me? The details error info is as follows
Asked
Active
Viewed 78 times
1
-
if you have inline asm, that is pretty processor specific, is there a "configure" script that you need to run? – Grady Player Feb 09 '17 at 12:50
-
As you said, it did have config for the asm code, and the config platform is not right. – Feb 09 '17 at 13:01
-
@petter, I strongly recommend you to consider every constant in configuration_public.h before trying to compile the code. And once it compiles, please compile and run `nplb` target to detect possible configuration errors. See https://cobalt.googlesource.com/cobalt/+/master/src/starboard/nplb – mmotorny Feb 10 '17 at 04:11
-
@mmotorny, thank you for your kind suggestion, I will. – Feb 10 '17 at 05:53
1 Answers
1
You can set the CPU ARCH in starboard/linux/x64x11/configuration_public.h(https://cobalt.googlesource.com/cobalt/+/e9b4b99dab6e774b8b6e63add74c352cc5dd395a/src/starboard/linux/x64x11/configuration_public.h), if you compile Cobalt on ARM ,then you can set it as follows:
// Whether the current platform is an ARM architecture.
#define SB_IS_ARCH_ARM 1
// Whether the current platform is an x86 architecture.
#define SB_IS_ARCH_X86 0

bitchainer
- 535
- 2
- 19
-
I found it, and follow your suggestion, it works, thanks so much for your kind help! – Feb 09 '17 at 12:59