Bitcoin Forum
July 05, 2024, 06:14:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2]
21  Other / Beginners & Help / Re: Compile BFGMiner on Pogoplug (Arch Linux) on: October 03, 2012, 09:20:57 PM
My autotools skills aren't so great, and I'd appreciate any input in how it could be improved.

I poked around with things for the fun of it and because there are other things I should be doing Smiley  It's been a long time.  As best I can tell, this is an issue with config.guess/config.sub and probably not much you could/should reasonable do about it as the maintainer (unless you want to hack the auto-tools distro which is not very maintainable.)

Many of these tools can be run individually, and it seems like this is the crack-up:

  ~/work/bfgminer/bfgminer-2.8.1$ /bin/sh -x ./config.sub armv6l-unknown-linux-eabihf

config.[sub|guess] seem to not be up to date with regards to -eabi and parsing it out, but you've got a pretty recent version in your 2.8.1 distro.

The OP could use a flag to force acceptance of the string (produced by ./config.guess) but it sounds like he's got things going (not sure why given the issue...maybe his distro has an even newer auto-tools..., but oh well.)

22  Other / Beginners & Help / Re: Compile BFGMiner on Pogoplug (Arch Linux) on: October 03, 2012, 05:36:26 PM
...
Quote
That's hopeful, and probably useful info to someone trying to build the code.  Do you know what OS's they might have been running?
I presume whatever RPi ships with.

I've not used the hardware but it wikipedia says that a number of OS's are ported to it including Arch Linux.

The guy's initial attempt (with ./configure presumably from the release) crashed in platform recognition.  Ideally the user could trust that message to indicate whether the platform is supported, but it's understandable if/when it cannot be 100% reliable.  Much of the time (imho) when there is a failure here, the maintainer has simply not leveraged the autoconf system to it's potential.
Possible... but Google has never heard of armv6l-unknown-linux-eabihf either, so not sure what I can do there.


IIRC (and it's been many years since I messed with this stuff) there is a file which is part of one of the auto-tools which tools to perform platform analysis and one which contains data to interpret the output.  I believe that it is possible to recognize particular parts of this output which are of interest to the rest of the configure system rather than to crash when there is a failure to do a complete match.

IIRC, the files which do this analysis are bundled with the distribution being cut so as long as the code maintainer is the one generating the configure system he/she can be up-to-date with his/her autoconfiguration generation tools and the end-user does not have to be.  Of course all bets are off if the end-user is trying to generate the autoconfiguration in his/her environment (when trying to build from HEAD, for instance, or correct an input file deficiency or whatever.)

23  Other / Beginners & Help / Re: Compile BFGMiner on Pogoplug (Arch Linux) on: October 03, 2012, 04:22:13 PM
I noticed nothing in a scan of the README (though I was looking for 'arm' and not 'mips' which was a mistake since I've not done this kinds of stuff in a while) and noticed no assembly for anything but x86's.  But it is not unheard of for people to optimize for an architecture with assembly while supporting other architectures with compiled code.  And also common to build a sub-set of functionality on less well supported architectures.  That's why I said 'or at least not fully.
Assembly is only used (optionally) for CPU mining, though that does support both x86 (SSE) and PowerPC (Altivec). CPU mining is mostly pointless, though, so I wouldn't consider other platforms really "less" supported.

But, since you are here, is it known that the code should work on his platform, or is he blazing trails in trying to get it going?
I know a number of users have had success on Raspberry Pi, at least.

That's hopeful, and probably useful info to someone trying to build the code.  Do you know what OS's they might have been running?

The guy's initial attempt (with ./configure presumably from the release) crashed in platform recognition.  Ideally the user could trust that message to indicate whether the platform is supported, but it's understandable if/when it cannot be 100% reliable.  Much of the time (imho) when there is a failure here, the maintainer has simply not leveraged the autoconf system to it's potential.

One way or another, at least your code has an autoconfiguration system.  Last time I looked bitcoind did not which was a disappointment to me.

24  Other / Beginners & Help / Re: Compile BFGMiner on Pogoplug (Arch Linux) on: October 03, 2012, 03:54:12 PM
First though I would also suggest that you verify that the software you are trying to build has a hope of compiling under ARM else you might end up spending a lot of time on something which will be very difficult to achieve.  It is not at all uncommon for source code to need significant porting to run on different architectures (i.e., ARM vs. x86) and it not to have been done.  A cursory glance at the project indicates to me that it probably does not, or at least not fully.
What makes you think that? ARM isn't all that different from x86, and I've put some effort into ensuring it's portable even to big-endian architectures like MIPS.

I noticed nothing in a scan of the README (though I was looking for 'arm' and not 'mips' which was a mistake since I've not done this kinds of stuff in a while) and noticed no assembly for anything but x86's.  But it is not unheard of for people to optimize for an architecture with assembly while supporting other architectures with compiled code.  And also common to build a sub-set of functionality on less well supported architectures.  That's why I said 'or at least not fully.'

But, since you are here, is it known that the code should work on his platform, or is he blazing trails in trying to get it going?

25  Other / Beginners & Help / Re: [POLL] Barack Obama Vs. Mitt Romney 2012 US presidential elections on: October 03, 2012, 07:56:10 AM

It was pretty obvious to me several years ago that Obama was going to win and 'they' would run someone unelectable against him.  It was a disaster when the Dems had house/senate/executive because they had no excuse not to get anything done.  But they made up a bunch anyway ("oh golly...we need 60%...shucks, can't do it") and with the help of the media the peeps bought it lock/stock/barrel.  Obama has been the best friend to the bankers so of course he was going to win.

I'm planning to write-in Elizabeth Warren.  Maybe she'll get the message and run for prez next time around.

26  Other / Beginners & Help / Re: Compile BFGMiner on Pogoplug (Arch Linux) on: October 03, 2012, 06:57:50 AM
Ok so I am installing bfgminer-git through yaourt now. I am now stuck at this point (see code below). Oh BTW I have been editing the PKGBUILD file to remove the opencl dependency and add the --disable-opencl flag to autogen.sh.

Code:
Running autoreconf -if...
configure.ac:12: installing './ar-lib'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:1:   its definition is in aclocal's search path.
Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1

Is this something I should should be fixing on my system (such as a system variable?) or in the source code?

Although I am unfamiliar with Arch, it looks to me like you may be missing at least 'libtool', or there is something missing in the environment of the user who is compiling (like the PATH to find libtool.)  If you are using a release (vs. the development head) than it would be unfortunate and unexpected that you would need to execute autoconf, though it is common enough if you are on an unexpected platform where the developers don't normally work (and you know how do manipulate configure.ac files and such which is not always trivial.)

Usually one of the steps in cutting a release for the maintainer to execute aclocal and autoconf themselves which generate a portable configuration system which the end-user uses (e.g., ./configure) and that is why I distinguish between HEAD and a release branch in my comment.

I would suggest you start out by verifying that the libtool package is installed on your system.

First though I would also suggest that you verify that the software you are trying to build has a hope of compiling under ARM else you might end up spending a lot of time on something which will be very difficult to achieve.  It is not at all uncommon for source code to need significant porting to run on different architectures (i.e., ARM vs. x86) and it not to have been done.  A cursory glance at the project indicates to me that it probably does not, or at least not fully.

27  Other / Beginners & Help / Re: Introduce yourself :) on: October 03, 2012, 03:37:38 AM

Sock Puppet of ~tvbcof to use when I cannot control myself and refrain from being an immature prick.

Pages: « 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!