Homebrew Can't compile bfcl for seedminer

IC_

GBAtemp's ???
OP
Member
Joined
Aug 24, 2017
Messages
1,630
Trophies
4
Location
The Forest
XP
6,583
Country
Macedonia, The Former Yugoslav Republic of
I'm trying to compile bfcl 0.5 from https://github.com/zoogie/bfCL/releases/tag/0.5 for seedminer on linux but I get an error
Code:
~/Programs/seedminer/bfcl $ make
cc -std=c11 -Wall -Werror -O2 -mrdrnd -I/include   -c -o bfcl.o bfcl.c
bfcl.c: In function ‘main’:
bfcl.c:24:27: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
   24 |  } else if (argc == 2 && !strcmp(argv[1], "info")) {
      |                           ^~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: bfcl.o] Error 1
When I remove -Werror from makefile I get different errors
Code:
~/Programs/seedminer/bfcl $ make
cc -std=c11 -Wall -O2 -mrdrnd -I/include   -c -o bfcl.o bfcl.c
bfcl.c: In function ‘main’:
bfcl.c:24:27: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
   24 |  } else if (argc == 2 && !strcmp(argv[1], "info")) {
      |                           ^~~~~~
cc -std=c11 -Wall -O2 -mrdrnd -I/include   -c -o ocl_util.o ocl_util.c
ocl_util.c: In function ‘ocl_get_device’:
ocl_util.c:185:9: warning: implicit declaration of function ‘strstr’ [-Wimplicit-function-declaration]
  185 |     if (strstr((const char*)devices[j].name, "Intel") == 0) {
      |         ^~~~~~
ocl_util.c:185:9: warning: incompatible implicit declaration of built-in function ‘strstr’
ocl_util.c:8:1: note: include ‘<string.h>’ or provide a declaration of ‘strstr’
    7 | #include "utils.h"
  +++ |+#include <string.h>
    8 |
cc -std=c11 -Wall -O2 -mrdrnd -I/include   -c -o utils.o utils.c
utils.c: In function ‘hp_time_diff’:
utils.c:84:22: error: ‘pt1’ is a pointer; did you mean to use ‘->’?
   84 |  long long diff = pt1.tv_sec - pt0.tv_sec;
      |                      ^
      |                      ->
utils.c:84:35: error: ‘pt0’ is a pointer; did you mean to use ‘->’?
   84 |  long long diff = pt1.tv_sec - pt0.tv_sec;
      |                                   ^
      |                                   ->
utils.c:86:13: error: ‘pt1’ is a pointer; did you mean to use ‘->’?
   86 |  diff += pt1.tv_usec - pt0.tv_usec;
      |             ^
      |             ->
utils.c:86:27: error: ‘pt0’ is a pointer; did you mean to use ‘->’?
   86 |  diff += pt1.tv_usec - pt0.tv_usec;
      |                           ^
      |                           ->
make: *** [<builtin>: utils.o] Error 1
Should I replace the . with -> or can I get a compiled version anywhere or anything else I can do?

Edit: I used https://github.com/Mike15678/seedminer/releases/tag/v2.1.5 and it works
 
Last edited by IC_,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv3 @ K3Nv3: https://www.videogameschronicle.com/news/hideo-kojima-says-hes-left-staff-a-usb-stick-of-game-ide...