gcc broken in QNX RTP

Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or is it
broken?

Try setting the host to i386 (or i486,i586,i686 etc):
…/configure --host=i686
and it should work a lot better. I have been able to compile
a lot of Linux/GNU apps like this without any problem at all.

-Peter


Claudio Sanchez <claudio@spam-me-not.jump.net> wrote:

Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or is it
broken?

Claudio Sanchez <claudio@spam-me-not.jump.net> wrote:

Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or is it
broken?

No it’s not gcc. It’s the package you try to compile don’t have the
latest “config.sub” and “config.guess”. Try to go to GNU side to find
the last one, they will recognize QNX RTP.

-xtang

“Xiaodan Tang” <xtang@ottawa.com> wrote in message
news:8qqm7g$9f1$1@nntp.qnx.com

Claudio Sanchez <> claudio@spam-me-not.jump.net> > wrote:
Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host
type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler
cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or
is it
broken?

No it’s not gcc. It’s the package you try to compile don’t have the
latest “config.sub” and “config.guess”. Try to go to GNU side to find
the last one, they will recognize QNX RTP.

The config files are in /usr/share/automake/ config.guess and config.sub

-xtang

Mario Charest <mcz@videotron.ca> wrote:

“Xiaodan Tang” <> xtang@ottawa.com> > wrote in message
news:8qqm7g$9f1$> 1@nntp.qnx.com> …
Claudio Sanchez <> claudio@spam-me-not.jump.net> > wrote:
Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host
type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler
cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or
is it
broken?

No it’s not gcc. It’s the package you try to compile don’t have the
latest “config.sub” and “config.guess”. Try to go to GNU side to find
the last one, they will recognize QNX RTP.


The config files are in /usr/share/automake/ config.guess and config.sub

I talked to our GNU guy, you need ftp://ftp.gnu.org/gnu/config/config.*,
those in /usr/share/automake are comming with automake 1.12 (?) and are
old.

-xtang

I am having a problem too.

I cant even get gcc to compile the following:

int main(void)
{
return 1;
}



geez


In article
10009007870137591536-53780255639D082A8.137614120-100000@localhost, Claudio
Sanchez <claudio@spam-me-not.jump.net> wrote:

Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or is it
broken?

Sent via Deja.com http://www.deja.com/
Before you buy.

I was having problems originally with my Windows installed version, with gcc
installed from remote repository. Later, I did a CD install and the problem
cleared up.

At 03:43 on 27 Sep 2000, geezwhyme@my-deja.com wrote:

I am having a problem too.

I cant even get gcc to compile the following:

int main(void)
{
return 1;
}



geez


In article
10009007870137591536-53780255639D082A8.137614120-100000@localhost>, Claudio
Sanchez <> claudio@spam-me-not.jump.net> > wrote:

Having problems compiling stuff in the new QNX RTP.

Firstly, the configure script cannot tell what OS I’m in.

$ ./configure
loading cache ./config.cache
checking host system type… configure: error: can not guess host type; you
must specify one

Ok… I think this is right…

$ ./configure --host=qnx
loading cache ./config.cache
checking host system type… Invalid configuration qnx': machine qnx’ not
recognized

Beginning configuration for bash-2.04 for –
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler cannot
create executables.

So… gcc cannot create executables? Am I doing something very wrong or is it
broken?




Sent via Deja.com > http://www.deja.com/
Before you buy.

Peter Graves <pgraves@qnx.com> writes:

Try setting the host to i386 (or i486,i586,i686 etc):
./configure --host=i686
and it should work a lot better. I have been able to compile
a lot of Linux/GNU apps like this without any problem at all.

Still better, go to

http://www.ibiblio.org/pub/gnu/config/

and download config.guess and config.sub. Overwrite the existing
files in your directory with these ones, and run configure again with
no arguments. The latest config.{guess,sub} include recognition for
both QNX4 and QNX Neutrino (RTP).

Andrew


Andrew Thomas, President, Cogent Real-Time Systems Inc.
2430 Meadowpine Boulevard, Suite 105, Mississauga, Ontario, Canada L5N 6S2
Email: andrew@cogent.ca WWW: http://www.cogent.ca