Re: liblto_plugin.so not found

2025-03-13 Thread fr via D.gnu
On Thursday, 13 March 2025 at 02:12:54 UTC, Brian Callahan wrote: You could add -fno-use-linker-plugin as a stop-gap measure, but it seems like you have an installation issue. You probably want a GDC version that matches your GCC version. Thank you Brian, that is helpful. It seems my distribut

Re: liblto_plugin.so not found

2025-03-13 Thread grace via D.gnu
On Thursday, 13 March 2025 at 02:12:54 UTC, Brian Callahan wrote: You could add -fno-use-linker-plugin as a stop-gap measure, but it seems like you have an installation issue. You probably want a GDC version that matches your GCC version. On my machine, gcc --version prints "gcc (GCC) 14.2.0"

Re: liblto_plugin.so not found

2025-03-12 Thread Brian Callahan via D.gnu
You could add -fno-use-linker-plugin as a stop-gap measure, but it seems like you have an installation issue. You probably want a GDC version that matches your GCC version. On my machine, gcc --version prints "gcc (GCC) 14.2.0" and gdc --version prints "gdc (GCC) 14.2.0". ~Brian

liblto_plugin.so not found

2025-03-12 Thread fr via D.gnu
Hey all, I have freshly installed gcc (12.1.0) and gdc (8.2.1) on an Raspberry Pi 3B+ running an arch linux derivative. When trying to compile even very minimal d code with a simple ```gdc code.d```, I get an error: ```gdc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found```

Psychedelic Mushrooms – Nature’s Gateway to Mind Expansion

2025-02-05 Thread steve macrone via D.gnu
Psychedelic mushrooms, also known as magic mushrooms, contain the powerful compound psilocybin, which has been used for centuries for spiritual, therapeutic, and recreational purposes. These natural fungi can enhance creativity, promote deep introspection, and induce profound mystical experienc

Re: GDC 14.2 "package" for macOS/aarch64

2025-01-28 Thread Sergey via D.gnu
On Sunday, 29 December 2024 at 16:10:23 UTC, Sergey wrote: On Sunday, 29 December 2024 at 15:27:42 UTC, Brian Callahan wrote: On Thursday, 26 December 2024 at 20:37:41 UTC, Sergey wrote: I have a /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/lib/libdl.tbd that I got from installing

Re: GDC 14.2 "package" for macOS/aarch64

2024-12-29 Thread Sergey via D.gnu
On Sunday, 29 December 2024 at 15:27:42 UTC, Brian Callahan wrote: On Thursday, 26 December 2024 at 20:37:41 UTC, Sergey wrote: I have a /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/lib/libdl.tbd that I got from installing the command line tools. ~Brian I have only older version

Re: GDC 14.2 "package" for macOS/aarch64

2024-12-29 Thread Brian Callahan via D.gnu
On Thursday, 26 December 2024 at 20:37:41 UTC, Sergey wrote: On Friday, 13 December 2024 at 02:43:52 UTC, Brian Callahan wrote: I got a new Mac yesterday. I was looking for a package of GCC that included GDC but couldn't find one. So I made my own. https://briancallahan.net/blog/20241212.html

Re: GDC 14.2 "package" for macOS/aarch64

2024-12-26 Thread Sergey via D.gnu
On Friday, 13 December 2024 at 02:43:52 UTC, Brian Callahan wrote: I got a new Mac yesterday. I was looking for a package of GCC that included GDC but couldn't find one. So I made my own. https://briancallahan.net/blog/20241212.html Or if you just want the tarball: https://github.com/ibara/ma

GDC 14.2 "package" for macOS/aarch64

2024-12-12 Thread Brian Callahan via D.gnu
I got a new Mac yesterday. I was looking for a package of GCC that included GDC but couldn't find one. So I made my own. https://briancallahan.net/blog/20241212.html Or if you just want the tarball: https://github.com/ibara/macOS-GDC/releases/download/14.2/gcc14.tgz The tarball is designed t

Would APEs work with D?

2024-08-30 Thread Imperatorn via D.gnu
https://forum.dlang.org/post/qazcddlblyqfrmzez...@forum.dlang.org On Friday, 22 March 2024 at 15:12:16 UTC, redthing1 wrote: On Tuesday, 18 May 2021 at 14:43:52 UTC, Imperatorn wrote: On Tuesday, 18 May 2021 at 08:40:10 UTC, Iain Buclaw wrote: On Monday, 17 May 2021 at 11:08:33 UTC, Raimondo Ma

Re: GDC for ARM MacOS / OSX

