LINUX.ORG.RU

тебе сюда:

IRC Channel:

irc://irc.freenode.net/cgminer

bvn13 ★★★★★
()

В чём проблема-то? На «ничего не получается» ты получишь ровно ноль ответов по существу.

Deleted
()
Ответ на: комментарий от Deleted

sudo auto-apt update && auto-apt -y run ./configure

результат: Entering auto-apt mode: ./configure Exit the command to leave auto-apt mode. configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

Max86
() автор топика
Ответ на: комментарий от Max86

$ autoconf autoconf: warning: both `configure.ac' and `configure.in' are present. autoconf: warning: proceeding with `configure.ac'.

Max86
() автор топика
Ответ на: комментарий от Max86

Ну зачем ты всё лепишь на кучу?
Скачал исходники? Check.
Запустил configure? Check.
Пнул make? Check.

Объединение всего на кучу имеет смысл только тогда, когда ты уверен, что всё как часы и твоего внимания не нужно.

Ты же видишь, что проблема даже до компиляции.
Скачал, перешёл в нужную директорию, пошёл дальше.

Поэтапно всё делай.

Deleted
()
Ответ на: комментарий от Deleted

$ git clone --recursive https://github.com/IIOBzp/ksk.git

Cloning into 'ksk'... remote: Counting objects: 324, done. remote: Compressing objects: 100% (303/303), done. remote: Total 324 (delta 15), reused 324 (delta 15), pack-reused 0 Receiving objects: 100% (324/324), 4.17 MiB | 1.50 MiB/s, done. Resolving deltas: 100% (15/15), done. Checking connectivity... done.

$ Check Check: command not found

Max86
() автор топика

тебе надо поместить этот тред в раздел Jobs и предложить оплату

Harald ★★★★★
()
Ответ на: комментарий от Max86

$ Check Check: command not found

Check это команда:) Это призыв посмотреть на результат. Проверить результат на ошибки.
Ну, соберись...

Deleted
()
Ответ на: комментарий от Deleted

Ночь не спал, возился...

Репозиторий клонируется вроде корректно, чем проверить не знаю, но визуально файлы на месте

Max86
() автор топика
Ответ на: комментарий от Max86

Ну так глазами посмотри есть такой скрипт.
Может его и не должно быть...
Заходим в README и читаем:
If building from git:
autoconf
automake

Следовательно: запускай autoconf, убеждайся что нет error'ов и потом запускай automake.

Deleted
()
Ответ на: комментарий от Deleted

$ autoconf configure.ac:22: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:46: error: possibly undefined macro: AM_MAINTAINER_MODE configure.ac:52: error: possibly undefined macro: AM_PROG_CC_C_O configure.ac:94: error: possibly undefined macro: AC_DEFINE configure.ac:118: error: possibly undefined macro: AC_MSG_ERROR configure.ac:138: error: possibly undefined macro: AM_CONDITIONAL

Max86
() автор топика
Ответ на: комментарий от Deleted

$ autoconf configure.ac:22: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:46: error: possibly undefined macro: AM_MAINTAINER_MODE configure.ac:52: error: possibly undefined macro: AM_PROG_CC_C_O configure.ac:94: error: possibly undefined macro: AC_DEFINE configure.ac:118: error: possibly undefined macro: AC_MSG_ERROR configure.ac:138: error: possibly undefined macro: AM_CONDITIONAL

Max86
() автор топика
Ответ на: комментарий от Max86

Я по автотулсам не спец, поэтому не уверен, но ошибки звучат не очень опасно. Попробуй пнуть automake всё равно. Если нет, то я не в помощь.

Deleted
()
Ответ на: комментарий от Deleted

