Ryan Mansfield(deleted)
04/27/2009 6:17 PM
post28205
|
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
|
|
|
Neil Schellenberger(deleted)
|
|
Neil Schellenberger(deleted)
04/27/2009 6:17 PM
post28206
|
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
|
|
|