#631679 racket: mzc doesn't work with CGC option

Package:
racket
Source:
racket
Description:
extensible programming language in the Scheme family
Submitter:
Rafael Cunha de Almeida
Date:
2012-11-21 17:54:03 UTC
Severity:
wishlist
#631679#5
Date:
2011-06-26 05:02:52 UTC
From:
To:
If I try to compile an extension using CGC (instead of 3m), I get the
following error:

$mzc --cgc --ld example.so example.o example_wrap.o
link-extension: (/usr/bin/gcc -fPIC -shared example.o example_wrap.o /usr/lib/racket/mzdyn.o -o example.so)
link-extension:
gcc-4.4.real: /usr/lib/racket/mzdyn.o: No such file or directory

I think it'll just be a matter of setting the correct compilation flags.

Cheers,
Rafael

#631679#10
Date:
2011-08-09 23:31:46 UTC
From:
To:
Actually, it's a matter of the amd64 packages using the 3m garbage
collector instead of CGC.  Our packages, like upstreams, only provide
the binaries/libraries for one GC which means you have
/usr/lib/racket/mzdyn3m.o installed, not /usr/lib/racket/mzdyn.o.  The
description of the racket package specifies which GC was built.

I consider this reasonable behavior and will close the bug unless you
have any objections.

#631679#15
Date:
2011-08-10 19:43:26 UTC
From:
To:
I think that, ideally, both would be added. However, I understand that it might
be technically complicated. So I suggest that mzc returns a small explanation of
the error. Something in the lines:

  CGC garbage collector not supported.

what do you think? The current error makes it look like there's something wrong
with the package or the system.

[]'s
Rafael