2024-08-24 Thread Cecil Ward via D.gnu
On Thursday, 22 August 2024 at 17:34:58 UTC, Iain Buclaw wrote: On Thursday, 22 August 2024 at 16:56:06 UTC, Cecil Ward wrote: If I understand Iain’s reply correctly, the showstopper was lack of support for AArch64 / MacOS in GCC at the time. Has that situation improved by now ? If the situ

Re: GDC for ARM MacOS / OSX

2024-08-22 Thread Iain Buclaw via D.gnu
On Thursday, 22 August 2024 at 16:56:06 UTC, Cecil Ward wrote: If I understand Iain’s reply correctly, the showstopper was lack of support for AArch64 / MacOS in GCC at the time. Has that situation improved by now ? If the situation now makes either downloading or building GDC / AArch64 / M

GDC for ARM MacOS / OSX

2024-08-22 Thread Cecil Ward via D.gnu
https://forum.dlang.org/post/mjnbswzizylffjyri...@forum.dlang.org On Thursday, 29 June 2023 at 17:16:42 UTC, Cecil Ward wrote: On Thursday, 29 June 2023 at 09:18:19 UTC, Iain Buclaw wrote: On Thursday, 29 June 2023 at 05:27:57 UTC, Cecil Ward wrote: I tried getting GCC on my ARM M2 Mac using th

Re: What's the latest GDC stable release version?

2024-06-28 Thread Next Level Gaming Store via D.gnu
On Sunday, 16 June 2024 at 19:04:03 UTC, mw wrote: Hi, What's the latest GDC stable release version? The GDC link on: https://dlang.org/download.html is very out dated. I think it at least should show the latest version number, and link to the announcement. Thanks. ou're absolutely righ

Re: What's the latest GDC stable release version?

2024-06-27 Thread singingbush via D.gnu
On Sunday, 16 June 2024 at 19:04:03 UTC, mw wrote: Hi, What's the latest GDC stable release version? The GDC link on: https://dlang.org/download.html is very out dated. I think it at least should show the latest version number, and link to the announcement. Thanks. It's worth seeing th

Re: ICE: in get_frame_for_symbol, at d/d-codegen.cc:2428

2024-06-21 Thread Andrey Zherikov via D.gnu
On Friday, 21 June 2024 at 18:02:36 UTC, Iain Buclaw wrote: On Friday, 21 June 2024 at 17:10:33 UTC, Andrey Zherikov wrote: Saw [here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541] Is this known problem? ``` Which patch release of gdc-12 is being used her

Re: ICE: in get_frame_for_symbol, at d/d-codegen.cc:2428

2024-06-21 Thread Iain Buclaw via D.gnu
On Friday, 21 June 2024 at 17:10:33 UTC, Andrey Zherikov wrote: Saw [here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541] Is this known problem? ``` Which patch release of gdc-12 is being used here? I can't reproduce with 12.3.0. Doing a spot check of t

Re: ICE: in get_frame_for_symbol, at d/d-codegen.cc:2428

2024-06-21 Thread Andrey Zherikov via D.gnu
Sorry, link wasn't rendered correctly: https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541

ICE: in get_frame_for_symbol, at d/d-codegen.cc:2428

2024-06-21 Thread Andrey Zherikov via D.gnu
Saw [here|https://github.com/andrey-zherikov/argparse/actions/runs/9617154563/job/26528299541] Is this known problem? ``` /usr/bin/gdc-12 -fdebug -fprofile-arcs -ftest-coverage -g -funittest -Werror -Wall -fversion=Have_argparse -Isource/ -I../../../.dub/cache/argparse/~workflow/code/argparse-t

What's the latest GDC stable release version?

2024-06-16 Thread mw via D.gnu
Hi, What's the latest GDC stable release version? The GDC link on: https://dlang.org/download.html is very out dated. I think it at least should show the latest version number, and link to the announcement. Thanks.

Re: Bad codegen for comparison with postfix increment

2024-05-09 Thread Iain Buclaw via D.gnu
On Thursday, 9 May 2024 at 18:24:12 UTC, Iain Buclaw wrote: On Wednesday, 8 May 2024 at 14:26:25 UTC, Paul Backus wrote: When the following program is compiled with GDC 14.1, the assertion fails: void main() { int d = 42; bool o = d > d++; assert(o == false); }

Re: Bad codegen for comparison with postfix increment

2024-05-09 Thread Iain Buclaw via D.gnu
On Wednesday, 8 May 2024 at 14:26:25 UTC, Paul Backus wrote: When the following program is compiled with GDC 14.1, the assertion fails: void main() { int d = 42; bool o = d > d++; assert(o == false); } (Godbolt: https://d.godbolt.org/z/e63xbb9Td) The assertion

Bad codegen for comparison with postfix increment

2024-05-08 Thread Paul Backus via D.gnu
When the following program is compiled with GDC 14.1, the assertion fails: void main() { int d = 42; bool o = d > d++; assert(o == false); } (Godbolt: https://d.godbolt.org/z/e63xbb9Td) The assertion passes when the program is compiled with DMD 2.108.0. The s

D1 compiler for Mac

2024-05-03 Thread susugagalala via D.gnu
Is the D1 compiler for Mac still available for download. If only the source code is available, how do I go about building a D1 compiler for Mac?

Re: Would APEs work with D?

2024-04-15 Thread Imperatorn via D.gnu
On Friday, 22 March 2024 at 15:12:16 UTC, redthing1 wrote: On Tuesday, 18 May 2021 at 14:43:52 UTC, Imperatorn wrote: On Tuesday, 18 May 2021 at 08:40:10 UTC, Iain Buclaw wrote: On Monday, 17 May 2021 at 11:08:33 UTC, Raimondo Mancino wrote: [...] The command would be pretty much the same as

Re: Xtensa support

2024-04-14 Thread Witold Baryluk via D.gnu
On Sunday, 14 April 2024 at 16:04:54 UTC, Matheus Catarino wrote: Espressif/LLVM have xtensa-ABI (windowed) partial support, but GCC [upstream and fork] have both xtensa-ABI (call0 & windowed) OK. BTW. If you are on Debian / Ubuntu, xtensa cross compilers for C,C++,D are prepackaged in offici

Re: Xtensa support

2024-04-14 Thread Matheus Catarino via D.gnu
On Sunday, 14 April 2024 at 07:25:07 UTC, Witold Baryluk wrote: On Friday, 12 April 2024 at 23:16:30 UTC, Matheus Catarino wrote: I've recently seen support for different target architectures on https://explore.dgnu.org . What is the status of Xtensa and xtensa-gnu support? Does it support both

Re: Xtensa support

2024-04-14 Thread Witold Baryluk via D.gnu
On Friday, 12 April 2024 at 23:16:30 UTC, Matheus Catarino wrote: I've recently seen support for different target architectures on https://explore.dgnu.org . What is the status of Xtensa and xtensa-gnu support? Does it support both xtensa ABIs (call0 and windowed)? Currently there is a need to

Xtensa support

2024-04-12 Thread Matheus Catarino via D.gnu
I've recently seen support for different target architectures on https://explore.dgnu.org . What is the status of Xtensa and xtensa-gnu support? Does it support both xtensa ABIs (call0 and windowed)? Currently there is a need to fork espressif/LLVM when using ldc2. Is there a need to fork espr

Re: Writing a GCC Front End with D!

2024-04-03 Thread Jinftry via D.gnu
On Saturday, 23 March 2024 at 17:41:15 UTC, Iain Buclaw wrote: On Wednesday, 20 March 2024 at 13:19:27 UTC, Mahdis wrote: [...] To point out a few things you may not already be aware of / offer some thoughts in what I hope reads as neutral. [...] https://www.jinftry.com/

Re: Writing a GCC Front End with D!

2024-03-23 Thread Iain Buclaw via D.gnu
On Wednesday, 20 March 2024 at 13:19:27 UTC, Mahdis wrote: Hi, I have a question about the possibility of developing a new frontend language for GIMPLE in GCC using D instead of C++. To point out a few things you may not already be aware of / offer some thoughts in what I hope reads as neu

Re: Would APEs work with D?

2024-03-22 Thread redthing1 via D.gnu
On Tuesday, 18 May 2021 at 14:43:52 UTC, Imperatorn wrote: On Tuesday, 18 May 2021 at 08:40:10 UTC, Iain Buclaw wrote: On Monday, 17 May 2021 at 11:08:33 UTC, Raimondo Mancino wrote: [...] The command would be pretty much the same as gcc (`-nostdinc -nostdlib`), but instead of `-include cosm

Writing a GCC Front End with D!

2024-03-20 Thread Mahdis via D.gnu
Hi, I have a question about the possibility of developing a new frontend language for GIMPLE in GCC using D instead of C++. I'm interested in exploring this possibility because D offers several advantages over C++, including: 1. Memory safety: D's garbage collector eliminates the need for

Re: GDC on CYGWIN available

2024-02-06 Thread Tim Stahlhut via D.gnu
On Tuesday, 22 August 2023 at 15:25:25 UTC, jicman wrote: On Wednesday, 7 June 2023 at 18:04:43 UTC, Ferhat Kurtulmuş wrote: [...] Ok, maybe we can get this fixed, somehow. :-) [...] Any progress on getting cygwin GDC to work? Tim S.

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
On 15/01/2024 1:23 AM, pizza_dox_ wrote: On Sunday, 14 January 2024 at 11:54:09 UTC, Richard (Rikki) Andrew Cattermole wrote: On 15/01/2024 12:47 AM, pizza_dox_ wrote: OK to make it clear. I wanted to call d from c so that I can write a n64 game with d. But compiling the d object file

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread pizza_dox_9999 via D.gnu
On Sunday, 14 January 2024 at 11:54:09 UTC, Richard (Rikki) Andrew Cattermole wrote: On 15/01/2024 12:47 AM, pizza_dox_ wrote: OK to make it clear. I wanted to call d from c so that I can write a n64 game with d. But compiling the d object files while using higher features like classes, res

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
On 15/01/2024 12:47 AM, pizza_dox_ wrote: OK to make it clear. I wanted to call d from c so that I can write a n64 game with d. But compiling the d object files while using higher features like classes, resulted in missing dependencys. So because GCC doesnt understands d I need an object fi

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread pizza_dox_9999 via D.gnu
OK to make it clear. I wanted to call d from c so that I can write a n64 game with d. But compiling the d object files while using higher features like classes, resulted in missing dependencys. So because GCC doesnt understands d I need an object file which has everything included d needs to ru

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
On 15/01/2024 12:42 AM, pizza_dox_ wrote: On Sunday, 14 January 2024 at 10:05:12 UTC, Richard (Rikki) Andrew Cattermole wrote: On 08/01/2024 7:14 AM, Renato wrote: On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_ wrote: [...] Did you try using dub and specifying `targetType="sta

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread pizza_dox_9999 via D.gnu
On Sunday, 14 January 2024 at 10:05:12 UTC, Richard (Rikki) Andrew Cattermole wrote: On 08/01/2024 7:14 AM, Renato wrote: On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_ wrote: [...] Did you try using dub and specifying `targetType="staticLibrary"`? See https://dub.pm/dub-referen

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
On 08/01/2024 7:14 AM, Renato wrote: On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_ wrote: Hi, I am trying with gdc to create the equivalent of a fat jar. So for that I would need the standard dlang library included in the object or library file. Does somebody know the needed gdc fla

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread Renato via D.gnu
On Sunday, 14 January 2024 at 09:36:16 UTC, pizza_dox_ wrote: On Sunday, 7 January 2024 at 18:14:12 UTC, Renato wrote: On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_ wrote: Hi, I am trying with gdc to create the equivalent of a fat jar. So for that I would need the standard dlang

Re: Create a self contained object file like fat jars from java

2024-01-14 Thread pizza_dox_9999 via D.gnu
On Sunday, 7 January 2024 at 18:14:12 UTC, Renato wrote: On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_ wrote: Hi, I am trying with gdc to create the equivalent of a fat jar. So for that I would need the standard dlang library included in the object or library file. Does somebody kno

Re: gdc latest Cygwin

2024-01-11 Thread Iain Buclaw via D.gnu
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

Re: Create a self contained object file like fat jars from java

2024-01-07 Thread Renato via D.gnu
On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_ wrote: Hi, I am trying with gdc to create the equivalent of a fat jar. So for that I would need the standard dlang library included in the object or library file. Does somebody know the needed gdc flags? I am using mips64-linux-gnuabi64

Create a self contained object file like fat jars from java

2024-01-05 Thread pizza_dox_9999 via D.gnu
Hi, I am trying with gdc to create the equivalent of a fat jar. So for that I would need the standard dlang library included in the object or library file. Does somebody know the needed gdc flags? I am using mips64-linux-gnuabi64-gdc-12. pizza_dox_

Re: gdc latest Cygwin

2024-01-01 Thread Siarhei Siamashka via D.gnu
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.

Re: gdc latest Cygwin

2024-01-01 Thread Siarhei Siamashka via D.gnu
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 net

Re: gdc latest Cygwin

2024-01-01 Thread Iain Buclaw via D.gnu
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/ndoljmmelsslcjvrs...@forum.dlang.org Might not be be

Re: gdc latest Cygwin

2024-01-01 Thread Siarhei Siamashka via D.gnu
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/ndoljmmelsslcjvrs...@forum.dlang.org

gdc latest Cygwin

2024-01-01 Thread tdm3j2bqz via D.gnu
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 instructio

Re: etc.c.sqlite3 missing from GDC phobos since gcc-12?

2023-12-13 Thread singingbush via D.gnu
On Friday, 11 August 2023 at 05:50:43 UTC, Joe Kappus wrote: I noticed this yesterday when trying to package the dlang onedrive client in Gentoo with GDC 13.2 and it failed since it requires this. It appears to have been removed when gdc became self-hosting in gcc during the gcc-12 release cy

Re: cross-GDC for tiny embedded Linux

2023-11-25 Thread Dmitry Ponyatov via D.gnu
Did you solve it? No, project delayed until I'll have enough deep qualification in system-level D coding

Re: cross-GDC for tiny embedded Linux

2023-10-30 Thread Imperatorn via D.gnu
On Wednesday, 25 October 2023 at 17:11:11 UTC, Dmitry Ponyatov wrote: How/where are you referencing mmap64? Could some include be missing or path issue? ref/gcc-12.3.0/libphobos/libdruntime/core/internal/gc/os.d:145 ref/gcc-12.3.0/libphobos/libdruntime/core/thread/fiber.d:1050 host/lib/gcc/i686

Re: cross-GDC for tiny embedded Linux

2023-10-25 Thread Dmitry Ponyatov via D.gnu
How/where are you referencing mmap64? Could some include be missing or path issue? ref/gcc-12.3.0/libphobos/libdruntime/core/internal/gc/os.d:145 ref/gcc-12.3.0/libphobos/libdruntime/core/thread/fiber.d:1050 host/lib/gcc/i686-linux-musl/12.3.0/../../../../i686-linux-musl/lib/libgphobos.a(os.o) e

Re: cross-GDC for tiny embedded Linux

2023-10-22 Thread Imperatorn via D.gnu
On Sunday, 22 October 2023 at 21:52:18 UTC, Dmitry Ponyatov wrote: [...] fixed by moving to `musl` usage -- not a surprise that `uClibc` becomes obsoleted libc comparing their compilation time, configuration complexity, and incompatibility with modern toolchains [...] How/where are you r

Re: cross-GDC for tiny embedded Linux

2023-10-22 Thread Dmitry Ponyatov via D.gnu
Here the next problem of building `gcc-12.3.0` with `uClibc-ng-1.0.44` (i386 target): fixed by moving to `musl` usage -- not a surprise that `uClibc` becomes obsoleted libc comparing their compilation time, configuration complexity, and incompatibility with modern toolchains But the next li

riscv-unknown-elf-as wont accept .section

2023-10-22 Thread Paul via D.gnu
I'm following a tutorial that offers this file (start.s), .section ".text.boot" .globl _start _start: la sp, _stack_start call dstart _hlt: j _hlt # jump to _hlt ...assembled with this, **riscv64-unknown-elf-as -mno-relax -march=rv64imac start.s -c -o sta

Re: cross-GDC for tiny embedded Linux

2023-10-22 Thread Dmitry Ponyatov via D.gnu
Here the next problem of building `gcc-12.3.0` with `uClibc-ng-1.0.44` (i386 target): ``` libtool: compile: /home/ponyatov/player/tmp/gcc-12.3.0-1/./gcc/gdc -B/home/ponyatov/player/tmp/gcc-12.3.0-1/./gcc/ -B/home/ponyatov/player/host/i686-linux-uclibc/bin/ -B/home/ponyatov/player/host/i686-l

Re: cross-GDC for tiny embedded Linux

2023-10-22 Thread Dmitry Ponyatov via D.gnu
You'll need at least gcc-9/gdc-9 to build gcc-13. Version problem was fixed by building `gcc-12.3.0` with `gdc` enabled on local host, and using it for the whole build in place of system-provided `gcc` toolchain. ```Makefile # version GCC_VER = 12.3.0 ``` ```Makefile # tool GDCH = /usr/

Re: cross-GDC for tiny embedded Linux

2023-10-22 Thread Iain Buclaw via D.gnu
On Saturday, 21 October 2023 at 23:13:57 UTC, Dmitry Ponyatov wrote: ```sh gdc --version ``` ``` gdc (Debian 8.3.0-6) 8.3.0 ``` You'll need at least gcc-9/gdc-9 to build gcc-13.

Re: cross-GDC for tiny embedded Linux

2023-10-21 Thread Dmitry Ponyatov via D.gnu
```sh gdc --version ``` ``` gdc (Debian 8.3.0-6) 8.3.0 ```

cross-GDC for tiny embedded Linux

2023-10-21 Thread Dmitry Ponyatov via D.gnu
I'm trying to build a tiny Linux system with cross-compiling GDB: https://github.com/ponyatov/player/blob/shadow/Makefile ``` BINUTILS_VER = 2.41 GCC_VER = 13.2.0 ``` ```sh cat /etc/os-release ``` ``` PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION

Re: a mysterious linking error introduced by import a library

2023-10-17 Thread Iain Buclaw via D.gnu
On Saturday, 14 October 2023 at 19:28:59 UTC, Johann wrote: On Saturday, 14 October 2023 at 19:01:53 UTC, Iain Buclaw wrote: On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I shoul

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 19:01:53 UTC, Iain Buclaw wrote: On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I should have filed this bug in other places. Thanks for your atten

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Iain Buclaw via D.gnu
On Saturday, 14 October 2023 at 17:53:01 UTC, Johann wrote: I cannot figure out this error is caused by `squiz_box` libray, `gdc` or `dub`. My apologies to you if I should have filed this bug in other places. Thanks for your attention. Based on the symbol names, it could be this PR, which was

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 18:15:11 UTC, Richard (Rikki) Andrew Cattermole wrote: The frontend will attempt to not emit all template instantiations if it thinks that the instantiation isn't used. However it sometimes get this wrong, so you have to override it and tell it to emit them all a

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
The frontend will attempt to not emit all template instantiations if it thinks that the instantiation isn't used. However it sometimes get this wrong, so you have to override it and tell it to emit them all anyway and let the linker do the eliding instead. This is a known problem of all the co

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
On Saturday, 14 October 2023 at 17:58:27 UTC, Richard (Rikki) Andrew Cattermole wrote: This may be a simple case of template emission eliding. Did you try ``-fall-instantiations`` inside of a dflags directive? Yeah, that works perfectly, thank you a lot. This may be a simple case of templat

Re: a mysterious linking error introduced by import a library

2023-10-14 Thread Richard (Rikki) Andrew Cattermole via D.gnu
This may be a simple case of template emission eliding. Did you try ``-fall-instantiations`` inside of a dflags directive?

a mysterious linking error introduced by import a library

2023-10-14 Thread Johann via D.gnu
The following is a project created by `dub init`. dub.json ```json { "authors": [ "john" ], "dependencies": { "squiz-box": { "repository": "git+https://github.com/rtbo/squiz-box.git";, "versio

Re: etc.c.sqlite3 missing from GDC phobos since gcc-12?

2023-09-22 Thread Imperatorn via D.gnu
On Friday, 11 August 2023 at 05:50:43 UTC, Joe Kappus wrote: I noticed this yesterday when trying to package the dlang onedrive client in Gentoo with GDC 13.2 and it failed since it requires this. It appears to have been removed when gdc became self-hosting in gcc during the gcc-12 release cy

Re: GCC analyzer false positive

2023-09-22 Thread Iain Buclaw via D.gnu
On Thursday, 31 August 2023 at 13:53:55 UTC, Zachary Yedidia wrote: The following code generates a warning when using GCC analyzer, but I don't think the warning is valid. ``` struct Guard { ~this() {} } Guard lock() { return Guard(); } void bar() { auto foo = lock(); } ``` Compile

Re: GCC analyzer false positive

2023-09-01 Thread Iain Buclaw via D.gnu
On Thursday, 31 August 2023 at 13:53:55 UTC, Zachary Yedidia wrote: The following code generates a warning when using GCC analyzer, but I don't think the warning is valid. ``` struct Guard { ~this() {} } Guard lock() { return Guard(); } void bar() { auto foo = lock(); } ``` Compile

GCC analyzer false positive

2023-08-31 Thread Zachary Yedidia via D.gnu
The following code generates a warning when using GCC analyzer, but I don't think the warning is valid. ``` struct Guard { ~this() {} } Guard lock() { return Guard(); } void bar() { auto foo = lock(); } ``` Compiled with GCC version 13.1: ``` $ gdc -fanalyzer test.d -O2 -c test.d:

Re: GDC on CYGWIN available

2023-08-22 Thread Ferhat Kurtulmuş via D.gnu
On Tuesday, 22 August 2023 at 15:25:25 UTC, jicman wrote: On Wednesday, 7 June 2023 at 18:04:43 UTC, Ferhat Kurtulmuş wrote: [...] Ok, maybe we can get this fixed, somehow. :-) [...] Not sure but there should be a config file similar to LDC's ldc2.conf but for GDC.

Re: GDC on CYGWIN available

2023-08-22 Thread jicman via D.gnu
On Wednesday, 7 June 2023 at 18:04:43 UTC, Ferhat Kurtulmuş wrote: I ve been waiting for an answer for this question too. GDC has lack of windows support for ages. Ok, maybe we can get this fixed, somehow. :-) I installed GDC from cygwin's setup tool. If I run, ``` $ gdc -v Using built-in sp

Re: gdc ice

2023-08-09 Thread Iain Buclaw via D.gnu
On Wednesday, 9 August 2023 at 12:51:51 UTC, Adam D Ruppe wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110959 Related DMD bug - the backporting of which looks like it'd fix your test case too. https://issues.dlang.org/show_bug.cgi?id=23010

Re: gdc ice

2023-08-09 Thread Adam D Ruppe via D.gnu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110959

Re: gdc ice

2023-08-09 Thread Adam D Ruppe via D.gnu
On Wednesday, 9 August 2023 at 12:44:16 UTC, Iain Buclaw wrote: Can you raise a bug report against gcc.gnu.org/bugzilla? yeah i just got the email approving the account a minute ago. didn't take as long as i thought it would lol

Re: gdc ice

2023-08-09 Thread Iain Buclaw via D.gnu
On Wednesday, 9 August 2023 at 11:48:41 UTC, Adam D Ruppe wrote: $ cat gdcbug.d class ArsdExceptionBase : object.Exception { package this(string operation, string file = __FILE__, size_t line = __LINE__, Throwable next = null) { super(operation, file, line, next);

gdc ice

2023-08-09 Thread Adam D Ruppe via D.gnu
$ gdc --version gdc (GCC) 12.2.0 Copyright (C) 2022 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. $ gdc gdcbug.d gdcbug.d: In function ‘D main’: gdcbug.d:40

Re: ImportC automatic preprocessor?

2023-07-27 Thread Iain Buclaw via D.gnu
On Wednesday, 26 July 2023 at 04:35:43 UTC, Chris Piker wrote: Is that a feature that is likely, or unlikely, to be added to a future version of GDC? I expect it to be incremental. There's a POC implementation that uses the built-in preprocessor that already exists in gdc (libcpp), initial

ImportC automatic preprocessor?

2023-07-25 Thread Chris Piker via D.gnu
Hi GDC Over at: https://gcc.gnu.org/onlinedocs/gdc/Missing-Features.html I read that GDC doesn't invoke the preprocessor automatically: ``` ImportC Limitations GNU D does not run the preprocessor automatically for any ImportC sources. Instead all C files are expected to be manually prep

Re: Can gdc --version or -dumpversion output the corresponding DMD front-end (language) version?

2023-07-13 Thread Ernesto Castellotti via D.gnu
On Tuesday, 11 July 2023 at 18:08:30 UTC, mw wrote: Hi, Currently, ``` $ gdc-12 --version gdc-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0 $ gdc-12 -dumpversion 12 ``` this is not very informative, as D (DMD) language is always changing, Can gdc --version or -dumpversion output the correspondin

Can gdc --version or -dumpversion output the corresponding DMD front-end (language) version?

2023-07-11 Thread mw via D.gnu
Hi, Currently, ``` $ gdc-12 --version gdc-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0 $ gdc-12 -dumpversion 12 ``` this is not very informative, as D (DMD) language is always changing, Can gdc --version or -dumpversion output the corresponding DMD front-end (language) version? just as LDC doe

Re: Instruct gdc to look for standard library in another directory

2023-07-08 Thread Johann via D.gnu
On Saturday, 1 July 2023 at 16:53:10 UTC, Johann wrote: On Saturday, 1 July 2023 at 15:36:55 UTC, Johann wrote: On Saturday, 1 July 2023 at 10:18:43 UTC, Iain Buclaw wrote: Is it too much to ask downstream package maintainers to politely use `/usr/share/dlang/{ldc,dmd}` ? :-) Thanks for your

Re: Instruct gdc to look for standard library in another directory

2023-07-01 Thread Johann via D.gnu
On Saturday, 1 July 2023 at 15:36:55 UTC, Johann wrote: On Saturday, 1 July 2023 at 10:18:43 UTC, Iain Buclaw wrote: Is it too much to ask downstream package maintainers to politely use `/usr/share/dlang/{ldc,dmd}` ? :-) Thanks for your help, Iain. I am going to report a bug to the distro mai

Re: Instruct gdc to look for standard library in another directory

2023-07-01 Thread Johann via D.gnu
On Saturday, 1 July 2023 at 10:18:43 UTC, Iain Buclaw wrote: Is it too much to ask downstream package maintainers to politely use `/usr/share/dlang/{ldc,dmd}` ? :-) Thanks for your help, Iain. I am going to report a bug to the distro maintainers then.

