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
cpuid.h missing in ARM(Raspberry pi) #175
Comments
Hi We don't officially support VerneMQ on raspberry pi and therefore it slipped through our fingers that the newest release doesn't compile there. The reason is a new dependency (mzmetrics) which we started using in this release which makes it possible for us to provide metrics with much less overhead than before. We don't currently have a workaround for this, but will look into this when we have a moment to spare. If you should find a solution we'd be grateful if you'd share it with us. Thanks |
Hi again I didn't figure out if there is a good way to bring diff --git a/c_src/mzmetrics_counters_no_preallocation.c b/c_src/mzmetrics_counters_no_preallocation.c
index 4fa1d0c..9537e6c 100644
--- a/c_src/mzmetrics_counters_no_preallocation.c
+++ b/c_src/mzmetrics_counters_no_preallocation.c
@@ -3,7 +3,7 @@
#define _DEFAULT_SOURCE
#include <sched.h>
#endif
-#include <cpuid.h>
+//#include <cpuid.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
@@ -33,14 +33,14 @@ void capi_deinit_counters(void)
int mycpu(void)
{
#ifdef PCPU_COUNTERS
-#ifdef __linux__
+/* #ifdef __linux__ */
return sched_getcpu();
-#else
- unsigned int eax, ebx, ecx, edx;
- if (!__get_cpuid(1, &eax, &ebx, &ecx, &edx))
- return 0;
- return 0;
-#endif
+/* #else */
+/* unsigned int eax, ebx, ecx, edx; */
+/* if (!__get_cpuid(1, &eax, &ebx, &ecx, &edx)) */
+/* return 0; */
+/* return 0; */
+/* #endif */
#else
return 0;
#endif This makes it compile and work for me - at least I'm able to subscribe to and publish QoS0 messages. Note, this was just a quick and dirty hack, but would be good to know if this works for you as well. Cheers, |
Thank you for your quick replied. I'll test dirty code later ;) |
BTW, @larshesel is there have any change log between different version? |
https://github.com/erlio/vernemq/blob/master/changelog.md (I see we made a mistake and called the most recent release 0.13.0 - it should be 0.13.1 - I'll change that in a bit) |
This resolved the issue on Raspberry Pi 2 (512mb ram version) with latest vernemq source from git. |
Hi all,
I am
if anyone know, where i am wrong, please guide me to build pytorch on riscv64. T&R |
As I know ARM CPU seem no cpuid like x86 CPU have.
So If I compile latest(0.13.1) version for RPI2/3.
Will have an error said:
But few month ago in 0.12.5p4 version of verneMQ, I can compiled and running verneMQ at RPi2/3 without any problem.
Is this problem possible solve?
The text was updated successfully, but these errors were encountered: