PhAB won't generate code

On one of our systems, PhAB won’t generate code. It gives the error
“Command ‘cp -X //5/qnx4/phtk/appbuilder/codelib/Usemsg (my directory
here)’ failed.” But it works fine on another machine. Any ideas?

Meredith Dill
mdill@aseco.com

Meredith Dill <mdill@aseco.com> wrote:

On one of our systems, PhAB won’t generate code. It gives the error
“Command ‘cp -X //5/qnx4/phtk/appbuilder/codelib/Usemsg (my directory
here)’ failed.” But it works fine on another machine. Any ideas?

Did you try running that command from a shell?


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

yes, and it doesn’t make a difference. It doesn’t seem to care if
Usemsg exists in my directory.

Meredith

Wojtek Lerch wrote:

Meredith Dill <> mdill@aseco.com> > wrote:
On one of our systems, PhAB won’t generate code. It gives the error
“Command ‘cp -X //5/qnx4/phtk/appbuilder/codelib/Usemsg (my directory
here)’ failed.” But it works fine on another machine. Any ideas?

Did you try running that command from a shell?


Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.

Meredith Dill <mdill@aseco.com> wrote:

Wojtek Lerch wrote:
Did you try running that command from a shell?
yes, and it doesn’t make a difference. It doesn’t seem to care if
Usemsg exists in my directory.

But you don’t get any error messages, right?

The error message PhAB gives you means that “cp” returned exit code 1.
Whan we need to find out is why cp returned exit code 1…

If you exit from Photon, can you see any error messages from “cp” on
your text-mode console?

Your directory doesn’t happen to contain any spaces in its pathname, does it?


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Wojtek Lerch wrote:

Meredith Dill <> mdill@aseco.com> > wrote:
Wojtek Lerch wrote:
Did you try running that command from a shell?
yes, and it doesn’t make a difference. It doesn’t seem to care if
Usemsg exists in my directory.

But you don’t get any error messages, right?
Right.



The error message PhAB gives you means that “cp” returned exit code 1.
Whan we need to find out is why cp returned exit code 1…

If you exit from Photon, can you see any error messages from “cp” on
your text-mode console?

do you mean on the pterm window? No. And the directory does not have
any spaces, either.

Your directory doesn’t happen to contain any spaces in its pathname, does it?


Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.

Meredith Dill <mdill@aseco.com> wrote:

Wojtek Lerch wrote:
Meredith Dill <> mdill@aseco.com> > wrote:
Wojtek Lerch wrote:
Did you try running that command from a shell?
yes, and it doesn’t make a difference. It doesn’t seem to care if
Usemsg exists in my directory.

But you don’t get any error messages, right?
Right.

The error message PhAB gives you means that “cp” returned exit code 1.
Whan we need to find out is why cp returned exit code 1…

If you exit from Photon, can you see any error messages from “cp” on
your text-mode console?

do you mean on the pterm window? No. And the directory does not have
any spaces, either.

No, I mean on your text-mode console, after you have exited from Photon.
You don’t have any pterm windows on your screen after you have exited
from Photon, do you? :wink:

I was assuming that you start PhAB from pdm or from pwm.menu. If you
start PhAB from a pterm, any error messages from cp should be visible in
that pterm. PhAB doesn’t redirect cp’s stderr.

\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

ah, that would be the problem. I start it from the toolbar.

No, I mean on your text-mode console, after you have exited from Photon.
You don’t have any pterm windows on your screen after you have exited
from Photon, do you? > :wink:

I was assuming that you start PhAB from pdm or from pwm.menu. If you
start PhAB from a pterm, any error messages from cp should be visible in
that pterm. PhAB doesn’t redirect cp’s stderr.


Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.