Re: Instruct gdc to look for standard library in another directory

2023-07-01 Thread Iain Buclaw via D.gnu
On Saturday, 1 July 2023 at 06:53:02 UTC, Johann wrote: I have both `ldc` and `gdc` install on my OpenSUSE tumbleweed machine. ` Without `ldc-runtime-devel`, `gdc` is able to compile successfully. [--snip--] How may I fix it? I tried to use "-I" and "-B" option, but to no avail. Looks l

Re: Regression - quality of generated x86-64 code between GDC v12.3 and v13.1

2023-07-01 Thread Iain Buclaw via D.gnu
On Thursday, 8 June 2023 at 11:39:38 UTC, Iain Buclaw wrote: On Thursday, 8 June 2023 at 04:13:30 UTC, Cecil Ward wrote: I wrote a very small procedure in D and the x86-64 asm code generated in GDC 12.3 was excellent whereas that from 13.1 was insanely bloated, totally different. Note: the badn

Instruct gdc to look for standard library in another directory

2023-06-30 Thread Johann via D.gnu
I have both `ldc` and `gdc` install on my OpenSUSE tumbleweed machine. Without `ldc-runtime-devel`, `gdc` is able to compile successfully. ```bash binary/usr/lib64/gcc/x86_64-suse-linux/13/d21 version v2.103.0-rc.1 predefs GNU D_Version2 LittleEndian GNU_DWARF2_Exceptions GNU_StackGr

