-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gracefully fail on missing object.d declarations #552
Comments
Apparrently I can't attach a compressed file of the code, so I'm posting it here ** start.d **
** object.d ***
** rt/sections.d **
|
The following is missing in
You also have to change the alias: In general, you have to define all the TypeInfo-classes. They are used throughout the compiler. I plan to add a general check for these types before code generation starts. This will then point out the missing types. |
Updated issue title to reflect this. |
dmd no longer uses this list on linux
Should be implemented in #2641. |
This is likely caused by the fact that I incrementally porting the D runtime to a cortex-m processor. Therefore, I have not included some of the necessary types from object.d and friends. Nevertheless, the compiler should not crash and I depend on the compiler messages to know what I am missing.
The code causing this error is attached.
Compile with: ldc2 -march=thumb -mcpu=cortex-m4 -v -v-cg -vv -c start.d object.d rt/sections.d
** Full Output **
Host computer is Arch Linux 64-bit
LDC - the LLVM D compiler (0.12.1):
based on DMD v2.063.2 and LLVM 3.3
Default target: x86_64-unknown-linux-gnu
Host CPU: corei7
The text was updated successfully, but these errors were encountered: