[m-dev.] Upgrading Boehm GC, attempt #2

Sebastian Godelet sebastian.godelet+github at gmail.com
Sun Nov 16 13:43:13 AEDT 2014


Hello Paul,

I'm in the process of bootstrapping your branch on Windows using Msys+Mingw32,
the ./prepare.sh script worked fine,
But I got a parsing error for Mmake.common at BOEHM_CFLAGS_FOR_THREADS,
there was a spurious newline. Traced it back to autoconf.ac, please
see the attached diff.

Cheers,

Sebastian.

PS: Good luck for your surgery

On 15 November 2014 19:20, Paul Bone <paul at bone.id.au> wrote:
>
> I've made another attempt at upgrading Boehm GC.  This time using the
> submodule method.  This way the history of boehm GC doesn't need to be
> imported into Mercury (and confuse "git log" and other commands).  The
> downside is that once you checkout the repository you have to run
> ./prepare.sh which will pull in the boehm_gc and libatomic_ops repositories.
>
> Here's the repository and branch where I've set this up if anyone would like
> to help me test it.
>
> https://github.com/PaulBone/mercury/tree/upgrade_boehm
>
> I've been able to bootstrap in:
>     asm_fast.gc, hlc.gc, asm_fast.gc.par.stseg and hlc.gc.par
>
> I can install the compiler and build programs in asm_fast.gc and hlc.gc
>
> I can build a source distribution, install it and build programs against it
> in asm_fast.gc and hlc.gc
>
> That's all I've tested so far, all on Linux with gcc-4.8
>
> If anyone would like to test this on Windows that would be helpful.  In
> particular I'm not sure how the symlink from boehm_gc/libatomic_ops to
> libatomic_ops will be handled on a windows file system.
>
> The documentation for the procedure that I used can be found here:
> https://github.com/PaulBone/mercury/blob/upgrade_boehm/compiler/notes/upgrade_boehm_gc.html
>
> I've tried to update scripts and documentation as necessary, but I'm bound
> to have missed something.  At the very least I have not updated README.in or
> README.bootstrap
>
> BTW: I have eye surgery on Monday and don't expect to be able to use the
> computer for the following week.  So if I don't see your response for a
> little while that's why.
>
> Thanks.
>
>
> --
> Paul Bone
> _______________________________________________
> developers mailing list
> developers at lists.mercurylang.org
> https://www.mercurylang.org/lists/listinfo/developers
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 4e58cc3..472c033 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3106,8 +3106,7 @@ case "$host" in
                 CFLAGS_FOR_THREADS="$WIN32_GC_THREADLIB"
                 ENABLE_BOEHM_THREAD_LOCAL_ALLOC="-DTHREAD_LOCAL_ALLOC"
                 ENABLE_BOEHM_PARALLEL_MARK="-DPARALLEL_MARK"
-                BOEHM_CFLAGS_FOR_THREADS="-DGC_THREADS
-                    $WIN32_GC_THREADLIB"
+                BOEHM_CFLAGS_FOR_THREADS="-DGC_THREADS $WIN32_GC_THREADLIB"
                 ;;
         esac
         # avoid_sbrk?


More information about the developers mailing list