Skip to content

DMD ICE: Can't link simple program with -profile=gc #21033

@MrcSnm

Description

@MrcSnm
import std.path;
void main()
{
	buildPath("tester", " a");
}

Tested with run.dlang.io with All Compilers. Looks like that program never was able to build.

That was causing ICE on my program which has multiple cases of that.

I also get that at the reduced example:

/dlang/dmd/linux/bin64/../../src/phobos/std/array.d:1112: error: undefined reference to '_d_newarrayUTrace'
collect2: error: ld returned 1 exit status
Error: undefined reference to `_d_newarrayUTrace`
       perhaps a library needs to be added with the `-L` flag or `pragma(lib, ...)`
Error: linker exited with status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions