Problem compiling/running on NFS/QNX6 (syntax error: `(' une

Hello!

We’re trying to compile a rather large program using a dozens of static
librairies (the final executable is over 1MB) on QNX6.1a and we’re
having some problems running our executable.

We seems to have isolated the problem with compiling on NFS since
compiling on the local hard drive works. Also, rebooting between the
compiling and the running seems to temporarily solve the problem.

The thing is, we thought we had solved the problem by using g++ instead
of QCC, but it has reappeared…

With QCC:

$ …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer[1]: syntax error: `(’ unexpected

With g++ (after correcting /usr/lib/gcc-lib/ntox86/2.95.2/specs):

$ …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer[1]: syntax error: `¯^D^H4p¹^M4’ unexpected

Has anyone ever seen this?

Thanks!


Ricky Ng-Adam, stagiaire laboratoire de robotique
(450) 652-8499 x 2757, local BR0.50
Hydro-Québec, Montréal, Canada

Ricky Ng-Adam <ng-adam.ricky@ireq.ca> wrote:

Hello!

Hello Ricky,


We’re trying to compile a rather large program using a dozens of static
librairies (the final executable is over 1MB) on QNX6.1a and we’re
having some problems running our executable.

We seems to have isolated the problem with compiling on NFS since
compiling on the local hard drive works. Also, rebooting between the
compiling and the running seems to temporarily solve the problem.

The thing is, we thought we had solved the problem by using g++ instead
of QCC, but it has reappeared…

With QCC:

$ …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer[1]: syntax error: `(’ unexpected

Did you compile did for the right target? I’m seeing this error if ie.
I’m trying to run shle binary on my x86 box. (what do you get from “file smServer”?)

Regards,

Marcin


With g++ (after correcting /usr/lib/gcc-lib/ntox86/2.95.2/specs):

$ …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer[1]: syntax error: `¯^D^H4p¹^M4’ unexpected

Has anyone ever seen this?



Thanks!


Ricky Ng-Adam, stagiaire laboratoire de robotique
(450) 652-8499 x 2757, local BR0.50
Hydro-Québec, Montréal, Canada

Ricky Ng-Adam <ng-adam.ricky@ireq.ca> wrote:
: Hello!
:
: We’re trying to compile a rather large program using a dozens of static
: librairies (the final executable is over 1MB) on QNX6.1a and we’re
: having some problems running our executable.
:
: We seems to have isolated the problem with compiling on NFS since
: compiling on the local hard drive works. Also, rebooting between the
: compiling and the running seems to temporarily solve the problem.
:
: The thing is, we thought we had solved the problem by using g++ instead
: of QCC, but it has reappeared…
:
: With QCC:
:
: $ …/bin/QNX6/Pentium/smServer
: …/bin/QNX6/Pentium/smServer[1]: syntax error: (' unexpected : : With g++ (after correcting /usr/lib/gcc-lib/ntox86/2.95.2/specs): : : $ ../bin/QNX6/Pentium/smServer : ../bin/QNX6/Pentium/smServer[1]: syntax error: ¯^D^H4p¹^M4’ unexpected
:
: Has anyone ever seen this?

Yes, I understand that the NFS daemon in Qnx6.1a attempts to keep track
of files based on an inode descriptor. Managed to get a new NFS daemon
from QNX which fixed the problem. I suspect that the problem is fixed
in Qnx6.2.

The problem would primarily appear after compiling - the inode of a binary
would have changed. Which makes sense. An easy way to verify is by
checking the usage message for the binary. The result is that files are
cross-linked.

use

You see that might link to and display the usage
message for that program.

use

Might linke to etc.

Hope this helps,


John O’Grady
Avvida Systems Incorporated.
:
: Thanks!
:
: –
: Ricky Ng-Adam, stagiaire laboratoire de robotique
: (450) 652-8499 x 2757, local BR0.50
: Hydro-Québec, Montréal, Canada

Hello John!

john.ogrady@focusautomation.com wrote:

Yes, I understand that the NFS daemon in Qnx6.1a attempts to keep track
of files based on an inode descriptor. Managed to get a new NFS daemon
from QNX which fixed the problem. I suspect that the problem is fixed
in Qnx6.2.

The problem would primarily appear after compiling - the inode of a binary
would have changed. Which makes sense. An easy way to verify is by
checking the usage message for the binary. The result is that files are
cross-linked.

Well, I think that you’ve pointed out the correct problem; I could
easily demonstrate it to myself by restarting the NFS daemon…

$ file …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer: ELF 32-bit LSB executable, Intel 80386,
version 1, statically linked, not stripped
$ …/bin/QNX6/Pentium/smServer
…/bin/QNX6/Pentium/smServer[1]: syntax error: `¯^D^H4^P$[^M4’
unexpected
$ su

/etc/rc.d/rc.local

…/bin/QNX6/Pentium/smServer

Initializing DMM32AT driver
DMM32AT revlevel 48
Laser0 initialized

I’ll see if upgrading to QNX6.2 will solve the problem…

Meanwhile, did your daemon come from a public web site that I could get
a link to? :wink:

Thanks!


Ricky Ng-Adam, stagiaire laboratoire de robotique
(450) 652-8499 x 2757, local BR0.50
Hydro-Québec, Montréal, Canada

Ricky Ng-Adam <ng-adam.ricky@ireq.ca> wrote:

:
: Meanwhile, did your daemon come from a public web site that I could get
: a link to? :wink:

The daemon (x86 only) came directly from QNX.


John O’Grady
Avvida Systems Incorporated.

:
: Thanks!
:
: –
: Ricky Ng-Adam, stagiaire laboratoire de robotique
: (450) 652-8499 x 2757, local BR0.50
: Hydro-Québec, Montréal, Canada