$ automake configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal) configure.ac:17: error: required file './config.guess' not found configure.ac:17: 'automake --add-missing' can install 'config.guess' configure.ac:17: error: required file './config.sub' not found configure.ac:17: 'automake --add-missing' can install 'config.sub' Makefile.am:8: error: WANT_USBUTILS does not appear in AM_CONDITIONAL Makefile.am:35: error: HAVE_WINDOWS does not appear in AM_CONDITIONAL Makefile.am:52: error: NEED_FPGAUTILS does not appear in AM_CONDITIONAL Makefile.am:56: error: WANT_USBUTILS does not appear in AM_CONDITIONAL Makefile.am:60: error: WANT_LIBBITFURY does not appear in AM_CONDITIONAL Makefile.am:64: error: WANT_CRC16 does not appear in AM_CONDITIONAL Makefile.am:69: error: HAS_AVALON does not appear in AM_CONDITIONAL Makefile.am:73: error: HAS_KNC does not appear in AM_CONDITIONAL Makefile.am:78: error: HAS_BFLSC does not appear in AM_CONDITIONAL Makefile.am:82: error: HAS_BITFORCE does not appear in AM_CONDITIONAL Makefile.am:86: error: HAS_HASHFAST does not appear in AM_CONDITIONAL Makefile.am:90: error: HAS_HASHRATIO does not appear in AM_CONDITIONAL Makefile.am:94: error: HAS_BITFURY does not appear in AM_CONDITIONAL Makefile.am:98: error: HAS_BITMINE_A1 does not appear in AM_CONDITIONAL Makefile.am:108: error: HAS_DRILLBIT does not appear in AM_CONDITIONAL Makefile.am:112: error: HAS_ICARUS does not appear in AM_CONDITIONAL Makefile.am:116: error: HAS_KLONDIKE does not appear in AM_CONDITIONAL Makefile.am:120: error: HAS_COINTERRA does not appear in AM_CONDITIONAL Makefile.am:124: error: HAS_SP10 does not appear in AM_CONDITIONAL Makefile.am:130: error: HAS_SP30 does not appear in AM_CONDITIONAL Makefile.am:135: error: HAS_BAB does not appear in AM_CONDITIONAL Makefile.am:139: error: HAS_AVALON2 does not appear in AM_CONDITIONAL Makefile.am:143: error: HAS_AVALON4 does not appear in AM_CONDITIONAL Makefile.am:147: error: HAS_MINION does not appear in AM_CONDITIONAL Makefile.am:151: error: HAS_BMSC does not appear in AM_CONDITIONAL Makefile.am:155: error: HAS_BITMAIN does not appear in AM_CONDITIONAL Makefile.am:159: error: HAS_BITMAIN_C5 does not appear in AM_CONDITIONAL Makefile.am:163: error: HAS_BITMAIN_L3 does not appear in AM_CONDITIONAL Makefile.am:167: error: HAS_BITMAIN_D1 does not appear in AM_CONDITIONAL Makefile.am:172: error: HAS_MODMINER does not appear in AM_CONDITIONAL Makefile.am:178: error: HAS_BLOCKERUPTER does not appear in AM_CONDITIONAL Makefile.am:40: warning: ':='-style assignments are not portable Makefile.am: error: required file './INSTALL' not found Makefile.am: 'automake --add-missing' can install 'INSTALL' configure.ac:20: error: required file 'config.h.in' not found Makefile.am: error: required file './depcomp' not found Makefile.am: 'automake --add-missing' can install 'depcomp' /usr/share/automake-1.15/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.15/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC' /usr/share/automake-1.15/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again /usr/share/automake-1.15/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.15/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests /usr/share/automake-1.15/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX, /usr/share/automake-1.15/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC /usr/share/automake-1.15/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again ccan/Makefile.am:1: error: library used but 'RANLIB' is undefined ccan/Makefile.am:1: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB' ccan/Makefile.am:1: to 'configure.ac' and run 'autoconf' again. ccan/Makefile.am:3: warning: source file 'opt/helpers.c' is in a subdirectory, ccan/Makefile.am:3: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. ccan/Makefile.am:3: warning: source file 'opt/opt.c' is in a subdirectory, ccan/Makefile.am:3: but option 'subdir-objects' is disabled ccan/Makefile.am:3: warning: source file 'opt/parse.c' is in a subdirectory, ccan/Makefile.am:3: but option 'subdir-objects' is disabled ccan/Makefile.am:3: warning: source file 'opt/usage.c' is in a subdirectory, ccan/Makefile.am:3: but option 'subdir-objects' is disabled compat/Makefile.am:4: error: WANT_USBUTILS does not appear in AM_CONDITIONAL compat/Makefile.am:5: error: WANT_STATIC_LIBUSB does not appear in AM_CONDITIONAL lib/Makefile.am:165: error: GL_GENERATE_STDDEF_H does not appear in AM_CONDITIONAL lib/Makefile.am:195: error: GL_GENERATE_STDINT_H does not appear in AM_CONDITIONAL lib/Makefile.am:18: error: library used but 'RANLIB' is undefined lib/Makefile.am:18: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB' lib/Makefile.am:18: to 'configure.ac' and run 'autoconf' again. x11/Makefile.am:1: error: library used but 'RANLIB' is undefined x11/Makefile.am:1: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB' x11/Makefile.am:1: to 'configure.ac' and run 'autoconf' again.

Max86
() автор топика
Ответ на: комментарий от Max86

Ночь не спал, возился...

Мамка в курсе, чем ты, малыш, по ночам занимаешся?

anonymous
()
Ответ на: комментарий от Deleted

ZweiStein Max86

Я немного знаю autotools и gnu make, и мимо забегал.

Попробовал собрать:

git clone https://github.com/IIOBzp/ksk
cd ksk
autoreconf --install --force --warnings=all
./configure
make
Где-то половина сорцов собралась, потом появилась такая ошибка:
xcoin.c: In function ‘Xhash’:
xcoin.c:293:19: error: ‘hashA’ undeclared (first use in this function)
     memcpy(state, hashA, 32);
                   ^
xcoin.c:293:19: note: each undeclared identifier is reported only once for each function it appears in
Makefile:635: recipe for target 'libx11_a-xcoin.o' failed
make[2]: *** [libx11_a-xcoin.o] Error 1
make[2]: Leaving directory '/home/fsb4000/ksk/x11'
Makefile:1591: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/fsb4000/ksk'
Makefile:711: recipe for target 'all' failed
make: *** [all] Error 2

P.S. Оригинальный cgminer собрался нормально: https://github.com/ckolivas/cgminer

Проблема именно в этом форке...

// конец сборки оригинального cgminer
 CCLD     cgminer
make[2]: Leaving directory '/home/fsb4000/cgminer'
make[1]: Leaving directory '/home/fsb4000/cgminer'
$ file cgminer
cgminer: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.0.0, BuildID[sha1]=b151ad2b3475ffbfe42b598e9bad50da682c2eb4, not stripped

P.P.S. Открыл этот файл на гитхабе и поискал hashA: https://github.com/IIOBzp/ksk/blob/123/x11/xcoin.c#L231

P.P.S Если закомментировать https://github.com/IIOBzp/ksk/blob/123/x11/xcoin.c#L293 , то всё соберётся, но насколько корректно будет считать я не знаю...

fsb4000 ★★★★★
()
Последнее исправление: fsb4000 (всего исправлений: 2)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.