www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD 2.109.1 not detecting object

reply jmh530 <john.michael.hall gmail.com> writes:
It seems like dmd is in the path properly (version 2.109.1), but 
I'm getting an error about object not being found. I tried 
uninstalling and installing again.

Any idea what the issue is?

This machine is using Windows 10.

```
C:\Users\[User Name]\Documents\GitHub\mir-algorithm>dmd --version
DMD64 D Compiler v2.109.1
Copyright (C) 1999-2024 by The D Language Foundation, All Rights 
Reserved written by Walter Bright

C:\Users\[User Name]\Documents\GitHub\mir-algorithm>dub test
      Warning Package at path 'C:\Users\[User 
Name]\AppData\Local\dub\packages\mir_benchmarks_2-master\' should 
be under 'C:\Users\[User 
Name]\AppData\Local\dub\packages\mir_benchmarks_2-master\$VERSION\mir_benchmarks_2-master'
      Warning The package will no longer be detected starting from 
v1.42.0
              Generating test runner configuration 
'mir-algorithm-test-default' for 'default' (library).
     Starting Performing "unittest" build using 
C:\D\dmd2\windows\bin64\dmd.exe for x86_64.
     Building mir-core 1.7.1: building configuration [library]
Error: `object` not found. object.d may be incorrectly installed 
or corrupt.
        dmd might not be correctly installed. Run 'dmd -man' for 
installation instructions.
        config file: C:\D\dmd2\windows\bin64\sc.ini
Error C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.
```
Nov 26 2024
parent reply "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
This is odd.

You shouldn't be getting this for a default install of dmd.

The import paths (``-I``) are not pointing at druntime inside of sc.ini 
config file.
Nov 26 2024
next sibling parent reply Salih Dincer <salihdb hotmail.com> writes:
On Wednesday, 27 November 2024 at 04:37:53 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
 This is odd.

 You shouldn't be getting this for a default install of dmd.

 The import paths (``-I``) are not pointing at druntime inside 
 of sc.ini config file.
I'm also having trouble using ImportC. More accurately, there are no error messages at all, no compilation results. Yes, I also use Windows 11. The problem does not exist in Linux. There are really a lot of problems with Windows OS. I couldn't figure it out and haven't shared it to this day... SDB 79
Nov 27 2024
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 27/11/2024 10:58 PM, Salih Dincer wrote:
 On Wednesday, 27 November 2024 at 04:37:53 UTC, Richard (Rikki) Andrew 
 Cattermole wrote:
 This is odd.

 You shouldn't be getting this for a default install of dmd.

 The import paths (``-I``) are not pointing at druntime inside of 
 sc.ini config file.
I'm also having trouble using ImportC. More accurately, there are no error messages at all, no compilation results. Yes, I also use Windows 11. The problem does not exist in Linux. There are really a lot of problems with Windows OS. I couldn't figure it out and haven't shared it to this day... SDB 79
It does require MSVC on Windows for ImportC, so for all I know right now that the problem could lie there, rather than us.
Nov 27 2024
prev sibling parent reply jmh530 <john.michael.hall gmail.com> writes:
On Wednesday, 27 November 2024 at 04:37:53 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
 This is odd.

 You shouldn't be getting this for a default install of dmd.

 The import paths (``-I``) are not pointing at druntime inside 
 of sc.ini config file.
Is there any information I can provide that will help diagnose? Would the contents of sc.ini help?
Nov 27 2024
parent reply "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 28/11/2024 2:47 AM, jmh530 wrote:
 On Wednesday, 27 November 2024 at 04:37:53 UTC, Richard (Rikki) Andrew 
 Cattermole wrote:
 This is odd.

 You shouldn't be getting this for a default install of dmd.

 The import paths (``-I``) are not pointing at druntime inside of 
 sc.ini config file.
Is there any information I can provide that will help diagnose? Would the contents of sc.ini help?
A stock install of dmd should "just work". But yes, that would help.
Nov 27 2024
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Wednesday, 27 November 2024 at 20:47:04 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
 On 28/11/2024 2:47 AM, jmh530 wrote:
 On Wednesday, 27 November 2024 at 04:37:53 UTC, Richard 
 (Rikki) Andrew Cattermole wrote:
 This is odd.

 You shouldn't be getting this for a default install of dmd.

 The import paths (``-I``) are not pointing at druntime inside 
 of sc.ini config file.
Is there any information I can provide that will help diagnose? Would the contents of sc.ini help?
A stock install of dmd should "just work". But yes, that would help.
Looks like my sc.ini is the same as another machine where dmd seems to be working. I think the issue might be that druntime didn't get installed (comparing the folders in C:\D\dmd2\src between the computer that works and the computer that doesn't). ``` [Version] version=7.51 Build 020 ; environment for both 32/64 bit [Environment] DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import" ; optlink only reads from the Environment section so we need this redundancy ; from the Environment32omf section (bugzilla 11302) LIB="% P%\..\lib" [Environment32] LIB=% P%\..\lib32mscoff [Environment32omf] LIB="% P%\..\lib" LINKCMD=% P%\optlink.exe [Environment64] LIB=% P%\..\lib64 ; ----------------------------------------------------------------------------- [Environment32mscoff] LIB=% P%\..\lib32mscoff ```
Nov 27 2024
parent jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 28 November 2024 at 01:07:29 UTC, jmh530 wrote:
 [snip]
I was able to fix it. I uninstalled it completely and then reinstalled with a fresh copy of the installer (as opposed to letting the installer uninstall first).
Nov 28 2024