www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc latest Cygwin

reply tdm3j2bqz <tdm3j2bqz mozmail.com> writes:
This is from a regular Cygwin package called gcc-gdc installed 
after the gcc-core package was installed.
```
$ gdc hello.d -o hello
d21: error: cannot find source code for runtime library file 
'object.d'
d21: note: dmd might not be correctly installed. Run 'dmd -man' 
for installation instructions.
d21: note: config file: not found

$ dmd
-bash: dmd: command not found

$ which gdc
/usr/bin/gdc

$ gdc --version
gdc (GCC) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.
```
Is gdc known to work on Cygwin?
Jan 01
parent reply Siarhei Siamashka <siarhei.siamashka gmail.com> writes:
On Monday, 1 January 2024 at 23:49:41 UTC, tdm3j2bqz wrote:
 Is gdc known to work on Cygwin?
There's already a discussion thread about this: https://forum.dlang.org/thread/ndoljmmelsslcjvrsvjp forum.dlang.org
Jan 01
parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On Monday, 1 January 2024 at 23:59:38 UTC, Siarhei Siamashka 
wrote:
 On Monday, 1 January 2024 at 23:49:41 UTC, tdm3j2bqz wrote:
 Is gdc known to work on Cygwin?
There's already a discussion thread about this: https://forum.dlang.org/thread/ndoljmmelsslcjvrsvjp forum.dlang.org
Might not be best to wait for me to port it, as anything on Windows tends to get sidetracked given that I have no access to any machine running it. The bulk of the work is really in adding CRuntime_Newlib support to upstream druntime, then there should be nothing blocking you from building the library.
Jan 01
parent reply Siarhei Siamashka <siarhei.siamashka gmail.com> writes:
On Tuesday, 2 January 2024 at 00:07:39 UTC, Iain Buclaw wrote:
 Might not be best to wait for me to port it, as anything on 
 Windows tends to get sidetracked given that I have no access to 
 any machine running it.
I have an obsolete 32-bit Windows 7 preinstalled on a single-core Atom 1.66GHz netbook with 1GB RAM collecting dust somewhere in my closet. So I'm surely in a somewhat better position than you when it comes to having access to machines running Windows. But it's hardly suitable for developing any modern software on it nowadays. Github CI jobs support Windows and that's what I'm realistically using for testing my DUB packages on this platform.
 The bulk of the work is really in adding CRuntime_Newlib 
 support to upstream druntime, then there should be nothing 
 blocking you from building the library.
Thanks for giving the Windows users this hint. It's much better than the radio silence.
Jan 01
parent reply Siarhei Siamashka <siarhei.siamashka gmail.com> writes:
On Tuesday, 2 January 2024 at 01:49:47 UTC, Siarhei Siamashka 
wrote:
 Thanks for giving the Windows users this hint. It's much better 
 than the radio silence.
And by the way, I'm not being sarcastic. Having any hints is really useful for the potential contributors.
Jan 01
parent Iain Buclaw <ibuclaw gdcproject.org> writes:
On Tuesday, 2 January 2024 at 03:14:05 UTC, Siarhei Siamashka 
wrote:
 On Tuesday, 2 January 2024 at 01:49:47 UTC, Siarhei Siamashka 
 wrote:
 Thanks for giving the Windows users this hint. It's much 
 better than the radio silence.
And by the way, I'm not being sarcastic. Having any hints is really useful for the potential contributors.
To try and encourage you, here's the `core.stdc` part of the bindings. Someone's still got to do the `core.sys` bit though, and do the validating of the druntime parts that depend on these. https://github.com/dlang/dmd/pull/16022 Wouldn't hold my breath to see the second/third parts of newlib support this side of the month.
Jan 11