newbie: gcc and ppc

  • Thread starter FAULKNER,JOHN B.
  • Start date
F

Thread Starter

FAULKNER,JOHN B.

just jumping in head first here.
i just stumbled upon puffinplc this week.
i been putting it thru the paces on various hardware to get a feel for what works best.

1. I've got a newer system which is running Mandrake 8.0. compiling a demo yields this.

gmm.c: In function 'plc_pt_details':
gmm.c:714: Internal compiler error in instantiate_virtual_regs, at
funtion.c:3985

I'm assuming this is due to the non standard gcc 2.96 included in the distro. any thoughts?

2. i'd like to know the direction of the project.
is the intent to concentrate on x86? has anyone
successfully run puffinplc on ppc hardware?


Jack Faulkner
Process Controls Engineer
Air Products and Chemicals Inc.

+
_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
B

Bjorn Lundberg

"FAULKNER,JOHN B." wrote:
>
> 1. I've got a newer system which is running Mandrake 8.0.
> compiling a demo yields this.
>
> gmm.c: In function 'plc_pt_details':
> gmm.c:714: Internal compiler error in instantiate_virtual_regs, at
> funtion.c:3985

I'm using Redhat 7.1 and came up with the same error (as I recall). Commenting some stuff out I got it thru the compiler but got some really
weard runtime errors. Turning off optimization (-O2 and -O3) solved both the compiler and
runtime errors. I'm just evaluating LinuxPLC so I did no effort to find the reasons. My aim was just to kill the symptoms.

Cheers
Bjorn

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
FAULKNER,JOHN:
> gmm.c: In function 'plc_pt_details':
> gmm.c:714: Internal compiler error in instantiate_virtual_regs, at
> funtion.c:3985

> I'm assuming this is due to the non standard gcc 2.96 included in the
> distro. any thoughts?

As Björn wrote, get rid of the -O3 in the Makefile (that'd be the lib/gmm Makefile) - you can try changing it to -O2 or remove it altogether.

It's the line just above the comment that says "Note: if the optimizer crashes, we'll leave out the -O3 for those files".

> 2. i'd like to know the direction of the project. is the intent to
> concentrate on x86? has anyone successfully run puffinplc on ppc
> hardware?

I don't think anyone's tried it yet, but it should run on the ppc. So if it doesn't, it's a bug - please let us know.


Jiri
--
Jiri Baum <[email protected]>
"In my opinion, the GPL is optimized to build a strong software community at the expense of a strong commercial software business model."
--Craig Mundie, Senior VP, Microsoft; 17 May 2001

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
F

FAULKNER,JOHN B.

Jiri Baum:

> FAULKNER,JOHN:
> > gmm.c: In function 'plc_pt_details':
> > gmm.c:714: Internal compiler error in instantiate_virtual_regs, at
> > funtion.c:3985
>
> > I'm assuming this is due to the non standard gcc 2.96
> included in the
> > distro. any thoughts?
>
> As Björn wrote, get rid of the -O3 in the Makefile (that'd be
> the lib/gmm

yup, that did the trick.

> It's the line just above the comment that says "Note: if the optimizer
> crashes, we'll leave out the -O3 for those files".
>
> > 2. i'd like to know the direction of the project. is the intent to
> > concentrate on x86? has anyone successfully run puffinplc on ppc
> > hardware?
>
> I don't think anyone's tried it yet, but it should run on the
> ppc. So if it
> doesn't, it's a bug - please let us know.

good news

i just tried this on yellowdog 2.0 on apple hardware(blue and white G3). yellowdog didn't install the console-tools-devel package by default. after installing that, the demo compiled nicely.

when running the basic demo i get this error:
Error initializing the plc.
KDSKBMODE: Operation not permitted.
after that my xterm gets wacky and i have to reset it.

the basic_il demo seems to run fine! i haven't tried the others yet.

thanks,

Jack Faulkner
Process Controls Engineer
Air Products and Chemicals Inc.
 
Top