Skip to content

Build with cflag GC_FINAL_STATS failed #50368

@inkydragon

Description

@inkydragon

Build with master (02f80c6)

I'm trying to build julia with option GC_FINAL_STATS.

julia/src/options.h

Lines 67 to 70 in eeb0b69

// profiling options
// GC_FINAL_STATS prints total GC stats at exit
// #define GC_FINAL_STATS

Make.user

# valgrind
CFLAGS = -DMEMDEBUG -DMEMDEBUG2 -DGC_FINAL_STATS
JULIA_CPU_TARGET=generic

errors

~/jl/julia$ make
    CC src/gc-debug.o
/home/cyhan/jl/julia/src/gc-debug.c: In function 'gc_stats_pagetable0':
/home/cyhan/jl/julia/src/gc-debug.c:748:35: error: 'pagetable0_t' has no member named 'allocmap'
  748 |         uint32_t line = pagetable0->allocmap[pg_i] | pagetable0->freemap[pg_i];
      |                                   ^~
/home/cyhan/jl/julia/src/gc-debug.c:748:64: error: 'pagetable0_t' has no member named 'freemap'
  748 |         uint32_t line = pagetable0->allocmap[pg_i] | pagetable0->freemap[pg_i];
      |                                                                ^~
/home/cyhan/jl/julia/src/gc-debug.c: In function 'gc_stats_pagetable1':
/home/cyhan/jl/julia/src/gc-debug.c:762:35: error: 'pagetable1_t' has no member named 'allocmap0'
  762 |         uint32_t line = pagetable1->allocmap0[pg_i] | pagetable1->freemap0[pg_i];
      |                                   ^~
/home/cyhan/jl/julia/src/gc-debug.c:762:65: error: 'pagetable1_t' has no member named 'freemap0'
  762 |         uint32_t line = pagetable1->allocmap0[pg_i] | pagetable1->freemap0[pg_i];
      |                                                                 ^~
/home/cyhan/jl/julia/src/gc-debug.c: In function 'gc_stats_pagetable':
/home/cyhan/jl/julia/src/gc-debug.c:777:25: error: 'memory_map' undeclared (first use in this function)
  777 |         uint32_t line = memory_map.allocmap1[pg_i] | memory_map.freemap1[pg_i];
      |                         ^~~~~~~~~~

julia/src/gc.h

Lines 248 to 250 in eeb0b69

typedef struct {
uint8_t meta[REGION0_PG_COUNT];
} pagetable0_t;

Related pr: #50137 @d-netto

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildingBuild system, or building Julia or its dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions