yann@1: The error yann@1: yann@1: make[2]: *** [.../gcc-3.3.3-glibc-2.1.3/i686-unknown-linux-gnu/share/zoneinfo/Africa/Algiers] Segmentation fault yann@1: make[2]: Leaving directory `.../gcc-3.3.3-glibc-2.1.3/glibc-2.1.3/timezone' yann@1: make[1]: *** [timezone/subdir_install] Error 2 yann@1: yann@1: is caused by glibc trying to run something it just compiled. yann@1: A crude workaround for this was posted at yann@1: http://lists.scratchbox.org/pipermail/scratchbox-users/2004-February/000018.html yann@1: but the following patch lets you optionally override these programs at yann@1: make time by setting environment variables yann@1: localedef_FOR_BUILD rpcgen_FOR_BUILD zic_FOR_BUILD yann@1: and maybe a few others to point to versions of those programs yann@1: that can run on the build machine. yann@1: Thanks to http://groups.google.com/groups?selm=9012160052.AA23106%40kaos.ksr.com yann@1: for pointing out the idiom for inline $(ifdef ...) in GNU Make. yann@1: yann@1: Dan Kegel 2004-05-17 yann@1: yann@1: --- glibc-2.1.3/Makeconfig.old 1999-11-29 11:19:20.000000000 -0800 yann@1: +++ glibc-2.1.3/Makeconfig 2004-05-17 15:57:53.000000000 -0700 yann@1: @@ -470,20 +470,24 @@ yann@1: # The program binary is assumed to be $(word 2,$^). yann@1: built-program-file = $(dir $(word 2,$^))$(notdir $(word 2,$^)) yann@1: ifneq (yes,$(build-shared)) yann@1: -built-program-cmd = $(built-program-file) yann@1: +built-program-real = $(built-program-file) yann@1: else yann@1: comma = , yann@1: sysdep-library-path = \ yann@1: $(subst $(empty) ,:,$(strip $(patsubst -Wl$(comma)-rpath-link=%, %,\ yann@1: $(filter -Wl$(comma)-rpath-link=%,\ yann@1: $(sysdep-LDFLAGS))))) yann@1: -define built-program-cmd yann@1: +define built-program-real yann@1: $(elf-objpfx)$(rtld-installed-name) \ yann@1: --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \ yann@1: $(built-program-file) yann@1: endef yann@1: endif yann@1: yann@1: +# If user set foo_FOR_BUILD, use that instead of actually running the program we just linked. yann@1: +built-program-override-name = $(notdir $(word 2,$^))_FOR_BUILD yann@1: +built-program-cmd = $(if $(findstring undefined,$(origin $(built-program-override-name))),$(built-program-real),$($(built-program-override-name))) yann@1: + yann@1: ifndef LD yann@1: LD := ld -X yann@1: endif