
Folks - I just recently (last night) did a darcs get of the yhc-devel source and tried to build it on a FreeBSD system. I ran into a couple of small problems, easily solved. It should be easy to tweak the config/make setup to work with BSD systems, which put "external" libraries (like gmp) in /usr/local. The issue is that autoconf+configure and gcc aren't looking in /usr/local/{include,lib} for the libgmp stuff (gmp.h and the libraries). I have gmp 4.1.4 installed - probably because I installed GHC - so I was surprised that libgmp wasn't being discovered. I couldn't figure out - in the time that my patience allowed - how to make autoconf do the right thing so I simply commented out the configure checks (which were bombing out and claiming I didn't have a gmp library) and added -I/usr/local/include to CFLAGS and -L/usr/local/lib to LDFLAGS (in yhc-devel/src/runtime/BCKernel/Makefile), and added "-lgmp" to LIBS in the toplevel Makefile.inc. I was able to build everything (using "gmake" - what GNU make is called on BSD systems), and ran "gmake tests" and got 51/51 passes. Hope this helps, - David -- Life's better on two wheels. http://nimblemachines.com/browse?name=cycl

On 3/16/06, David Frech
The issue is that autoconf+configure and gcc aren't looking in /usr/local/{include,lib} for the libgmp stuff (gmp.h and the libraries).
/usr/local is also a standard location under Linux so configure should have been looking there. I'm not really sure where exactly to look to change that, but I have been playing around trying to replace the seperate Windows/Unix build scripts and the evil autoconf/automake hackery by replacing them with scons. Currently I've got as far as generating config.hand building yhi and yhc. I just need to try and build the library now. I haven't talked to Tom about whether he's actually interested in replacing automake/autoconf but assuming he is I'll ensure the new build scripts look in the right place :-) Andrew
participants (2)
-
Andrew Wilkinson
-
David Frech