Re: GDC for ARM MacOS / OSX

2023-06-29 Thread Cecil Ward via D.gnu
On Thursday, 29 June 2023 at 09:18:19 UTC, Iain Buclaw wrote: On Thursday, 29 June 2023 at 05:27:57 UTC, Cecil Ward wrote: I tried getting GCC on my ARM M2 Mac using the homebrew package manager, which is how I got LDC. It gave me C++ and C and FORTRAN, but no sign of any GDC. How is GCC avai

Re: GDC for ARM MacOS / OSX

2023-06-29 Thread Iain Buclaw via D.gnu
On Thursday, 29 June 2023 at 05:27:57 UTC, Cecil Ward wrote: I tried getting GCC on my ARM M2 Mac using the homebrew package manager, which is how I got LDC. It gave me C++ and C and FORTRAN, but no sign of any GDC. How is GCC available when it has no support for aarch64-darwin2x? (Experiment

GDC for ARM MacOS / OSX

2023-06-28 Thread Cecil Ward via D.gnu
I tried getting GCC on my ARM M2 Mac using the homebrew package manager, which is how I got LDC. It gave me C++ and C and FORTRAN, but no sign of any GDC.

Re: bug report x86-64 code: je / jbe

2023-06-25 Thread Iain Buclaw via D.gnu
On Monday, 19 June 2023 at 09:54:32 UTC, Iain Buclaw wrote: On Sunday, 18 June 2023 at 02:55:32 UTC, Cecil Ward wrote: On Friday, 16 June 2023 at 13:12:06 UTC, Iain Buclaw wrote: Redundant jump? Yes, arguably. Leads to wrong runtime? Doesn't look that way. Completely agree with Iain, it’s n

Re: bug report x86-64 code: je / jbe

2023-06-19 Thread Iain Buclaw via D.gnu
On Sunday, 18 June 2023 at 02:55:32 UTC, Cecil Ward wrote: On Friday, 16 June 2023 at 13:12:06 UTC, Iain Buclaw wrote: Redundant jump? Yes, arguably. Leads to wrong runtime? Doesn't look that way. Completely agree with Iain, it’s not incorrect code, I wasn’t intending to suggest that. I’d j

Re: bug report x86-64 code: je / jbe

2023-06-17 Thread Cecil Ward via D.gnu
On Friday, 16 June 2023 at 13:12:06 UTC, Iain Buclaw wrote: On Wednesday, 14 June 2023 at 12:35:43 UTC, Cecil Ward wrote: I have just noticed a bug in the latest release of GDC that targets x86-64. For example GDC 12.3 and above versions too, running on X86-64, targeting self. This was built wi

Re: bug report x86-64 code: je / jbe

2023-06-16 Thread Iain Buclaw via D.gnu
On Wednesday, 14 June 2023 at 12:35:43 UTC, Cecil Ward wrote: I have just noticed a bug in the latest release of GDC that targets x86-64. For example GDC 12.3 and above versions too, running on X86-64, targeting self. This was built with: -O3 -frelease -march=alderlake What leads you to bel

  1   2   3   4   5   6   7   8   9   10   >