On Wednesday, 22 December 2021 at 10:05:25 UTC, rempas wrote:
On Wednesday, 22 December 2021 at 09:49:59 UTC, eugene wrote:
It looks strange - leading D compiler is not in Linux/FreeBSD
repos :)
Well no so much.
Well, ok. Now the only thing I can "do" is to wait until
[the
On Wednesday, 22 December 2021 at 09:49:59 UTC, eugene wrote:
It looks strange - leading D compiler is not in Linux/FreeBSD
repos :)
Well no so much. The only official compiler is DMD and when it
comes to that, Digital Mars, has pre-built binaries for most
Linux distros and for FreeBSD.
On Wednesday, 22 December 2021 at 00:43:16 UTC, Johan wrote:
When you run `ldc2 -v test.d` (some arbitrary d file), you
should see "predefs" at the top, followed by a bunch of
predefined versions by the compiler. FreeBSD_xx should be on
that list, and the number should correspond to your OS
On Wednesday, 22 December 2021 at 08:41:56 UTC, eugene wrote:
Both these files are just copies from DMD distribution.
Forget to mention...
[installation instructions](https://dlang.org/dmd-freebsd.html)
are complete mess
I just copied right things to right places manually.
On Wednesday, 22 December 2021 at 08:41:56 UTC, eugene wrote:
You thought right - I **DID NOT** try the latest LDC, I just
looked into
ldc2-1.28.0-freebsd-x86_64.tar.xz archive to see
what is in core/sys/freebsd/config.d and in
core/sys/freebsd/sys/event.d
Both these files are just copies
On Wednesday, 22 December 2021 at 06:50:00 UTC, rempas wrote:
On Tuesday, 21 December 2021 at 21:09:14 UTC, eugene wrote:
* The ldc installed by 'pkg install ldc' (the old one), does
not have config module
* Most resent ldc (link you indicated), does have condig
module, and it is exactly the
On Tuesday, 21 December 2021 at 21:09:14 UTC, eugene wrote:
* The ldc installed by 'pkg install ldc' (the old one), does
not have config module
* Most resent ldc (link you indicated), does have condig
module, and it is exactly the same as condig in most recent dmd
Cool! Makes sense! I
On Tuesday, 21 December 2021 at 21:09:14 UTC, eugene wrote:
On Tuesday, 21 December 2021 at 21:02:21 UTC, rempas wrote:
On Tuesday, 21 December 2021 at 19:55:13 UTC, eugene wrote:
core/sys/freebsd/config.d and core/sys/freebsd/sys/event.d
are the same as in fresh dmd, so there is not much
On Tuesday, 21 December 2021 at 21:02:21 UTC, rempas wrote:
On Tuesday, 21 December 2021 at 19:55:13 UTC, eugene wrote:
core/sys/freebsd/config.d and core/sys/freebsd/sys/event.d
are the same as in fresh dmd, so there is not much sense to
try it.
dmd (including phobos) is a reference, and I
On Tuesday, 21 December 2021 at 19:55:13 UTC, eugene wrote:
core/sys/freebsd/config.d and core/sys/freebsd/sys/event.d
are the same as in fresh dmd, so there is not much sense to try
it.
dmd (including phobos) is a reference, and I do not think,
that ldc is ahead of dmd with it's stdlib.
On Tuesday, 21 December 2021 at 19:40:52 UTC, eugene wrote:
But i like to use software out of the box and
do not like compile it from source.
Me too! The link I gave you has a binary release with LDC2. You
won't have to compile it yourself.
I do not see any reason for me to do this.
The
On Tuesday, 21 December 2021 at 19:49:26 UTC, Steven
Schveighoffer wrote:
If this is a compiler-supplied version, then I don't think you
are allowed to set it explicitly.
moreover... commented out in condig.d like this:
```d
version (FreeBSD_12) enum __FreeBSD_version = 1202000;
//else
On Tuesday, 21 December 2021 at 19:22:35 UTC, rempas wrote:
Yeah, don't use the "pkg" version as it is outdated. It is very
hard to keep a whole OS (thousands of packages) up to date. So
yeah, uninstall your current ldc and trying with the one from
the link I gave you and tell me the output
On 12/21/21 2:32 PM, eugene wrote:
On Tuesday, 21 December 2021 at 19:13:19 UTC, Steven Schveighoffer wrote:
On 12/21/21 1:50 PM, eugene wrote:
```d
version (FreeBSD_12) enum __FreeBSD_version = 1202000;
else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
else version (FreeBSD_10)
On Tuesday, 21 December 2021 at 19:22:35 UTC, rempas wrote:
On Tuesday, 21 December 2021 at 19:00:04 UTC, eugene wrote:
Well, I just installed it by
pkg intstall ldc
Actually, this is my first experience with FreeBSD,
I did not have much to go deeper.
That's nice trying new things ;)
On Tuesday, 21 December 2021 at 19:13:19 UTC, Steven
Schveighoffer wrote:
On 12/21/21 1:50 PM, eugene wrote:
```d
version (FreeBSD_12) enum __FreeBSD_version = 1202000;
else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
else version (FreeBSD_10) enum __FreeBSD_version = 1004000;
On Tuesday, 21 December 2021 at 19:00:04 UTC, eugene wrote:
Well, I just installed it by
pkg intstall ldc
Actually, this is my first experience with FreeBSD,
I did not have much to go deeper.
That's nice trying new things ;)
Oh, no, sorry. :)
It is the problem of FreeBSD maintainers
On 12/21/21 1:50 PM, eugene wrote:
On Tuesday, 21 December 2021 at 17:00:06 UTC, Johan wrote:
I think the fix is needed here:
https://github.com/dlang/dmd/blob/ad8412530e607ffebec36f2dbdff1a6f2798faf7/src/dmd/target.d#L362-L372
looks like this.
it is a little bit strange, that in
On Tuesday, 21 December 2021 at 17:00:06 UTC, Johan wrote:
On Tuesday, 21 December 2021 at 10:28:15 UTC, eugene wrote:
On Monday, 20 December 2021 at 21:19:43 UTC, rempas wrote:
I would recommend you to file an
[issue](https://issues.dlang.org/) just so the developers
themself can notice it.
On Tuesday, 21 December 2021 at 18:42:10 UTC, rempas wrote:
I'm wondering what happens in the latest LDC2 version. Your
version is from 1 year and 4 months ago.
Well, I just installed it by
pkg intstall ldc
Actually, this is my first experience with FreeBSD,
I did not have much to go
On Tuesday, 21 December 2021 at 17:00:06 UTC, Johan wrote:
I think the fix is needed here:
https://github.com/dlang/dmd/blob/ad8412530e607ffebec36f2dbdff1a6f2798faf7/src/dmd/target.d#L362-L372
looks like this.
it is a little bit strange, that in
/usr/include/d/dmd/core/sys/freebsd/config.d
On Tuesday, 21 December 2021 at 18:35:43 UTC, eugene wrote:
LDC2 stdlib does not have correct struct event_t for 12+ in
/usr/local/include/d/core/sys/freebsd/sys/event.d at all,
only for earlier versions, ie without extension field.
DMD stdlib does have, the only problem is the OS version is
On Tuesday, 21 December 2021 at 18:28:12 UTC, rempas wrote:
I would love to see more full (and correct) support for
FreeBSD, OpenBSD and DragonflyBSD from Dlang! Maybe one day..
My interest was kqueue facility.
I use linux epoll facility a lot in my progs,
and just wanted to do some exersises
On Tuesday, 21 December 2021 at 17:32:44 UTC, rempas wrote:
Yeah, you are right! Please eugene use LDC2 and check confirm
LDC2 stdlib does not have correct struct event_t for 12+ in
/usr/local/include/d/core/sys/freebsd/sys/event.d at all,
only for earlier versions, ie without extension field.
I would love to see more full (and correct) support for FreeBSD,
OpenBSD and DragonflyBSD from Dlang! Maybe one day..
On Tuesday, 21 December 2021 at 17:32:44 UTC, rempas wrote:
Please eugene use LDC2 and check confirm that the behavior is
the same there.
Phobos that shipped with LDC, does not have
core.sys.freebsd.config
So
```d
import std.stdio;
//import core.sys.freebsd.config;
import
On Tuesday, 21 December 2021 at 17:32:44 UTC, rempas wrote:
On Tuesday, 21 December 2021 at 17:00:06 UTC, Johan wrote:
Please add which compiler(s) you have tried in the bug report.
Yeah, you are right! Please eugene use LDC2 and check confirm
that the behavior is the same there.
I have.
On Tuesday, 21 December 2021 at 17:00:06 UTC, Johan wrote:
Please add which compiler(s) you have tried in the bug report.
Yeah, you are right! Please eugene use LDC2 and check confirm
that the behavior is the same there.
I think the fix is needed here:
On Tuesday, 21 December 2021 at 10:28:15 UTC, eugene wrote:
On Monday, 20 December 2021 at 21:19:43 UTC, rempas wrote:
I would recommend you to file an
[issue](https://issues.dlang.org/) just so the developers
themself can notice it.
filed an issue, see
On Tuesday, 21 December 2021 at 10:28:15 UTC, eugene wrote:
filed an issue, see
https://issues.dlang.org/show_bug.cgi?id=22615
Nice! Hope they see and fix it soon! Love for open source
Operating Systems!!
On Monday, 20 December 2021 at 21:19:43 UTC, rempas wrote:
I would recommend you to file an
[issue](https://issues.dlang.org/) just so the developers
themself can notice it.
filed an issue, see
https://issues.dlang.org/show_bug.cgi?id=22615
On Monday, 20 December 2021 at 21:19:43 UTC, rempas wrote:
I don't have FreeBSD and I can't check the output and header
I have it VirtualBox
files myself but from what you are saying this seems to me as a
bug. I would recommend you to file an
[issue](https://issues.dlang.org/) just so the
On Sunday, 19 December 2021 at 09:49:29 UTC, eugene wrote:
test program:
```d
import std.stdio;
import core.sys.freebsd.config;
import core.sys.freebsd.sys.event;
void main(string[] args) {
writefln("FreeBSD_version = %s", __FreeBSD_version);
writefln("sizeof(kevent_t) = %s",
test program:
```d
import std.stdio;
import core.sys.freebsd.config;
import core.sys.freebsd.sys.event;
void main(string[] args) {
writefln("FreeBSD_version = %s", __FreeBSD_version);
writefln("sizeof(kevent_t) = %s", kevent_t.sizeof);
}
```
output:
@bsd:~/d> ./freebsdver
34 matches
Mail list logo