luke-jr / bfgminer

Modular ASIC/FPGA miner written in C, featuring overclocking, monitoring, fan speed control and remote interface capabilities.
http://luke.dashjr.org/programs/bitcoin/files/bfgminer/
Other
1.83k stars 809 forks source link

Latest revision (november 11th) broken #316

Open Kafkamorph opened 10 years ago

Kafkamorph commented 10 years ago

CC bfgminer-miner.o miner.c: In function ‘stratum_thread’: miner.c:7966:13: error: invalid storage class for function ‘init_stratum_thread’ miner.c:7974:14: error: invalid storage class for function ‘longpoll_thread’ miner.c:7976:13: error: invalid storage class for function ‘stratum_works’ miner.c:7991:13: error: invalid storage class for function ‘pool_active’ miner.c: In function ‘pool_active’: miner.c:8151:8: error: ‘longpoll_thread’ undeclared (first use in this function) miner.c:8151:8: note: each undeclared identifier is reported only once for each function it appears in miner.c: In function ‘stratum_thread’: miner.c:8176:13: error: invalid storage class for function ‘pool_resus’ miner.c:8184:21: error: invalid storage class for function ‘hash_pop’ miner.c:8253:21: error: invalid storage class for function ‘clone_work’ miner.c:8297:13: error: invalid storage class for function ‘bdiff_target_leadzero’ miner.c:8356:13: error: invalid storage class for function ‘gen_stratum_work’ miner.c:8530:6: error: invalid storage class for function ‘_submit_work_async’ miner.c:8542:13: error: invalid storage class for function ‘submit_work_async’ miner.c:8712:13: error: invalid storage class for function ‘fill_queue’ miner.c:8806:13: error: invalid storage class for function ‘__work_completed’ miner.c:8838:13: error: invalid storage class for function ‘flush_queue’ miner.c:8946:13: error: invalid storage class for function ‘convert_to_work’ miner.c:8998:21: error: invalid storage class for function ‘select_longpoll_pool’ miner.c:9016:13: error: invalid storage class for function ‘wait_lpcurrent’ miner.c:9027:22: error: invalid storage class for function ‘save_curl_socket’ miner.c:9034:14: error: invalid storage class for function ‘longpoll_thread’ miner.c:9166:13: error: invalid storage class for function ‘stop_longpoll’ miner.c:9184:13: error: invalid storage class for function ‘start_longpoll’ miner.c:9211:13: error: invalid storage class for function ‘reap_curl’ miner.c:9237:14: error: invalid storage class for function ‘watchpool_thread’ miner.c:9404:14: error: invalid storage class for function ‘watchdog_thread’ miner.c:9630:13: error: invalid storage class for function ‘log_print_status’ miner.c:9816:14: error: invalid storage class for function ‘test_pool_thread’ miner.c:9876:13: error: invalid storage class for function ‘input_pool’ miner.c:9929:13: error: invalid storage class for function ‘fork_monitor’ miner.c:10062:19: error: redeclaration of ‘cpu_drv’ with no linkage miner.c:10061:19: note: previous declaration of ‘cpu_drv’ was here miner.c:10111:13: error: invalid storage class for function ‘my_blkmaker_sha256_callback’ miner.c:10125:6: error: invalid storage class for function ‘drv_detect_all’ miner.c:10158:6: error: invalid storage class for function ‘allocate_cgpu’ miner.c:10213:6: error: invalid storage class for function ‘start_cgpu’ miner.c:10238:6: error: invalid storage class for function ‘_scan_serial’ miner.c:10350:13: error: invalid storage class for function ‘probe_pools’ miner.c:10362:13: error: invalid storage class for function ‘raise_fd_limits’ miner.c:11119:1: error: expected declaration or statement at end of input miner.c: At top level: miner.c:873:13: warning: ‘bdiff_target_leadzero’ used but never defined [enabled by default] miner.c:3719:13: warning: ‘_submit_work_async’ used but never defined [enabled by default] miner.c:4061:13: warning: ‘pool_active’ used but never defined [enabled by default] miner.c:4581:13: warning: ‘start_longpoll’ used but never defined [enabled by default] miner.c:4582:13: warning: ‘stop_longpoll’ used but never defined [enabled by default] miner.c:5959:13: warning: ‘input_pool’ used but never defined [enabled by default] miner.c:7796:13: warning: ‘wait_lpcurrent’ used but never defined [enabled by default] miner.c:7797:13: warning: ‘pool_resus’ used but never defined [enabled by default] miner.c:7798:13: warning: ‘gen_stratum_work’ used but never defined [enabled by default] make[1]: *\ [bfgminer-miner.o] Error 1

luke-jr commented 10 years ago

What causes this problem?

Kafkamorph commented 10 years ago

Have been doing a basic git pull + configure + make for several months to always have the latest git version. Today, this was the result. No OS updates in between.

luke-jr commented 10 years ago

Please at least bisect it to figure out exactly what commit is causing the problem... I have nothing to go on here yet.

Kafkamorph commented 10 years ago

You're absolutely right. My apologies.

git describe

bfgminer-3.5.1-13-gb481e61

git log -1 --format="%H"

b481e61674e7c46a58d9423bbf31508a235df7c9

(just did a make clean to make sure there was no git 'dust', same result)

luke-jr commented 10 years ago

So 8a69126b37fbd7ced4bbb55a008942881aa48e4c works fine?

Kafkamorph commented 10 years ago

I just did reverse checkouts, one by one, until I found the last one that compiled:

HEAD is now at f9a949f... Merge commit 'ac77ceb' into bfgminer

make

make all-recursive (snip) /usr/bin/install -c -m 644 api-example.php miner.php api-example.c api-example.py '/usr/local/share/doc/bfgminer/rpc-examples' make[2]: Leaving directory /morph/bfgminer' make[1]: Leaving directory/morph/bfgminer'

However, I just did a fresh git clone on a separate dir, and it compiled fine. I'm guessing this only occurred because of my daily pulls. As it stands, I don't see any clear bug, just an odd behaviour by piling up pulls on the same dir that didn't "get along" with some commits. Maybe add a "If daily pulls break, just clone a fresh copy" note somewhere? :)