[CCC DEV] AVR crossbuild fail on 64 bit

Matt Jadud matt at jadud.com
Tue May 21 16:46:59 BST 2013

Hi Marino,

The sources are in Github:


When I did a native build (not a cross build), I configured as follows:

CFLAGS=-fPIC ./configure --with-toolchain=tvm --prefix=<choose target

The build instructions for crossbuild I'm following are here:


and that is failing somewhere that I don't think it should. But, I'm going
to go back and check to see if I have any success on 32-bit before I dig
deeper. I don't want to chase a bug on 64-bit if it exists on 32-bit as


On Tue, May 21, 2013 at 11:31 AM, Marino Punturieri <mapunt at gmail.com>wrote:

> Hi Matt,
> II would like to give a try on 64-bit platforms.
> Could you please tell me where I can find latest source code and from what
> you think I can start?
> Thanks,
> Marino
> On Tue, May 21, 2013 at 5:26 PM, Matt Jadud <matt at jadud.com> wrote:
>> Hi all,
>> As far as I'm concerned, our project doesn't work.
>> 1. I don't think a TVM build on a 64-bit machine works. Even with -fPIC,
>> the tvm segfaults out on most tests. I may have done something wrong,
>> though.
>> 2. A cross-build fails, implying to me that something in the chain is
>> broken. I don't know if that is a compiler oddity, or something simpler and
>> more superficial.
>> /home/jadudm/build/arduino-kroc/obj-avr/tools/kroc/occbuild --in-tree
>> /home/jadudm/build/arduino-kroc/obj-avr --toolchain=tvm --search ../maths
>> --no-std-libs --library forall.lib danalyse.tce ie32op.tce ranalyse.tce
>> ridiv.tce rimul.tce qridiv.tce qrimul.tce qshiftl.tce qshiftr.tce qnorm.tce
>> Serious-ilibr-danalyse.tce-could not open for reading
>> I'll try and trace it down, but (as usual) I'm trying to get things
>> working so I can do work, now, with students. (Invariably, I'm never doing
>> this in a reasonable way, months in advance, because I don't think life
>> works that way.)
>> My solution is going to be to set up a 32-bit VM, and hope that I can do
>> a clean build there. I'm simply reporting that I am pursuing what I hope
>> will be a faster path to a working system.
>> If anyone gets bored, and wants to try and help me get a working build on
>> 64-bit platforms, that would be great. A "working build" means "we can run
>> kroc, the TVM, and do an Arduino cross-build."
>> Cheers,
>> Matt
>> _______________________________________________
>> developers mailing list
>> developers at concurrency.cc
>> http://lists.concurrency.cc/mailman/listinfo/developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/developers/attachments/20130521/9fa23461/attachment.htm>

More information about the developers mailing list