crosstool-0.28-rc37 fails to build on SuSE 9.2

Daniel Kegel dank@kegel.com
Wed Apr 20 20:28:00 GMT 2005


Marc Kleine-Budde wrote:
>>So the proper way would be to replace the two "trap 0" with "trap - 0" in 
>>configure of gcc-3.3.x with something like
> 
> 
>>perl -i -p -e "s,trap 0,trap - 0,g" ${GCC_DIR}/configure
> 
> 
> I did a "s,trap 0,trap '' 0,g", like in the gcc >= 3.3.5, and made diffs
> against the original packages, put the patches into crosstool and diffed
> crosstool again. Though diff-in-diff are hard to read :), here they come

Thanks very much, I'll try adding that into crosstool-0.32.
- Dan

> ------------------------------------------------------------------------
> 
> diff -ruN crosstool-0.31-orig/patches/gcc-2.95.3/gcc-2.95.3-trap-posix.patch crosstool-0.31/patches/gcc-2.95.3/gcc-2.95.3-trap-posix.patch
> --- crosstool-0.31-orig/patches/gcc-2.95.3/gcc-2.95.3-trap-posix.patch	1970-01-01 01:00:00.000000000 +0100
> +++ crosstool-0.31/patches/gcc-2.95.3/gcc-2.95.3-trap-posix.patch	2005-04-20 21:27:58.000000000 +0200
> @@ -0,0 +1,44 @@
> +# 
> +# Submitted-By: Marc Kleine-Budde <mkl@pengutronix.de>, 2005-04-20
> +#
> +# Error:
> +#
> +# creating libintl.h
> +# Configuring etc...
> +# loading cache ../config.cache
> +# checking for a BSD compatible install... (cached) /usr/bin/install -c
> +# creating ./config.status
> +# creating Makefile
> +# trap: usage: trap [-lp] [[arg] signal_spec ...]
> +#
> +# Description:
> +#
> +# non-posix conform usage of trap causes bash >= 3.0 to fail
> +# e.g.: http://sourceware.org/ml/crossgcc/2004-12/msg00132.html
> +#
> +# Status:
> +#
> +# fixed in gcc >= 3.3.5
> +# backport of gcc-3.3.5 fix
> +#
> +diff -ruN gcc-2.95.3-orig/configure gcc-2.95.3/configure
> +--- gcc-2.95.3-orig/configure	1999-04-02 16:17:40.000000000 +0200
> ++++ gcc-2.95.3/configure	2005-04-20 18:25:45.030488235 +0200
> +@@ -687,7 +687,7 @@
> + if test -f skip-this-dir; then
> + 	# Perform the same cleanup as the trap handler, minus the "exit 1" of course,
> + 	# and reset the trap handler.
> +-	trap 0
> ++	trap '' 0
> + 	rm -f Makefile* ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
...

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list