Need help with the dmd package on NixOS

Johannes Loher johannes.loher at fg4f.de
Sat May 5 00:07:01 UTC 2018


Am 04.05.2018 um 22:27 schrieb Thomas Mader:
> [...]
Here is a demangled version of what you posted:

dmd hello.d
hello.o: In function `@safe void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])':
hello.d:(.text. at safe void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])[@safe
void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])]+0x46):
undefined reference to `@safe std.stdio.File.LockingTextWriter
std.stdio.File.lockingTextWriter()'
hello.d:(.text. at safe void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])[@safe
void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])]+0x57):
undefined reference to `@safe void std.stdio.File.__dtor()'
hello.d:(.text. at safe void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])[@safe
void
std.stdio.writeln!(immutable(char)[]).writeln(immutable(char)[])]+0xa4):
undefined reference to `@trusted void
std.stdio.File.LockingTextWriter.__aggrDtor()'
hello.o:(.data.DW.ref.__dmd_personality_v0+0x0): undefined reference to
`__dmd_personality_v0'
hello.o: In function `@safe int std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])':
hello.d:(.text. at safe int std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])[@safe int
std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])]+0x20): undefined
reference to `std.exception.ErrnoException.__Class'
hello.d:(.text. at safe int std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])[@safe int
std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])]+0x5b): undefined
reference to `@trusted std.exception.ErrnoException
std.exception.ErrnoException.__ctor(immutable(char)[],
immutable(char)[], ulong)'
hello.d:(.text. at safe int std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])[@safe int
std.exception.errnoEnforce!(int,
"/nix/store/x9wfppgz07zgks9yfn7c96965wmrl0xd-dmdBuild-2.079.1/include/d2/std/stdio.d",
2877uL).errnoEnforce(int, lazy immutable(char)[])]+0x63): undefined
reference to `_d_throwdwarf'
hello.o: In function `@safe void
std.stdio.File.LockingTextWriter.put!(immutable(char)).put(immutable(char))':

Unfortunately, I don't have any clue what might be going on...


More information about the Digitalmars-d mailing list