Page 1 sur 1

xcas over debian armel error

Publié : mar. janv. 03, 2012 2:28 pm
par falaco_maths
I've been searching over the forum but found no reference to this bug. I have installed giac/xcas over a debian chroot in my flytouch3 tablet (ARMv6-compatible processor: IMAPX200 cpu). Everything worked perfectly (I even have xserver) but xcas/giac is keeping giving the same error "Illegal instruction". I have tried both versions available under "http://www-fourier.ujf-grenoble.fr/~par ... ary-armel/"

Do you have any idea on what's happening?

For now I can stay using wxmaxima, but surely xcas would be much faster ;-)

Re: xcas over debian armel error

Publié : mar. janv. 03, 2012 5:44 pm
par parisse
Perhaps it's because I compiled using an arm v7 processor. Does icas also return Illegal instruction? Does it happen on every instruction or only some selected ones? (e.g. does 2+2 work?)

Re: xcas over debian armel error

Publié : mar. janv. 03, 2012 8:20 pm
par falaco_maths
giac/icas and xcas: everything gives the same error "Illegal instruction" without even starting, so I can't try any command.

I think the problem should be as you suggested: arm v7 has newer instruction set, not backward compatible with my processor.

Is it very difficult to recompile xcas/giac from source? Maybe I can try it inside my chroot (although I imagine it would take ages!). Or maybe you can consider to check your compilation flags ...

Anyway, thank you for your fast response! And thank you for Xcas too!

Best

Re: xcas over debian armel error

Publié : mar. janv. 03, 2012 9:02 pm
par parisse
Do you know the -m flag for gcc to force armv6 compatible compilation? I could try to compile with it next time (but it probably requires to recompile all the required libraries).
Otherwise, yes you can try to compile yourself, but it will take long. I need about 5 hours to compile the giac debian package on my hercules e-cafe (arm at 800Mhz), and you must add the time required to recompile all the required libraries (you can first try to compile with GMP support only).

Re: xcas over debian armel error

Publié : mar. janv. 03, 2012 10:11 pm
par falaco_maths
I see... No, I have never compiled against ARM architecture. I have found this, in any case: http://www.riscosopen.org/wiki/document ... y%20primer: seems that old gcc versions produce incompatible code. Just guessing...

5 hours is a lot, definitely (my processor is also 800MHz by the way). I'll let you know how it goes if I find time ...and courage!

Thank you again

Re: xcas over debian armel error

Publié : mer. janv. 04, 2012 8:57 pm
par parisse
It seems the option is -march= one of `armv6', `armv6j', `armv6t2', `armv6z', `armv6zk', `armv6-m'
Or -mcpu= one of the following
`arm2', `arm250',
`arm3', `arm6', `arm60', `arm600', `arm610', `arm620', `arm7',
`arm7m', `arm7d', `arm7dm', `arm7di', `arm7dmi', `arm70', `arm700',
`arm700i', `arm710', `arm710c', `arm7100', `arm720', `arm7500',
`arm7500fe', `arm7tdmi', `arm7tdmi-s', `arm710t', `arm720t',
`arm740t', `strongarm', `strongarm110', `strongarm1100',
`strongarm1110', `arm8', `arm810', `arm9', `arm9e', `arm920',
`arm920t', `arm922t', `arm946e-s', `arm966e-s', `arm968e-s',
`arm926ej-s', `arm940t', `arm9tdmi', `arm10tdmi', `arm1020t',
`arm1026ej-s', `arm10e', `arm1020e', `arm1022e', `arm1136j-s',
`arm1136jf-s', `mpcore', `mpcorenovfp', `arm1156t2-s',
`arm1176jz-s', `arm1176jzf-s', `cortex-a5', `cortex-a8',
`cortex-a9', `cortex-r4', `cortex-r4f', `cortex-m4', `cortex-m3',
`cortex-m1', `cortex-m0', `xscale', `iwmmxt', `iwmmxt2', `ep9312',
`marvell-f'
Any of this option that seems more suitable according to your hardware?

Re: xcas over debian armel error

Publié : jeu. janv. 05, 2012 8:59 pm
par falaco_maths
According to the page of the manufacturer (http://www.infotmic.com/cn/products_xpxx3.asp) it seems to be the `arm1136jf-s' mcpu flag.

Not sure about the -march option, probably the basic 'armv6' would also work, but I find safest the mcpu one.