Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - crt1.o: (16 Items)
   
crt1.o  
Hello
I developp an application, and when I want to compil it, i have this message :

/usr/bin/ntox86-ld: cannot open /x86/lib/crt1.o: No such file or directory

This file don't exists in this directory.

I don't understand why I have this problem ; I have many times compile programs without this error.

Is is a PATH problem ?

Thank's

Nicolas PIEQUET
Re: crt1.o  
Nicolas PIEQUET wrote:
> Hello
> I developp an application, and when I want to compil it, i have this message :
> 
> /usr/bin/ntox86-ld: cannot open /x86/lib/crt1.o: No such file or directory

Check to make sure your $QNX_TARGET environment variable is set.

Regards,

Ryan Mansfield
Re: crt1.o  
cat $QNX_TARGET

Nothing ...
Re: crt1.o  
sorry ...

echo $QNX_TARGET .. Nothing...
RE: crt1.o  
You can`t cat an environment variable, you have to use echo or print

> -----Original Message-----
> From: Nicolas PIEQUET [mailto:community-noreply@qnx.com]
> Sent: December-10-08 7:54 AM
> To: momentics-community
> Subject: Re: crt1.o
> 
> cat $QNX_TARGET
> 
> Nothing ...
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post18274
> 
Re: crt1.o  
What have I to do ?
Re: crt1.o  
Nicolas PIEQUET wrote:
> What have I to do ?

Set it to where you've installed your QNX directory. For example the 
default windows install happens at:

C:/QNX6xx/

QNX_HOST should be set to:

C:/QNX6xx/host/win32/x86/

QNX_TARGET should be set to:

C:/QNX6xx/target/qnx6

Regards,

Ryan Mansfield

Re: crt1.o  
I'm on QNX host ...

The file is not in /x68/lib, but in /pkgs/repository/qnx/os/dev_x86-2.1.3/x86/lib .

This directory must be in the PATH ?

Why I suddenly have this problem ?
Re: crt1.o  
Nicolas PIEQUET wrote:
> I'm on QNX host ...
> 
> The file is not in /x68/lib, but in /pkgs/repository/qnx/os/dev_x86-2.1.3/x86/lib .
> 
> This directory must be in the PATH ?
> 
> Why I suddenly have this problem ?

Because your QNX_TARGET is not set. You look like you have a nonstandard 
install.

Type:

export QNX_TARGET=/pkgs/repository/qnx/os/dev_x86-2.1.3/

Regards,

Ryan Mansfield
Re: crt1.o  
That looks like a 6.2.1 pkg installation?  Are you running 6.2.1?

Ryan Mansfield wrote:
> Nicolas PIEQUET wrote:
>> I'm on QNX host ...
>>
>> The file is not in /x68/lib, but in /pkgs/repository/qnx/os/dev_x86-2.1.3/x86/lib .
>>
>> This directory must be in the PATH ?
>>
>> Why I suddenly have this problem ?
> 
> Because your QNX_TARGET is not set. You look like you have a nonstandard 
> install.
> 
> Type:
> 
> export QNX_TARGET=/pkgs/repository/qnx/os/dev_x86-2.1.3/
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post18284
> 

-- 
cburgess@qnx.com
Re: crt1.o  
Colin Burgess wrote:
> That looks like a 6.2.1 pkg installation?  Are you running 6.2.1?

Er, yes it does. Sorry, I was assuming it was a 6.3.x or newer install. 
Nevermind my comments about the env variables.

Under 6.2.1, I believe the target directory at the root (/x86/...) so 
crt1.o should be pulled from under /x86/lib/ and not the packaging 
directory.  Does /x86/lib/crt1.o still exist and does it have the proper 
permissions?

Regards,

Ryan Mansfield
Re: crt1.o  
I think it sounds like the package is not installed correctly?

Ryan Mansfield wrote:
> Colin Burgess wrote:
>> That looks like a 6.2.1 pkg installation?  Are you running 6.2.1?
> 
> Er, yes it does. Sorry, I was assuming it was a 6.3.x or newer install. 
> Nevermind my comments about the env variables.
> 
> Under 6.2.1, I believe the target directory at the root (/x86/...) so 
> crt1.o should be pulled from under /x86/lib/ and not the packaging 
> directory.  Does /x86/lib/crt1.o still exist and does it have the proper 
> permissions?
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post18289
> 

-- 
cburgess@qnx.com
Re: crt1.o  
Colin Burgess wrote:
> I think it sounds like the package is not installed correctly?

Sounds like something after the installation because Nicolas did say he 
was able to compile at one point.

Regards,

Ryan Mansfield
Re: crt1.o  
"Nicolas did say he was able to compile at one point."
    Yes, I was.
    I don't know why I'v this problem now ...

I'm working with QNX 6.2.1A
Re: crt1.o  
I understand!
Sorry for the annoyance ...
I ran a script of "clean" in the wrong directory ...
"rm *. o":-s:-s

It is probably not a good idea to develop with both the "root" ...

Thank you anyway for your help

Nicolas PIEQUET
Re: crt1.o  
It's ok, you've just learned the hard way that root should not be your regular
userid. :-)

Colin

Nicolas PIEQUET wrote:
> I understand!
> Sorry for the annoyance ...
> I ran a script of "clean" in the wrong directory ...
> "rm *. o":-s:-s
> 
> It is probably not a good idea to develop with both the "root" ...
> 
> Thank you anyway for your help
> 
> Nicolas PIEQUET
> 
> _______________________________________________
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post18309
> 

-- 
cburgess@qnx.com