Ticket #318 (closed task: fixed)
Opened 5 years ago
Last modified 3 years ago
[boehm-gc] add
| Reported by: | michaelvoliveira | Owned by: | andreasf |
|---|---|---|---|
| Priority: | normal | Milestone: | Unscheduled |
| Component: | dev-libs/boehm-gc | Version: | 1.0 |
| Severity: | normal | Keywords: | gc boehm bdw |
| Cc: |
Description
This is a garbage collection (GC) library for C and C++ written by Hans-J. Boehm, Alan J. Demers and Mark Weiser. Programs that use malloc(), calloc(), realloc() and free() can use this library. This package is designed for use specifically with SmallEiffel?. In file /usr/include/gc.h, malloc(), calloc(), realloc() and free() are redefined to call the GC routines. (from rpm description)
Dependency of GUILE
Attachments
Change History
comment:1 Changed 5 years ago by michaelvoliveira
comment:2 Changed 5 years ago by andreasf
- Component changed from default to dev-libs/boehm-gc
- Owner set to andreasf
- Summary changed from [libgc] add to [boehm-gc] add
I gave the CVS version a try recently only to find out that thread support for BeOS was missing completely and is highly OS-specific, so someone would need to add that for Haiku.
comment:3 Changed 5 years ago by michaelvoliveira
- Keywords boehm bdw added; lib bw removed
comment:4 follow-up: ↓ 5 Changed 5 years ago by michaelvoliveira
Hi andreasf!
Give a try with my patch file!
comment:5 in reply to: ↑ 4 Changed 5 years ago by andreasf
Replying to michaelvoliveira:
Give a try with my patch file!
Your bep file does not enable threads at all. Compare r717 and the following diff.
Iirc it doesn't compile with threads enabled, without them make check leads to a crash.
comment:6 Changed 5 years ago by scottmc
You might try comparing this patch with Kaliber's patch
and make sure everything that needs to be covered is, merging the best of both patches into one clean one.
Be sure to read through their porting info page, as there's a lot of things that don't seem to be covered in either of these patches:
http://www.hpl.hp.com/personal/Hans_Boehm/gc/porting.html
comment:7 Changed 5 years ago by michaelvoliveira
Yes, scott.
Because libguile gives me the error "Could not resolve symbol 'GC_pthread_create'"
Changed 5 years ago by michaelvoliveira
- attachment gc-7.2alpha4.patch added
Add patch by Kaliber as scott suggested
Changed 3 years ago by hamish
- attachment gc-7.2alpha6.patch added
comment:8 follow-up: ↓ 9 Changed 3 years ago by hamish
I don't know if anyone still needs this, but here's a complete patch for 7.2 alpha 6. Build with --enable-threads=posix --enable-thread-local-alloc --enable-parallel-mark for best performance.
comment:9 in reply to: ↑ 8 Changed 3 years ago by augiedoggie
Replying to hamish:
I don't know if anyone still needs this, but here's a complete patch for 7.2 alpha 6. Build with --enable-threads=posix --enable-thread-local-alloc --enable-parallel-mark for best performance.
Nice, seems to work well. At least it allows w3m to build and function. Hopefully I'll work up the motivation to commit this soon ;)
comment:10 Changed 3 years ago by augiedoggie
- Resolution set to fixed
- Status changed from new to closed
Added in r1876

http://www.hpl.hp.com/personal/Hans_Boehm/gc/