Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - GCC 4.8.3 instalation: (6 Items)
   
GCC 4.8.3 instalation  
Hello!

I am trying to install GCC 4.8.3 to my QNX6.5 SDP on Linux. I did the follows:

1) Copied already installed version for backup:
# cp -r /opt/qnx650 /opt/qnx650sp1

2) unpaked archive with GCC 4.8.3 (downloaded from here (http://community.qnx.com/sf/frs/do/viewRelease/projects.
toolchain/frs.gcc.gcc_4_8)  to /opt/qnx650:
# tar -xfnto-gcc-4.8.3-qnx65x.tar.gz -C /opt/qnx650

3) unpaked binutils (downloaded from here http://community.qnx.com/sf/frs/do/listReleases/projects.toolchain/frs.
binutils) :
# tar -xfnto-binutils-2.25.tar.gz -C /opt/qnx650

4) Renamed /opt/qnx650sp1-gcc483/host/linux/x86/etc/qcc/gcc/4.4.2 to /opt/qnx650sp1-gcc483/host/linux/x86/etc/qcc/gcc/4.
8.3

5) Launched Momentix IDE 7.0 and created new QNX C++ project: File->New->QNX Project->QNX Executable->C++ CPU x86

When I try to built such project I always get an error below:

qcc -lang-c++ -Vgcc_ntox86 -c -Wp,-MMD,build/x86-debug/src/test.d,-MT,build/x86-debug/src/test.o -o build/x86-debug/src/
test.o  -Wall -fmessage-length=0 -g -O0 -fno-builtin  src/test.cpp
cc: unknown target 'gcc_ntox86+debug'
cc: targets available in /opt/qnx650/host/linux/x86/etc/qcc/gcc:
	4.8.3,gcc_ntomipsle_acpp	
	4.8.3,gcc_ntoarmle_ecpp	
	4.8.3,gcc_ntoarmv7le_acpp-ne	
	4.8.3,gcc_ntoarmle_ecpp-ne	
	4.8.3,gcc_ntoarmv7le_acpp	
	4.8.3,gcc_ntoppcbespe_ecpp-ne	
	4.8.3,gcc_ntoppcbespe_acpp	
	4.8.3,gcc_ntoppcbe_cpp-ne	
	4.8.3,gcc_ntomipsle	
	4.8.3,gcc_ntoarmle_acpp	
	4.8.3,gcc_ntoppcbespe	
	4.8.3,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ntoppcbespe_cpp	
	4.8.3,gcc_ntoshle_gpp	
	4.8.3,gcc_ntoppcbe_gpp	
	4.8.3,gcc_ntoarmle_acpp-ne	
	4.8.3,gcc_ntoarmle_cpp-ne	
	4.8.3,gcc_ntoshle_acpp	
	4.8.3,gcc_ntomipsbe_acpp-ne	
	4.8.3,gcc_ntoppcbespe_cpp-ne	
	4.8.3,gcc_ntox86_cpp-ne	
	4.8.3,gcc_ntox86	
	4.8.3,gcc_ntomipsbe	
make: *** [build/x86-debug/src/test.o] Error 1


What am I doing wrong?
Re: GCC 4.8.3 instalation  
Hi Vasilij,
    It appears you have downloaded the tools for running on "self-hosted" NTO systems.

Please try the linux-gcc-4.8.3-qnx65x.tar.gz archive which contains
host\linux\x86\

Cheers,
Bob
Re: GCC 4.8.3 instalation  
Hi Bob, thank you for response!

I've downloaded this archive linux-gcc-4.8.3-qnx65x.tar.gz http://community.qnx.com/sf/frs/do/downloadFile/projects.
toolchain/frs.gcc.gcc_4_8/frs152089?dl=1 and unpacked it:

# tar -xf linux-gcc-4.8.3-qnx65x.tar.gz -C /opt/qnx650-gcc483/

I get the same error. 
Re: GCC 4.8.3 instalation  
Hi Bob, thank you for response!

I've downloaded this archive linux-gcc-4.8.3-qnx65x.tar.gz http://community.qnx.com/sf/frs/do/downloadFile/projects.
toolchain/frs.gcc.gcc_4_8/frs152089?dl=1 and unpacked it:

# tar -xf linux-gcc-4.8.3-qnx65x.tar.gz -C /opt/qnx650-gcc483/

I get the same error. 
Re: GCC 4.8.3 instalation  
Hi Bob, thank you for response!

I've downloaded this archive linux-gcc-4.8.3-qnx65x.tar.gz http://community.qnx.com/sf/frs/do/downloadFile/projects.
toolchain/frs.gcc.gcc_4_8/frs152089?dl=1 and unpacked it:

# tar -xf linux-gcc-4.8.3-qnx65x.tar.gz -C /opt/qnx650-gcc483/

I get the same error. 
Re: GCC 4.8.3 instalation  
Why did you do that?
4) Renamed /opt/qnx650sp1-gcc483/host/linux/x86/etc/qcc/gcc/4.4.2 to /opt/qnx650sp1-gcc483/host/linux/x86/etc/qcc/gcc/4.
8.3

?
There are configuration file in /etc folder that point to default versions of compilers and stuff, if you rename the 
file it will will brake these files. IDE uses these to find the right compiler.
Also if get new gcc it should be in the same host folder at the other one or you have to edit QNX_HOST var for IDE and 
command line