Discussion:
old programming on ppc
(too old to reply)
s***@gmail.com
2008-01-05 16:02:03 UTC
Permalink
Hi,
I try using gambas and opencobol on my powerpc
but I have error.... it is impossible

do you know other old programming language that works on this arch ?


thankyou
Jerry Heyman
2008-01-05 16:41:15 UTC
Permalink
Post by s***@gmail.com
Hi,
I try using gambas and opencobol on my powerpc
but I have error.... it is impossible
do you know other old programming language that works on this arch ?
If you consider Pascal in that category, you might look into the
Free Pascal Compiler

http://sourceforge.net/project/showfiles.php?group_id=2174

Please define old programming language if Pascal doesn't cut it.
Post by s***@gmail.com
thankyou
jerry
--
// Jerry Heyman | "Software is the difference between
// Amiga Forever :-) | hardware and reality"
\\ // ***@acm.org |
\X/ http://bellsouthpwp.net/h/e/heymanj/
s***@gmail.com
2008-01-05 16:48:51 UTC
Permalink
Post by Jerry Heyman
Please define old programming language if Pascal doesn't cut it.
I mean: basic or cobol



thankyou
s***@gmail.com
2008-01-05 16:50:30 UTC
Permalink
I try opencobol : result not working

I try gambas: I have segm. fault
Jerry Heyman
2008-01-05 19:46:52 UTC
Permalink
Post by s***@gmail.com
I try opencobol : result not working
Have you tried to compile the example program using:

$ cob -C hello.cob

This will result in a .c source file that you can then look at.
If you get this far successfully, then the issue is the C compiler,
not open cobol.

I'm going to fire up my linux on powerpc (powermac g3 running YDL 4.0)
and see if I can make open cobol work.
Post by s***@gmail.com
I try gambas: I have segm. fault
what version of linux on powerpc are you running?

'uname -a' or 'cat /etc/*-release'

jerry
--
// Jerry Heyman | "Software is the difference between
// Amiga Forever :-) | hardware and reality"
\\ // ***@acm.org |
\X/ http://bellsouthpwp.net/h/e/heymanj/
Jerry Heyman
2008-01-06 03:43:51 UTC
Permalink
Post by Jerry Heyman
Post by s***@gmail.com
I try opencobol : result not working
$ cob -C hello.cob
This will result in a .c source file that you can then look at.
If you get this far successfully, then the issue is the C compiler,
not open cobol.
I'm going to fire up my linux on powerpc (powermac g3 running YDL 4.0)
and see if I can make open cobol work.
Just finished building/installing open-cobol-1.0 on my YDL 4.0
system:

$ uname -a
Linux pmac.hobbeshollow.com 2.6.8-1.ydl.7 #1 Fri Oct 1 09:28:52 CEST 2004
ppc ppc ppc GNU/Linux
$ ls -l /etc/*release*
-rw-r--r-- 1 root root 37 May 21 2004 /etc/yellowdog-release
$ cat /etc/yellowdog-release
Yellow Dog Linux release 4.0 (Orion)

Open-cobol-1.0 compiled without any issues, and installed perfectly.
I then compiled the same sample I did with the intel version - got
a working executable ('Hello World') and then used the -C option to
see the source code.

$ rpm -qa | grep gcc
gcc-3.3.3-16.ydl.4
libgcc-3.3.3-16.ydl.4
gcc-c++-3.3.3-16.ydl.4

Since I'm successfully working, I do not know what to tell you.
Post by Jerry Heyman
Post by s***@gmail.com
I try gambas: I have segm. fault
what version of linux on powerpc are you running?
'uname -a' or 'cat /etc/*-release'
jerry
jerry
--
// Jerry Heyman | "Software is the difference between
// Amiga Forever :-) | hardware and reality"
\\ // ***@acm.org |
\X/ http://www.hobbeshollow.com/jerry.html
s***@gmail.com
2008-01-06 11:21:39 UTC
Permalink
this are my post

opencobol
http://www.opencobol.org/modules/newbb/viewtopic.php?topic_id=169&forum=1

gambas
http://www.linuxbasic.net/index.php?topic=341.0
s***@gmail.com
2008-01-06 11:31:50 UTC
Permalink
I have archlinux

with gcc 4

Linux powerpc-linux-gnu 2.6.23-ARCH #1 Fri Oct 19 16:14:36 UTC 2007
ppc 7447A, altivec supported PowerMac10,1 GNU/Linux
tortoise
2008-01-07 06:27:54 UTC
Permalink
Post by s***@gmail.com
I have archlinux
with gcc 4
4.what ? 4.1 is stable, 4.2 is testing
Post by s***@gmail.com
Linux powerpc-linux-gnu 2.6.23-ARCH #1 Fri Oct 19 16:14:36 UTC 2007
ppc 7447A, altivec supported PowerMac10,1 GNU/Linux
that's a testing release it could be buggy.

if you are interest in old stuff, suggest you install a stable
release.

ydl4. is about like debian sarge i think.

you can maybe run the older release with mac-on-linux (that boots
linux too not just macos) if you don't want to dual boot. still,
its good to have a stable release on hand with testing/unstable
in case of a major problem (they do occurr).
s***@gmail.com
2008-01-07 10:24:58 UTC
Permalink
strange

in archlinux gcc 4.2.2 is in stable, but there is a gcc3-3.3.6-1 too

is possible have 2 gcc and use gcc3 only on opencobol ?
s***@gmail.com
2008-01-07 11:10:51 UTC
Permalink
oh it works

with -x parameter it works



thankyou

and

sorry
I R A Darth Aggie
2008-01-07 15:28:49 UTC
Permalink
On Mon, 7 Jan 2008 02:24:58 -0800 (PST),
+ is possible have 2 gcc and use gcc3 only on opencobol ?
Yes. You can specify which gcc to use from the environmental variable
CC:

export CC=gcc-3

or by just calling it explicitly:

gcc-3 whatever.c
--
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
Loading...