I've recently decided being totally inept on Slack was not enough, so
needed another outlet to flog myself over. Anyway, got all the
Arduino pkgs (ide/libs) from slacky and bought some hardware from that
hottie from NY, Ladyada. All looked good, hardware working OK, until
I got to compiling a program (blink sketch) in the ide and got errors.
I'll copy what I've already posted on their forum:
==========
/usr/lib/gcc/avr/4.3.3/../../../../avr/bin/ld: skipping incompatible
/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr5/libm.a when searching
for -lm
/usr/lib/gcc/avr/4.3.3/../../../../avr/bin/ld: skipping incompatible
/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/libm.a when searching for
-lm
/usr/lib/gcc/avr/4.3.3/../../../../avr/bin/ld: cannot find -lm
Slocate shows all these file do, in fact, exist and in the indicated
locations (directories). I changed permissions on both libm.a and
libm.s to 777. The ld file is already 755. I retried compile. No
joy.....
===========
So, their support suggested in was all slack's fault, but I can't buy
that, slack having the most stable vanilla pkgs/libs around.
First of all, what is "-lm"? I thought it was an option, what with
the hyphen. Turns out google posted error shows a variation "cannot
find -ls". Are these files? Binaries like ld? A page on google from
a gentoo user said it is a linker problem and goes into a buncha info
on chain tools and enabling multilib and symlinking a buncha files,
etc. A translated page from slacky (that google trasnlate thingie
works pretty damn good!!) has all kindsa confusing garbage about
mixing 64bit and 32bit files and older and newer versions. I also
found a blog page about arduino on slackware, but it's outdated and
doesn't seem to address my prob.
I guess I'll try
slackbuilds.org pkgs as they compile against existing
hardware and see if that helps. Also found the original avr
linux/unix lib/tools page to wade through. Short of that, do any
slack arduino users have some insights?
TIA
nb
--
Fight internet CENSORSHIP - Fight SOPA-PIPA
Contact your congressman and/or representative, now!
http://projects.propublica.org/sopa/
vi --the heart of evil!