HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Ticket
  • Back to Query
  • Next Ticket →

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

gc-7.2alpha4.bep​ (417 bytes) - added by michaelvoliveira 5 years ago.
Initial .bep file
gc.OptionalPackageDescription​ (161 bytes) - added by michaelvoliveira 5 years ago.
.opd file
boehm-wip_AF.diff​ (2.3 KB) - added by andreasf 5 years ago.
draft patch
gc-7.2alpha4.patch​ (2.7 KB) - added by michaelvoliveira 5 years ago.
Add patch by Kaliber as scott suggested
gc-7.2alpha6.patch​ (10.1 KB) - added by hamish 3 years ago.

Download all attachments as: .zip

Change History

comment:1 Changed 5 years ago by michaelvoliveira

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

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.

Changed 5 years ago by michaelvoliveira

  • attachment gc-7.2alpha4.bep​ added

Initial .bep file

Changed 5 years ago by michaelvoliveira

  • attachment gc.OptionalPackageDescription​ added

.opd file

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.

Changed 5 years ago by andreasf

  • attachment boehm-wip_AF.diff​ added

draft patch

comment:6 Changed 5 years ago by scottmc

You might try comparing this patch with Kaliber's patch

 http://svn.gna.org/viewcvs/pingwinek/trunk/packages/gc/gc-haiku.patch?rev=13375&dir_pagestart=600&view=markup

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

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/