Skip to content
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

Iron out cross compilation issues #246

Closed
bostjan opened this issue Sep 15, 2022 · 3 comments · Fixed by #247
Closed

Iron out cross compilation issues #246

bostjan opened this issue Sep 15, 2022 · 3 comments · Fixed by #247

Comments

@bostjan
Copy link
Member

bostjan commented Sep 15, 2022

Snoopy v2.5.0 seems to be having problems building on (some) non-x86_64 platforms:
https://buildd.debian.org/status/package.php?p=snoopy

@bostjan bostjan added this to the 2.5.1 milestone Sep 15, 2022
@bostjan bostjan self-assigned this Sep 15, 2022
@bostjan
Copy link
Member Author

bostjan commented Sep 15, 2022

cc @MarcosFouces

@condemil
Copy link

Looks like it is still an issue for mips:

action-stress-threads.c: In function 'snoopyTestCli_action_stress_threads_threadMain':
action-stress-threads.c:230:77: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  230 |     if (verbose) printf("    t%d %llu : Hello from thread #%d\n", seqNrPub, (unsigned long long)pthread_self(), seqNrPub);
      |                                                                             ^
action-stress-threads.c:234:91: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  234 |     if (verbose) printf("    t%d %llu : Threads before snoopy_init():    %d\n", seqNrPub, (unsigned long long)pthread_self(), snoopy_tsrm_get_threadCount());
      |                                                                                           ^
action-stress-threads.c:236:91: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  236 |     if (verbose) printf("    t%d %llu : Threads after  snoopy_init():    %d\n", seqNrPub, (unsigned long long)pthread_self(), snoopy_tsrm_get_threadCount());
      |                                                                                           ^
action-stress-threads.c:246:89: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  246 |         printf("    t%d %llu : Datasource %s returned negative result: %d\n", seqNrPub, (unsigned long long)pthread_self(), dsName, retVal);
      |                                                                                         ^
action-stress-threads.c:248:67: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  248 |         printf("    t%d %llu : DS result: %30s = %s\n", seqNrPub, (unsigned long long)pthread_self(), dsName, dsResult);
      |                                                                   ^
action-stress-threads.c:253:91: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  253 |     if (verbose) printf("    t%d %llu : Threads before snoopy_cleanup(): %d\n", seqNrPub, (unsigned long long)pthread_self(), snoopy_tsrm_get_threadCount());
      |                                                                                           ^
action-stress-threads.c:255:91: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  255 |     if (verbose) printf("    t%d %llu : Threads after  snoopy_cleanup(): %d\n", seqNrPub, (unsigned long long)pthread_self(), snoopy_tsrm_get_threadCount());
      |                                                                                           ^
action-stress-threads.c:259:75: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  259 |     if (verbose) printf("    t%d %llu : Thread exiting: #%d\n", seqNrPub, (unsigned long long)pthread_self(), seqNrPub);
      |                                                                           ^

@bostjan
Copy link
Member Author

bostjan commented Jan 20, 2023

@condemil, let's discuss under #253, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment