1. Euphoria 4.0b3 on ARM
- Posted by rkdavis Aug 21, 2010
- 1410 views
A few months ago I was trying to port Euphoria to an ARM based device but as per normal when it didn't work first time (or the next 20 to 50 times) I got side tracked with other things and some other more important projects. One of which was porting OpenCOBOL to ARM based devices. I finished the other projects a couple of days ago and decided that between finishing those and starting some new ones i'd have another go at building Euphoria for ARM using what've learnt in the meantime.
One of my biggest stumbling blocks originally was that my target device uses uClibc, which seems to be the cause of alot of problems even with various patches and mods I made to the Euphoria source code. I got it to build eventually and run but it wouldn't accept any command line options. I suspect that the string handling functions are fubar'ed in the version of uClibc i was forced to use as it is very old.
So as I have had more success building for generic ARM and glibc/eglibc I decided to remove uClibc from the equation and build for glibc/eglibc.
To further simplify matters I decided to use my Scratchbox2 setup (I have written up how to set up scratchbox2 on my blog, although it is mostly about setting it up for my target device if you change all references to zubuntu to your target rootfs they are generic enough).
After setting up Scratchbox2, download (or build) the x86 linux binaries for Euphoria and put them in your path and then download and extract the Euphoria sources.
Follow the Euphoria build instructions but instead of make use sb2 -R make The build will error after a while building becallc_conly.c you need to edit the file and either remove the first 612 lines or the 2nd 612 lines and then restart the make with sb2 -R make again and after a while you will have ARM binaries in the build directory.
I've only done cursory tests but everything seems ok at least within scratchbox2. I can't currently test on a real ARM based device as I don't have one that is setup to use glibc/eglibc at the moment.
In theory the same process should work for any processer/toolchain that scratchbox2 supports which includes MIPS and Sparc...
I hope this is useful to someone.
Russell
2. Re: Euphoria 4.0b3 on ARM
- Posted by xfox26 Aug 21, 2010
- 1385 views
To further simplify matters I decided to use my Scratchbox2 setup (I have written up how to set up scratchbox2 on my blog, although it is mostly about setting it up for my target device if you change all references to zubuntu to your target rootfs they are generic enough).
When I try to check your blog I get a "You Are Banned" message. Why?
3. Re: Euphoria 4.0b3 on ARM
- Posted by rkdavis Aug 21, 2010
- 1338 views
You are either using a referer hider or you are coming from a country or IP block i've had trouble from before. If you don't come from china, pakistan, thailand or brazil then you are probably in the same IP block as a known spammer.
If you are using refhide or refblock or something similar you'll get blocked too and you should stop and that will fix it.
There is a possibility i made the banning script a bit too aggressive although I have had it tested from about 100 countries and ip blocks.
If you email me at my username on here at burninghorse.com i'll deban your ip address
4. Re: Euphoria 4.0b3 on ARM
- Posted by mattlewis (admin) Aug 23, 2010
- 1276 views
I've only done cursory tests but everything seems ok at least within scratchbox2. I can't currently test on a real ARM based device as I don't have one that is setup to use glibc/eglibc at the moment.
In theory the same process should work for any processer/toolchain that scratchbox2 supports which includes MIPS and Sparc...
I hope this is useful to someone.
I think this is definitely something we should pursue. Especially if you (or anyone else) can help / join the dev team in getting your changes merged into the official euphoria code. Currently, there's already a 64-bit port planned for 4.1 (at least, planned by me ), so this port would probably fit in 4.1 as well.
Matt
5. Re: Euphoria 4.0b3 on ARM
- Posted by rkdavis Aug 23, 2010
- 1247 views
I think this is definitely something we should pursue. Especially if you (or anyone else) can help / join the dev team in getting your changes merged into the official euphoria code. Currently, there's already a 64-bit port planned for 4.1 (at least, planned by me ), so this port would probably fit in 4.1 as well.
Matt
i'll definately help out where i can with the cross compile stuff.