Bitcoin Forum
June 25, 2024, 09:47:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: Need help building cgminer from git on Fedora17[update] on: October 05, 2012, 09:59:01 AM
My 11.04 build in my git downloads (e.g. 2.7.6a) works on Fedora 17 - I know coz I run it on Fedora 17 also Smiley
https://github.com/kanoi/cgminer/downloads

... of course I don't have an ATI card in this machine (my desktop) but I have an nVidia using the fusion build of the original nVidia drivers and that also works GPU mining
i.e. I've tried BFL, Icarus, nVidia GPU - all 3 work on Fedora 17 with that binary in my downloads

Edit: I actually run Xubuntu 11.04 in a VirtualBox on Fedora 17 to build the cgminer binaries Smiley
I saw those and I can confirm 2.7.6a does work on F17 with the ATI HD6870 w/ the current latest driver+SDK+ADL. I'm currently running the one I built on my Ubuntu 12.04 server box. I tend to obsess about these little problems. I'm thinking the Fedora libcurl is the problem, is that why you resorted to building on Ubuntu?

I just find it a little sad that we can build this on Windows and Ubuntu but not Fedora (and maybe not on CentOS or RHEL either), I really want to understand why and try to fix it.
2  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overclock monitor fanspeed RPC linux/windows/osx/mip/r-pi 2.7.6 on: October 05, 2012, 06:58:54 AM
I started a thread for help building this on Fedora 17 here: https://bitcointalk.org/index.php?topic=114974.0

Any help would be awesome, thanks.
3  Bitcoin / Mining software (miners) / Need help building cgminer from git on Fedora17[update] on: October 02, 2012, 06:57:45 PM
Initially autogen/configure was unable to find libcurl but I found that that was a permissions issue by running it as root strangely, its hit or miss and more consistently miss for detecting libcurl or libcurl version. I have AMDAPP-SDK installed and working, I know this because the precompiled binary works. Still, autogen is not finding OpenCL.

This is what I get running autogen:
Code:
 ./autogen.sh 
Running autoreconf -if...
Configuring...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... (cached) ranlib
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for mprotect... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memmem is declared... yes
checking for memmem... yes
checking whether memmem works... yes
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for wchar_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking whether stdint.h conforms to C99... yes
checking whether memmem is declared without a macro... yes
checking whether mempcpy is declared without a macro... yes
checking whether memrchr is declared without a macro... yes
checking whether rawmemchr is declared without a macro... yes
checking whether stpcpy is declared without a macro... yes
checking whether stpncpy is declared without a macro... yes
checking whether strchrnul is declared without a macro... yes
checking whether strdup is declared without a macro... yes
checking whether strncat is declared without a macro... yes
checking whether strndup is declared without a macro... yes
checking whether strnlen is declared without a macro... yes
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... yes
checking whether strcasestr is declared without a macro... yes
checking whether strtok_r is declared without a macro... yes
checking whether strerror_r is declared without a macro... yes
checking whether strsignal is declared without a macro... yes
checking whether strverscmp is declared without a macro... yes
checking whether memmem works in linear time... yes
checking for memmem... (cached) yes
checking whether memmem works... (cached) yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking whether sigaction is declared without a macro... yes
checking whether sigaddset is declared without a macro... yes
checking whether sigdelset is declared without a macro... yes
checking whether sigemptyset is declared without a macro... yes
checking whether sigfillset is declared without a macro... yes
checking whether sigismember is declared without a macro... yes
checking whether sigpending is declared without a macro... yes
checking whether sigprocmask is declared without a macro... yes
checking for sigprocmask... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
[b]checking for OpenCL... yes[/b]
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for ADL_SDK/adl_sdk.h... yes ./autogen.sh
Running autoreconf -if...
Configuring...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... (cached) ranlib
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for mprotect... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking whether memmem is declared... yes
checking for memmem... yes
checking whether memmem works... yes
checking for C/C++ restrict keyword... __restrict
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for wchar_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking whether stdint.h conforms to C99... yes
checking whether memmem is declared without a macro... yes
checking whether mempcpy is declared without a macro... yes
checking whether memrchr is declared without a macro... yes
checking whether rawmemchr is declared without a macro... yes
checking whether stpcpy is declared without a macro... yes
checking whether stpncpy is declared without a macro... yes
checking whether strchrnul is declared without a macro... yes
checking whether strdup is declared without a macro... yes
checking whether strncat is declared without a macro... yes
checking whether strndup is declared without a macro... yes
checking whether strnlen is declared without a macro... yes
checking whether strpbrk is declared without a macro... yes
checking whether strsep is declared without a macro... yes
checking whether strcasestr is declared without a macro... yes
checking whether strtok_r is declared without a macro... yes
checking whether strerror_r is declared without a macro... yes
checking whether strsignal is declared without a macro... yes
checking whether strverscmp is declared without a macro... yes
checking whether memmem works in linear time... yes
checking for memmem... (cached) yes
checking whether memmem works... (cached) yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking whether sigaction is declared without a macro... yes
checking whether sigaddset is declared without a macro... yes
checking whether sigdelset is declared without a macro... yes
checking whether sigemptyset is declared without a macro... yes
checking whether sigfillset is declared without a macro... yes
checking whether sigismember is declared without a macro... yes
checking whether sigpending is declared without a macro... yes
checking whether sigprocmask is declared without a macro... yes
checking for sigprocmask... yes
checking whether NULL can be used in arbitrary expressions... yes
checking for ANSI C header files... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for OpenCL... yes
checking for pthread_create in -lpthread... yes
checking for json_loads in -ljansson... no
checking for ADL_SDK/adl_sdk.h... yes
checking for library containing addstr... -lncurses
checking for yasm... /bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.10.1

