You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
std.array calls non-existent Trace hook in version(D_ProfileGC) #10989
/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
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
changed the title [-]DMD ICE: Can't link simple program with `-profile=gc`[/-][+]std.array calls non-existent Trace hook in version(D_ProfileGC)[/+]on Apr 5, 2026
Activity
[-]DMD ICE: Can't link simple program with `-profile=gc`[/-][+]std.array calls non-existent Trace hook in version(D_ProfileGC)[/+]Fix dlang#10989 - std.array calls non-existent Trace hook in version(…
Fix #10989 - std.array calls non-existent Trace hook in version(D_Pro…
Fix dlang#10989 - std.array calls non-existent Trace hook in version(…