%% "Zagorodnev, Grigory" <[EMAIL PROTECTED]> writes:

  zg> export A:= commom

  zg> target: A+= specific
  zg> target:
  zg>   @echo $(A)

  zg> ...I got following error:

  zg> make: expand.c:489: allocated_variable_append: Assertion
  zg> `current_variable_set_list->next != 0' failed.
  zg> Aborted (core dumped)

  zg> So I have several questions here:
  zg>   - Is this problem already known?

Yes.

  zg>   - Is it already fixed in the latest versions?

It's already fixed in the source code in CVS.  There has been no release
of GNU make that contains this bug fix yet (3.79.1 is still the latest
version).

  zg>   - Or I should rewrite my Makefile to avoid given problem?

Your makefile is wrong anyway, so you should definitely rewrite it.
But, it won't help work around this bug.  You cannot provide a variable
setting on the same line as an export.  This line:

  export A:= commom

will export two variables, one named "A:=" (which is not a legal
variable name so this will do nothing), and one named "commom".

What I'm guessing you want is this:

  A:= common
  export A

(You'll still see the above error though)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to