chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] multiple issues in embedded PCRE


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] multiple issues in embedded PCRE
Date: 27 Nov 2007 00:10:31 -0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Hi Marijn,

Sorry for the late response.  Comments bellow.

On Wed, 21 Nov 2007 17:44:48 +0100 "Marijn Schouten (hkBst)" <address@hidden> 
wrote:

> echo "#define C_HACKED_APPLY" >>chicken-config.h
> cat chicken-defaults.h >>chicken-config.h
> gcc -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -I. \
>           -c -O2 -pipe -ggdb \
>           -DC_BUILDING_LIBCHICKEN library.c -o
> library-static/home/marijn/cvs/gentoo-x86/dev-scheme/chicken
> Assembler messages:
> Fatal error: can't create
> library-static/home/marijn/cvs/gentoo-x86/dev-scheme/chicken: No such file or
> directory
> library.c:36849: fatal error: error writing to -: Broken pipe
> compilation terminated.
> The bug is not reproducible, so it is likely a hardware or OS problem.

The problem seems to be related to environment variables clash.

Both chicken's rules.make and Portage uses the `O' variable which
seems to be causing the problem.

Here's the error message I get:

  Assembler messages:
  FATAL: can't create library-static/usr/portage/dev-scheme/chicken: No such 
file or directory
  make[1]: *** [library-static/usr/portage/dev-scheme/chicken] Error 1
  make[1]: Leaving directory 
`/var/tmp/portage/dev-scheme/chicken-2.732/work/chicken-2.732'
  make: *** [all] Error 2

Here's the corresponding snippet from rules.make:

  $(C_COMPILER_BUILD_RUNTIME_OPTIONS) $< $(C_COMPILER_OUTPUT_OPTION) 
address@hidden(O): library.c chicken.h $(CHICKEN_CONFIG_H)

Here's the relevant snipped from the execution of `env' from the
ebuild file:

   O=/usr/portage/dev-scheme/chicken

So, it seems that the O value from the environment is being passed to
make, which concatenates "library-static" and
"/usr/portage/dev-scheme/chicken".

Hope this helps.

Best wishes,
Mario




reply via email to

[Prev in Thread] Current Thread [Next in Thread]