I'm also asking for help on the Fedora forums and this is what I have posted over there:
The code I'm trying to compile is cgminer, here's a link to the README on github. https://github.com/ckolivas/cgminer/blob/master/README
More info here: https://bitcointalk.org/index.php?topic=28402.0

It seems to have been developed on Ubuntu and the dependencies listed in the README are here:
Quote
Dependencies:
   curl dev library    http://curl.haxx.se/libcurl/
   (libcurl4-openssl-dev)

   curses dev library
   (libncurses5-dev or libpdcurses on WIN32)

   pkg-config      http://www.freedesktop.org/wiki/Software/pkg-config
   libtool         http://www.gnu.org/software/libtool/

   jansson         http://www.digip.org/jansson/
   (jansson is included in-tree and not necessary)

   yasm 1.0.1+ http://yasm.tortall.net/
   (yasm is optional, gives assembly routines for CPU mining)

   AMD APP SDK      http://developer.amd.com/sdks/AMDAPPSDK
   (This sdk is mandatory for GPU mining)

   AMD ADL SDK      http://developer.amd.com/sdks/ADLSDK
   (This sdk is mandatory for ATI GPU monitoring & clocking)

   libudev headers
   (This is only required for FPGA auto-detection and is linux only)

   libusb headers
   (This is only required for ZTEX support)
There is a pre-built binary available that will run and do the GPU overclocking and fan control and submit shares before crashing. The only error message it offers is
Quote
./cgminer: /lib64/libcurl.so.4: no version information available (required by ./cgminer)

My guess is that the code is pretty platform specific to Ubuntu/Debian. Specifically some differences between how Debian and Fedora handle environmental variables and version info. I'm not quite experienced enough to figure it out on my own yet.  I've had it running for weeks at a time on an Ubuntu box. As a test I just ran a git build on the Ubuntu box and it works.

