Skip to content

std.array calls non-existent Trace hook in version(D_ProfileGC) #10989

@0xEAB

Description

@0xEAB
./dev/dmd/generated/linux/release/64/dmd -profile=gc test.d
/usr/bin/ld: test.o: in function `std.array.arrayAllocImpl!(false, ulong[], ulong).arrayAllocImpl(ulong)':
test.d:(.text._D3std5array__T14arrayAllocImplVbi0TAmTmZQBaFNaNbmZQp[_D3std5array__T14arrayAllocImplVbi0TAmTmZQBaFNaNbmZQp]+0x53): undefined reference to `_d_newarrayUTrace'
collect2: error: ld returned 1 exit status
Error: undefined reference to `_d_newarrayUTrace`
       referenced from `pure nothrow ulong[] std.array.arrayAllocImpl!(false, ulong[], ulong).arrayAllocImpl(ulong)`
       perhaps a library needs to be added with the `-L` flag or `pragma(lib, ...)`
Error: linker exited with status 1
       cc test.o -o test -m64 -Xlinker --export-dynamic -L./dev/dmd/generated/linux/release/64/../../../../../phobos/generated/linux/release/64 -Xlinker -Bstatic -lphobos2 -Xlinker -Bdynamic -lpthread -lm -lrt -ldl 
git -C dev/dmd status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
git -C dev/phobos status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Originally posted by @0xEAB in #21033

Can someone please add a test with profile-gc? People is closing without even having tests in DMD. That other issue is related to template hooks dlang/dmd#22842

Originally posted by @MrcSnm in #21033

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity:RegressionIssues that are regressions/PRs that fix regressions

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions