Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Gcc 4.3/4.4: (11 Items)
   
Gcc 4.3/4.4  
Are you planning gcc 4.3 or gcc 4.4 in Foundry27 ?
Re: Gcc 4.3/4.4  
bogdan celer wrote:
> Are you planning gcc 4.3 or gcc 4.4 in Foundry27 ?

Yes, we will be posting gcc 4.3.3 packages on the Foundry in the very 
near future.

Regards,

Ryan Mansfield
Re: Gcc 4.3/4.4  
OK 
[core-dev-tools] / tools / gcc / trunk  now is gcc4.3.3

build-hooks :
is 
configure_opts="${configure_opts} --with-gxx-include-dir=${qnxtarget}/usr/include/c++/$gcc_version"

correct for SYSNAME=nto and target=*nto-qnx* ?

On my system QNX 6.4.1 
case ${target} in
	*nto-qnx*)	
		configure_opts="${configure_opts} --enable-cheaders=c"
		configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
		configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
	esac 
not work. When I remove 
configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
it's working
Re: Gcc 4.3/4.4  
bogdan celer wrote:
> OK 
> [core-dev-tools] / tools / gcc / trunk  now is gcc4.3.3
> 
> build-hooks :
> is 
> configure_opts="${configure_opts} --with-gxx-include-dir=${qnxtarget}/usr/include/c++/$gcc_version"
> 
> correct for SYSNAME=nto and target=*nto-qnx* ?

If you're building under the version of nto that you're targeting, you 
can change ${qnxtarget} to $QNX_TARGET. Currently the build-hooks
assume you're building under Momentics 640. I will make change the build 
  -hooks so build triplets are easier to set/configure.

> On my system QNX 6.4.1 
> case ${target} in
> 	*nto-qnx*)	
> 		configure_opts="${configure_opts} --enable-cheaders=c"
> 		configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
> 		configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
> 	esac 
> not work. When I remove 
> configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
> configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
> it's working

At what point of the build does it fail?

Regards,

Ryan Mansfield
Re: Gcc 4.3/4.4  
Sorry, but I forgot to say that the problem has the place only when I compiling gcc4.4.0 and 4.5.0
I use the same build-hooks for all gcc:
# diff build-hooks(4.4.0) build-hooks(4.3.3)
84,85c84,85
<       #       configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
<       #       configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
---
>               configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
>               configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
90d89
<       configure_opts="${configure_opts} --program-suffix=-4.4.0"
100c99
<       configure_opts="${configure_opts} --enable-languages=c,c++,ada,fortran,objc"
---
>       configure_opts="${configure_opts} --enable-languages=ada"
Press any key to continue...
============ gcc 4.4.0 ===============
make -j 1 -Cnto-x86-o-ntox86 -fGNUmakefile 
make[1]: Entering directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
AR_HOST=' /usr/qnx641/host/qnx6/x86/usr/bin/cc -a' AS_HOST=' /usr/qnx641/host/qnx6/x86/usr/bin/cc -c'....
hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -lt: missing second argument
hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -gt: missing second argument
hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -lt: missing second argument
hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -gt: missing second argument
checking build system type... i386-pc-nto-qnx6.4.1
checking host system type... i386-pc-nto-qnx6.4.1
checking target system type... i386-pc-nto-qnx6.4.0
.........................
checking whether we are using the GNU C++ compiler... yes
checking whether i386-pc-nto-qnx6.4.0-g++ accepts -g... yes
checking for gnatbind... gnatbind
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... yes
.......................
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... yes
checking for version 0.10 of PPL... yes
checking for correct version of CLooG... no
The following languages will be built: c,ada
........................
mkdir ./gcc
Configuring in ./gcc
configure: creating cache ./config.cache
checking build system type... i386-pc-nto-qnx6.4.1
checking host system type... i386-pc-nto-qnx6.4.1
checking target system type... i386-pc-nto-qnx6.4.0
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
configure: error: cannot execute: ntox86-ld-2.19: check --with-ld or env. var. DEFAULT_LINKER
make[3]: *** [configure-gcc] Error 1
make[3]: Leaving directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
make: *** [all] Error 2

================= gcc 4.3.3 =============
.....................
mkdir ./gcc
Configuring in ./gcc
configure: creating cache ./config.cache
checking build system type... i386-pc-nto-qnx6.4.1
checking host system type... i386-pc-nto-qnx6.4.1
checking target system type... i386-pc-nto-qnx6.4.0
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... yes (ntox86-ld-2.19 - GNU ld)
checking whether a default assembler was specified... yes (ntox86-as-2.19 - GNU as)
checking for i386-pc-nto-qnx6.4.1-gcc... i386-pc-nto-qnx6.4.0-gcc

Has someone some hints why this has the place ?
Regards,
bogdan
Re: Gcc 4.3/4.4  
bogdan celer wrote:
> Sorry, but I forgot to say that the problem has the place only when I compiling gcc4.4.0 and 4.5.0
> I use the same build-hooks for all gcc:
> # diff build-hooks(4.4.0) build-hooks(4.3.3)

We have non-standard modifications to configure, gcc.c and collect2.c 
and a few other places to support the $QNX_HOST/$QNX_TARGET environment 
variables. The search order of the default assembler and linker are one 
of those modifications. IIRC, you can specify an absolute path to 
with-as/with-ld and avoid this problem but your gcc will not be 
completely relocatable as the driver will launch with assembler/linker 
with the full path.

You could try:

configure_opts="${configure_opts} 
--with-as=$QNX_HOST/usr/bin/${nto_target}-as-2.19"
configure_opts="${configure_opts} 
--with-ld=$QNX_HOST/usr/bin/${nto_target}-ld-2.19"

Regards,

Ryan Mansfield
Re: Gcc 4.3/4.4  
> You could try:
> 
> configure_opts="${configure_opts} 
> --with-as=$QNX_HOST/usr/bin/${nto_target}-as-2.19"
> configure_opts="${configure_opts} 
> --with-ld=$QNX_HOST/usr/bin/${nto_target}-ld-2.19"
> 
> Regards,
> 
> Ryan Mansfield


Ryan thank you. It work well with gcc4.4.
Re: Gcc 4.3/4.4  
It looks to me like the build-hooks on trunk is buggy.  You can try
adding

  minimum_binutils=2.19

at the start, but there may be other problems (I haven't actually tried
it).

On Mon, 2009-04-27 at 18:01 -0400, bogdan celer wrote:
> Sorry, but I forgot to say that the problem has the place only when I compiling gcc4.4.0 and 4.5.0
> I use the same build-hooks for all gcc:
> # diff build-hooks(4.4.0) build-hooks(4.3.3)
> 84,85c84,85
> <       #       configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
> <       #       configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
> ---
> >               configure_opts="${configure_opts} --with-as=${nto_target}-as-2.19"
> >               configure_opts="${configure_opts} --with-ld=${nto_target}-ld-2.19"
> 90d89
> <       configure_opts="${configure_opts} --program-suffix=-4.4.0"
> 100c99
> <       configure_opts="${configure_opts} --enable-languages=c,c++,ada,fortran,objc"
> ---
> >       configure_opts="${configure_opts} --enable-languages=ada"
> Press any key to continue...
> ============ gcc 4.4.0 ===============
> make -j 1 -Cnto-x86-o-ntox86 -fGNUmakefile 
> make[1]: Entering directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
> AR_HOST=' /usr/qnx641/host/qnx6/x86/usr/bin/cc -a' AS_HOST=' /usr/qnx641/host/qnx6/x86/usr/bin/cc -c'....
> hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -lt: missing second argument
> hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -gt: missing second argument
> hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -lt: missing second argument
> hook_preconfigure: /usr/qnx641/target/qnx6/usr/include/mk/build-cfg[349]: [: -gt: missing second argument
> checking build system type... i386-pc-nto-qnx6.4.1
> checking host system type... i386-pc-nto-qnx6.4.1
> checking target system type... i386-pc-nto-qnx6.4.0
> .........................
> checking whether we are using the GNU C++ compiler... yes
> checking whether i386-pc-nto-qnx6.4.0-g++ accepts -g... yes
> checking for gnatbind... gnatbind
> checking for gnatmake... gnatmake
> checking whether compiler driver understands Ada... yes
> .......................
> checking for correct version of gmp.h... yes
> checking for correct version of mpfr.h... yes
> checking for version 0.10 of PPL... yes
> checking for correct version of CLooG... no
> The following languages will be built: c,ada
> ........................
> mkdir ./gcc
> Configuring in ./gcc
> configure: creating cache ./config.cache
> checking build system type... i386-pc-nto-qnx6.4.1
> checking host system type... i386-pc-nto-qnx6.4.1
> checking target system type... i386-pc-nto-qnx6.4.0
> checking LIBRARY_PATH variable... ok
> checking GCC_EXEC_PREFIX variable... ok
> checking whether to place generated files in the source directory... no
> configure: error: cannot execute: ntox86-ld-2.19: check --with-ld or env. var. DEFAULT_LINKER
> make[3]: *** [configure-gcc] Error 1
> make[3]: Leaving directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/src/gcc-4.4.0/nto-x86-o-ntox86'
> make: *** [all] Error 2
> 
> ================= gcc 4.3.3 =============
> .....................
> mkdir ./gcc
> Configuring in ./gcc
> configure: creating cache ./config.cache
> checking build system type... i386-pc-nto-qnx6.4.1
> checking host system type... i386-pc-nto-qnx6.4.1
> checking target system type... i386-pc-nto-qnx6.4.0
> checking LIBRARY_PATH variable... ok
> checking GCC_EXEC_PREFIX variable... ok
> checking whether to place...
View Full Message
Re: Gcc 4.3/4.4  
I've raised PR 67849 to track this (if it is indeed a bug rather than a deprecated feature - Ryan?)
Re: Gcc 4.3/4.4  
Neil Schellenberger wrote:
> I've raised PR 67849 to track this (if it is indeed a bug rather than a deprecated feature - Ryan?)

The minimum binutils gear at the bottom is legacy cruff we don't really 
need anymore. It sneaked back in when I was doing the 4.2.4-4.3.3 merge.

Regards,

Ryan Mansfield
Re: Gcc 4.3/4.4  
It kind of looked like that was the case, but I wasn't certain.  Should
be an easy PR ;-)

On Mon, 2009-04-27 at 18:27 -0400, Ryan Mansfield wrote:
> Neil Schellenberger wrote:
> > I've raised PR 67849 to track this (if it is indeed a bug rather than a deprecated feature - Ryan?)
> 
> The minimum binutils gear at the bottom is legacy cruff we don't really 
> need anymore. It sneaked back in when I was doing the 4.2.4-4.3.3 merge.
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28208
>