I'm on Fedora 17 x86_64
the output of the suggested query:
Code:
# rpm -aq | grep curl |sort 
curl-7.24.0-5.fc17.x86_64
libcurl-7.24.0-5.fc17.x86_64
libcurl-devel-7.24.0-5.fc17.x86_64
python-pycurl-7.19.0-10.fc17.x86_64
adding:
Code:
# rpm -ql libcurl-devel
/usr/bin/curl-config
/usr/include/curl
/usr/include/curl/curl.h
/usr/include/curl/curlbuild-64.h
/usr/include/curl/curlbuild.h
/usr/include/curl/curlrules.h
/usr/include/curl/curlver.h
/usr/include/curl/easy.h
/usr/include/curl/mprintf.h
/usr/include/curl/multi.h
/usr/include/curl/stdcheaders.h
/usr/include/curl/typecheck-gcc.h
/usr/lib64/libcurl.so
/usr/lib64/pkgconfig/libcurl.pc
/usr/share/aclocal/libcurl.m4
*Omitting /usr/share/doc and /usr/share/man

Similar info from a working Ubuntu build:
Code:
[COLOR="Sienna"]$ dpkg --get-selections | grep curl|sort
curl install
libcurl3-gnutls install
libcurl3 install
libcurl3-nss install
libcurl4-openssl-dev install
python-pycurl install[/color]
and
Code:
[COLOR="Sienna"]$ dpkg -L libcurl4-openssl-dev 
/usr/lib/x86_64-linux-gnu/libcurl.a
/usr/lib/x86_64-linux-gnu/libcurl.la
/usr/lib/x86_64-linux-gnu/pkgconfig/libcurl.pc
/usr/include/curl/curl.h
/usr/include/curl/curlver.h
/usr/include/curl/easy.h
/usr/include/curl/mprintf.h
/usr/include/curl/stdcheaders.h
/usr/include/curl/multi.h
/usr/include/curl/typecheck-gcc.h
/usr/include/curl/curlbuild.h
/usr/include/curl/curlrules.h
/usr/share/aclocal/libcurl.m4
/usr/lib/x86_64-linux-gnu/libcurl.so[/COLOR]
*Also ommitting /usr/share/[doc||man]

These are also some potentially interesting differences:
Fedora 17:
Code:
# curl --version
curl 7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.24 libssh2/1.4.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz
Ubuntu 12.04:
Code:
[COLOR="sienna"]$ curl --version
curl 7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP [/COLOR]

My ultimate goal is to be able to offer the developer a diff patch making the code more platform independent, or possibly just a note in the readme to help F17 users get the right dependencies.

Thanks for reading this epic post:thumb:
4  Other / Beginners & Help / Re: Trust No One on: October 02, 2012, 03:04:52 AM
You can trust me. I don't feel like explaining why at this time, but you can.
5  Other / Beginners & Help / Re: I miss Dwolla on: October 02, 2012, 02:56:20 AM
I'm not understanding the Dwolla haters. Low fees, pretty quick transaction processing, seemingly ethical folks running the place. I've been using them since before I started this thread.

I guess I should ask, Why the hate?
6  Other / Beginners & Help / Re: I miss Dwolla on: August 04, 2011, 05:03:30 AM
Dwolla is still accepted by MtGox.

Dwolla is adding some extra requirements though (photo id), but has not raised fees AFAIK.
Oh! thank goodness for that!
7  Other / Beginners & Help / I miss Dwolla on: August 04, 2011, 04:40:38 AM
Ive been mining and speculating and trading for a couple of months now and one of the things that put me off were the janky intermediaries to get dollars into the markets.  Dwolla was really great with its low tx fees and direct access to my bank.  I had set up an account with LR but was disappointed to learn that the only way to fund my account was through an additional layer of Nigerian Donkey porn exchanges.  While paxum looks ok, the fees are too high IMO.  Some of the exchanges let you snail-mail checks to them but jeez that is so slow.

If a gov't wanted to squeeze bitcoin out of existence, I think this area would be the first target.
8  Other / Beginners & Help / Re: Introduce yourself :) on: July 06, 2011, 02:21:36 AM
please do so! and get some posts Smiley
don't be so negative, the 50-post-rule is there for a reason: to get rid of the trolls. NOT to piss newcomers off.

relax take it easy and smile. Cheesy
Yowzers! 50 posts!  I've been involved w/ the bitcoin for about a month now.  I'm really enjoying the project and admiring its resilience to the forces of outside haters. 
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!