D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21873 - Cannot build build.d on OSX with latest dmd 2.096.1
Summary: Cannot build build.d on OSX with latest dmd 2.096.1
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Mac OS X
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-28 08:55 UTC by Walter Bright
Modified: 2022-02-28 00:55 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2021-04-28 08:55:09 UTC
The command:

/Users/walter/dmd.2.096.1/osx/bin/dmd build.d

run in the dmd/src directory produces:

Warning: Syncing file access because of OSX!
Undefined symbols for architecture x86_64:
  "__D3std6format15FormatException6__ctorMFNaNbNfAyaQdmC6object9ThrowableZCQCrQCqQCm", referenced from:
      __D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTAyaZQCgFNfKQBwIAaQrZk in build.o
      __D3std9exception__T7bailOutHTCQBc6format15FormatExceptionZQBnFNaNfAyamMAxaZv in build.o
      __D3std6format__T6getNthVAyaa13_696e7465676572207769647468SQCe6traits10isIntegralTiTQChZQCtFNaNfkQCuZi in build.o
      __D3std6format__T6getNthVAyaa17_696e746567657220707265636973696f6eSQCm6traits10isIntegralTiTQCpZQDbFNaNfkQDcZi in build.o
      __D3std6format__T6getNthVAyaa21_736570617261746f72206469676974207769647468SQCu6traits10isIntegralTiTQCxZQDjFNaNfkQDkZi in build.o
      __D3std6format__T6getNthVAyaa19_736570617261746f7220636861726163746572SQCq6traits10isSomeCharTwTQCtZQDfFNaNfkQDgZw in build.o
      __D3std6format__T14formattedWriteTSQBg5stdio4File17LockingTextWriterTaTkZQCeFNfKQBuIAakZk in build.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1
Comment 1 Walter Bright 2021-04-28 09:22:49 UTC
Note that it does build with dmd 2.095.0

But we really shouldn't be breaking the build with the official latest release.
Comment 2 Mathias LANG 2021-04-29 03:21:21 UTC
I can't reproduce. Compiled with dmd 2.096.1 in `dmd/src` and it compiled fine.
Are you sure you don't have object files laying around and/or a corrupted installation ?