@antyan_s

Пробую собрать bmminer-cgminer492, ошибка при сборке. Каких зависимостей не хватает?

Суть в чем, хочу собрать данную сборку под asic antminer s9
https://github.com/Zwilla/bmminer-cgminer492

Выполняю следующие команды:

git clone https://github.com/Zwilla/bmminer-cgminer492
cd bmminer-cgminer492
chmod -R 777 *
./autogen.sh CC=/usr/bin/arm-linux-gnueabi-gcc NM=/usr/bin/arm-linux-gnueabi-gcc-nm AR=/usr/bin/arm-linux-gnueabi-ar -host arm-linux-gnueabi --enable-bitmain-c5 --with-system-jansson --disable-libcurl


И после команды:

make install

получаю следующую ошибку

^~~~~~~~~~~~~~~~~~~~
                                                                                  submit_nonce
In file included from miner.h:38:0,
                 from sha2.h:37,
                 from cgminer.c:54:
cgminer.c: In function 'gen_stratum_work':
cgminer.c:8262:52: error: expected ')' before 'PRIu64'
         applog(LOG_DEBUG, "Work job_id %s nonce2 %"PRIu64" ntime %s", work->job_id, work->nonce2, work->ntime);
                                                    ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:8262:27: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
         applog(LOG_DEBUG, "Work job_id %s nonce2 %"PRIu64" ntime %s", work->job_id, work->nonce2, work->ntime);
                           ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:8262:27: warning: spurious trailing '%' in format [-Wformat=]
         applog(LOG_DEBUG, "Work job_id %s nonce2 %"PRIu64" ntime %s", work->job_id, work->nonce2, work->ntime);
                           ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c: In function 'get_work':
cgminer.c:8506:27: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
         applog(LOG_DEBUG, "Get work blocked for %d seconds", (time_t)diff_t);
                           ^                                  ~~~~~~~~~
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c: In function 'print_summary':
cgminer.c:10275:47: error: expected ')' before 'PRId64'
     applog(LOG_WARNING, "Share submissions: %"PRId64, total_accepted + total_rejected);
                                               ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10275:25: warning: spurious trailing '%' in format [-Wformat=]
     applog(LOG_WARNING, "Share submissions: %"PRId64, total_accepted + total_rejected);
                         ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10276:45: error: expected ')' before 'PRId64'
     applog(LOG_WARNING, "Accepted shares: %"PRId64, total_accepted);
                                             ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10276:25: warning: spurious trailing '%' in format [-Wformat=]
     applog(LOG_WARNING, "Accepted shares: %"PRId64, total_accepted);
                         ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10277:45: error: expected ')' before 'PRId64'
     applog(LOG_WARNING, "Rejected shares: %"PRId64, total_rejected);
                                             ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10277:25: warning: spurious trailing '%' in format [-Wformat=]
     applog(LOG_WARNING, "Rejected shares: %"PRId64, total_rejected);
                         ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10290:75: error: expected ')' before 'PRId64'
     applog(LOG_WARNING, "Stale submissions discarded due to new blocks: %"PRId64, total_stale);
                                                                           ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10290:25: warning: spurious trailing '%' in format [-Wformat=]
     applog(LOG_WARNING, "Stale submissions discarded due to new blocks: %"PRId64, total_stale);
                         ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10309:56: error: expected ')' before 'PRId64'
             applog(LOG_WARNING, " Share submissions: %"PRId64, pool->accepted + pool->rejected);
                                                        ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10309:33: warning: spurious trailing '%' in format [-Wformat=]
             applog(LOG_WARNING, " Share submissions: %"PRId64, pool->accepted + pool->rejected);
                                 ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10310:54: error: expected ')' before 'PRId64'
             applog(LOG_WARNING, " Accepted shares: %"PRId64, pool->accepted);
                                                      ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10310:33: warning: spurious trailing '%' in format [-Wformat=]
             applog(LOG_WARNING, " Accepted shares: %"PRId64, pool->accepted);
                                 ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10311:54: error: expected ')' before 'PRId64'
             applog(LOG_WARNING, " Rejected shares: %"PRId64, pool->rejected);
                                                      ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
cgminer.c:10311:33: warning: spurious trailing '%' in format [-Wformat=]
             applog(LOG_WARNING, " Rejected shares: %"PRId64, pool->rejected);
                                 ^
logging.h:40:35: note: in definition of macro 'applog'
    snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
                                   ^~~
Makefile:680: recipe for target 'cgminer-cgminer.o' failed
make[1]: *** [cgminer-cgminer.o] Error 1
make[1]: Leaving directory '/home/hard/asic/bmminer-cgminer492'
Makefile:840: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1


Что я делаю ни так, подскажите знающие люди. Буду безумно благодарен.
  • Вопрос задан
  • 127 просмотров
Пригласить эксперта
Ответы на вопрос 3
Список зависимостей указан в том же гите:
649320cfcb9d6920211331.png
Проверьте, всё ли у вас есть.
Ответ написан
Комментировать
jcmvbkbc
@jcmvbkbc
"I'm here to consult you" © Dogbert
получаю следующую ошибку

судя по тексту ошибок, всего хватает, но ошибки в коде. Я бы в cgminer.c добавил #include <inttypes.h>
Ответ написан
Комментировать
@antyan_s Автор вопроса
Понял что нужно собирать arm-angstrom-linux-gnueabi-gcc а не arm-linux-gnueabi-gcc. Теперь столкнулся с проблемой, что не могу найти где скачать arm-angstrom-linux-gnueabi-gcc. Быть может кто то даст наводку?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы