[plt-dev] Build error in r18407
Thanks.
In case it matters, I'm building on a PPC Mac (G5) running OS X, and
using the default Mac build (not the X11 build).
Carl Eastlund
On Mon, Mar 1, 2010 at 12:34 PM, Kevin Tew <tewk at cs.utah.edu> wrote:
> I think this will fix it.
> Committing in a moment.
>
> diff --git a/src/mzscheme/gc2/newgc.c b/src/mzscheme/gc2/newgc.c
> index 7c1a2e9..6da2c23 100644
> --- a/src/mzscheme/gc2/newgc.c
> +++ b/src/mzscheme/gc2/newgc.c
> @@ -134,7 +134,7 @@ static void marking_rmp_debug(NewGC *gc, void *info);
> #define GCVERBOSEPAGE(msg, page) /* EMPTY */
> #endif
>
> -THREAD_LOCAL_DECL(static NewGC *GC);
> +THREAD_LOCAL_DECL(static NewGC *GC_instance);
> #define GCTYPE NewGC
> #define GC_get_GC() (GC_instance)
> #define GC_set_GC(gc) (GC_instance = gc)
>
>
>
> Kevin Tew wrote:
>>
>> I bet you are compiling on linux!
>>
>> Matthew missed a change, I'll run tests then commit.
>>
>> Kevin
>>
>> Carl Eastlund wrote:
>>>
>>> This from a clean build:
>>>
>>> gcc -I./.. -I../../../mzscheme/gc2/../include -g -O2 -DOS_X
>>> -D_DARWIN_UNLIMITED_SELECT -fno-common -DNEWGC_BTC_ACCOUNT -Wall
>>> -I./.. -c ../../../mzscheme/gc2/gc2.c -o gc2.o
>>> In file included from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/newgc.c: In function
>>> 'GC_set_collect_start_callback':
>>> ../../../mzscheme/gc2/newgc.c:203: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c:203: error: (Each undeclared identifier
>>> is reported only once
>>> ../../../mzscheme/gc2/newgc.c:203: error: for each function it appears
>>> in.)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_set_collect_end_callback':
>>> ../../../mzscheme/gc2/newgc.c:210: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function
>>> 'GC_set_collect_inform_callback':
>>> ../../../mzscheme/gc2/newgc.c:217: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_is_allocated':
>>> ../../../mzscheme/gc2/newgc.c:451: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'allocate_big':
>>> ../../../mzscheme/gc2/newgc.c:613: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'allocate_medium':
>>> ../../../mzscheme/gc2/newgc.c:771: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_make_jit_nursery_page':
>>> ../../../mzscheme/gc2/newgc.c:825: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'allocate':
>>> ../../../mzscheme/gc2/newgc.c:897: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_malloc_pair':
>>> ../../../mzscheme/gc2/newgc.c:1009: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_set_stack_base':
>>> ../../../mzscheme/gc2/newgc.c:1388: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_get_stack_base':
>>> ../../../mzscheme/gc2/newgc.c:1394: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function
>>> 'GC_set_get_thread_stack_base':
>>> ../../../mzscheme/gc2/newgc.c:1399: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/newgc.c:1430,
>>> from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/roots.c: In function 'GC_add_roots':
>>> ../../../mzscheme/gc2/roots.c:83: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/newgc.c:1458,
>>> from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/immobile_boxes.c: In function
>>> 'GC_malloc_immobile_box':
>>> ../../../mzscheme/gc2/immobile_boxes.c:6: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/immobile_boxes.c: In function
>>> 'GC_free_immobile_box':
>>> ../../../mzscheme/gc2/immobile_boxes.c:19: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> In file included from ../../../mzscheme/gc2/newgc.c:1469,
>>> from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/fnls.c: In function 'GC_set_finalizer':
>>> ../../../mzscheme/gc2/fnls.c:29: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_finalization_weak_ptr':
>>> ../../../mzscheme/gc2/newgc.c:1560: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/newgc.c:1631,
>>> from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/weak.c: In function 'mark_weak_array':
>>> ../../../mzscheme/gc2/weak.c:38: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/weak.c: In function 'GC_malloc_weak_array':
>>> ../../../mzscheme/gc2/weak.c:87: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/weak.c: In function 'mark_weak_box':
>>> ../../../mzscheme/gc2/weak.c:142: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/weak.c: In function 'GC_malloc_weak_box':
>>> ../../../mzscheme/gc2/weak.c:167: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/weak.c: In function 'mark_ephemeron':
>>> ../../../mzscheme/gc2/weak.c:223: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/weak.c: In function 'BTC_ephemeron_mark':
>>> ../../../mzscheme/gc2/weak.c:237: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/weak.c: In function 'GC_malloc_ephemeron':
>>> ../../../mzscheme/gc2/weak.c:264: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/newgc.c:1739,
>>> from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/mem_account.c: In function
>>> 'BTC_register_new_thread':
>>> ../../../mzscheme/gc2/mem_account.c:22: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/mem_account.c: In function 'BTC_register_thread':
>>> ../../../mzscheme/gc2/mem_account.c:36: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/mem_account.c: In function
>>> 'BTC_register_root_custodian':
>>> ../../../mzscheme/gc2/mem_account.c:147: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/mem_account.c: In function 'BTC_thread_mark':
>>> ../../../mzscheme/gc2/mem_account.c:303: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/mem_account.c: In function 'BTC_custodian_mark':
>>> ../../../mzscheme/gc2/mem_account.c:312: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/mem_account.c: In function 'BTC_cust_box_mark':
>>> ../../../mzscheme/gc2/mem_account.c:324: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> ../../../mzscheme/gc2/mem_account.c: In function 'BTC_add_account_hook':
>>> ../../../mzscheme/gc2/mem_account.c:436: error: 'GC_instance'
>>> undeclared (first use in this function)
>>> In file included from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_merely_accounting':
>>> ../../../mzscheme/gc2/newgc.c:1776: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'designate_modified':
>>> ../../../mzscheme/gc2/newgc.c:1819: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> In file included from ../../../mzscheme/gc2/gc2.c:15:
>>> ../../../mzscheme/gc2/newgc.c: In function 'init_type_tags_worker':
>>> ../../../mzscheme/gc2/newgc.c:1963: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_gcollect':
>>> ../../../mzscheme/gc2/newgc.c:2091: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_register_traversers':
>>> ../../../mzscheme/gc2/newgc.c:2099: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_get_memory_use':
>>> ../../../mzscheme/gc2/newgc.c:2118: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_mark':
>>> ../../../mzscheme/gc2/newgc.c:2147: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_resolve':
>>> ../../../mzscheme/gc2/newgc.c:2418: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_fixup':
>>> ../../../mzscheme/gc2/newgc.c:2446: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_dump_with_traces':
>>> ../../../mzscheme/gc2/newgc.c:2500: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'gen1_free_mpage':
>>> ../../../mzscheme/gc2/newgc.c:3189: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> ../../../mzscheme/gc2/newgc.c: In function 'GC_free_all':
>>> ../../../mzscheme/gc2/newgc.c:3716: error: 'GC_instance' undeclared
>>> (first use in this function)
>>> make[4]: *** [gc2.o] Error 1
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [3m] Error 2
>>> make[1]: *** [3m] Error 2
>>> make: *** [all] Error 2
>>>
>>> Carl Eastlund
>>> _________________________________________________
>>> For list-related administrative tasks:
>>> http://list.cs.brown.edu/mailman/listinfo/plt-dev
>>>
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-dev
>
>
>