HOME  NEWS  FORUM  DOWNLOAD  LINK
OpenCOBOL - an open-source COBOL compiler
Main Menu
Download
Documentation
Development
Who's Online
11 user(s) are online (7 user(s) are browsing Forum)

Members: 1
Guests: 10

giacomo, more...
Powered by
SourceForge

Xoops

Creative Commons

OpenCOBOL Forum Index
   OpenCOBOL
     building OC in scratchbox (for ARM)
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
rkdavis
Posted on: 2010/7/23 12:19
Just popping in
Joined: 2010/7/23
From:
Posts: 13
building OC in scratchbox (for ARM)
Hi,

I want to use OC compiled binaries on a small ARM (pxa270) based device so I downloaded OC 1.1pre and tested it in my x86 vm and after a couple of lib problems (needing the BDB -dev package installed) everything went fine and it passed all the tests from make check. when I then tried it inside my scratchbox vm and fixed the library problems (needed build and install BDB) it built ok but when running the tests it pretty much failed every one )it did pass a few but not many and nothing to do with intrinsics etc. )

There could be quite a few reasons, almost certainly something like the fact that the toolchain produces uClibc based binaries (or maybe not)

Has anyone had any success building OC for an uClibc based ARM system?

[i need to try to get OC 1.1pre working correctly because I need the ncurses SCREEN stuff if I can get it working and I believe that isn't available in 1.0 unless i misread the docs]

Thanks
Russ
rkdavis
Posted on: 2010/7/25 22:58
Just popping in
Joined: 2010/7/23
From:
Posts: 13
Re: building OC in scratchbox (for ARM)
Just an update.

I did some fiddiling and tweaking with my development environment and a bit of twiddiling with OC and I now have it building OC and it is passing all tests other than 8. ANNUITY, EXP, SQRT and TAN fail twice and looking at the logs it looks like it's just the last few digits to the right of the decimal point that are causing the failures. Not exactly sure why but I suspect that it's qemu that might be the problem here. I'm not sure i'd use OC on a ARM based production server but it's good enough for now and might actually be ok for simple data entry.

Russ
human
Posted on: 2010/7/26 6:21
Home away from home
Joined: 2007/5/15
From:
Posts: 958
Re: building OC in scratchbox (for ARM)
Hi Russ!

Please submit the changes you've made in OC sources here (using code tags). I'll have a look if we can take some/all of the changes into next OC tarball.

Please submit a short guide "how to build, test and use OC in scratchbox (for ARM)", together with a guide how to set up qemu for this environment for others being able to test this, too.

Thank you,
human
rkdavis
Posted on: 2010/7/26 15:43
Just popping in
Joined: 2010/7/23
From:
Posts: 13
Re: building OC in scratchbox (for ARM)
I've reverted the changes I made because it turns out they weren't needed after all although the 4 failures do need to be looked at eventually so really all I need to write up is the scratchbox configuration and setup.

I'll do that in a couple of days as I want to try compiling OC under aboriginal linux as if that works at least as well as with scratchbox it opens up the possibility of building OC for any processor qemu currently supports, although I think I have seen Sparc binaries somewhere on the OC website somewhere (the faq i believe) and i'd also like to give building OC using glibc and eglibc as well. Currently i'm using an extremely old toolchain and old uClibc as the device i'm targeting (the ZipitZ2 http://linux.zipitwireless.com) is uClibc based (and the a really old version too) unless you upgraded the bootloader and/or the kernel from the stock one.

I really haven't looked at OC properly because i've been spending all my time with it trying to get it built and running but am I correct in thinking that I could use an x86 cobc to build ARM binaries as long as I have an apporpriate gcc cross toolchain and an arm libcob.so?

Russ
human
Posted on: 2010/7/26 19:48
Home away from home
Joined: 2007/5/15
From:
Posts: 958
Re: building OC in scratchbox (for ARM)
This could work but it's likely that you have to change the entries from defaults.h via environment or even have to change the entries in defaults.h on compiling the cobc stuff (maybe the config.h entries for libcob, too).

human
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 
Copyright (C) 2005 The OpenCOBOL Project. All rights reserved.
Powered by Xoops2 | PHP | MySQL | Apache
ocean-net