Re: Build problems: mpfr, mpc

2021-08-23 Thread Arjen Markus via Fortran
I defined both CFLAGS and CXXFLAGS as -D_GNU_SOURCE and it did the trick. I see a number of unexpected failures in the log, so I will look into those. But the good news is that the procedure does work. Regards, Arjen Op vr 20 aug. 2021 om 15:17 schreef Arjen Markus : > Ah, thanks, I restarted t

Re: Build problems: mpfr, mpc

2021-08-20 Thread Arjen Markus via Fortran
Ah, thanks, I restarted the build with _GNU_SOURCE instead. Regards, Arjen Op vr 20 aug. 2021 om 15:11 schreef Jonathan Wakely : > On Fri, 20 Aug 2021 at 14:09, Jonathan Wakely wrote: > > > > On Fri, 20 Aug 2021 at 13:59, Arjen Markus wrote: > > > > > > Going the WSL2 route (I am not all that f

Re: Build problems: mpfr, mpc

2021-08-20 Thread Jonathan Wakely via Fortran
On Fri, 20 Aug 2021 at 14:09, Jonathan Wakely wrote: > > On Fri, 20 Aug 2021 at 13:59, Arjen Markus wrote: > > > > Going the WSL2 route (I am not all that familiar with WSL) or a Linux > > emulation may be the way to go, indeed, but your remark triggered me to do > > a bit of searching: there is

Re: Build problems: mpfr, mpc

2021-08-20 Thread Jonathan Wakely via Fortran
On Fri, 20 Aug 2021 at 13:59, Arjen Markus wrote: > > Going the WSL2 route (I am not all that familiar with WSL) or a Linux > emulation may be the way to go, indeed, but your remark triggered me to do a > bit of searching: there is some discussion about the secure_getenv() function > wrt Cygwin

Re: Build problems: mpfr, mpc

2021-08-20 Thread Arjen Markus via Fortran
Going the WSL2 route (I am not all that familiar with WSL) or a Linux emulation may be the way to go, indeed, but your remark triggered me to do a bit of searching: there is some discussion about the secure_getenv() function wrt Cygwin but there actually is a prototype for it in Cygwin's stdlib.h.

Re: Build problems: mpfr, mpc

2021-08-20 Thread Richard Biener via Fortran
On Fri, Aug 20, 2021 at 12:55 PM Arjen Markus wrote: > > Okay, that solved that error, now I get: > > -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 > -fdiagnostics-show-location=once -ffunction-sections -fdata-sections > -frandom-seed=fs_ops.lo -fimplicit-templates -g -O2 -c > ../../..

Re: Build problems: mpfr, mpc

2021-08-20 Thread Arjen Markus via Fortran
Okay, that solved that error, now I get: -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=fs_ops.lo -fimplicit-templates -g -O2 -c ../../../../../../libstdc++-v3/src/c++17/fs_ops.cc -o fs_ops.o In file include

Re: Build problems: mpfr, mpc

2021-08-20 Thread Arjen Markus via Fortran
Op vr 20 aug. 2021 om 11:54 schreef Richard Biener: > > > The easiest is probably to build them in-tree by means of > executing ./contrib/download_prerequesites which will download > and unpack them into your source tree. > > Well, I do have the libraries (source and all) and I copied the built li

Re: Build problems: mpfr, mpc

2021-08-20 Thread Richard Biener via Fortran
On Fri, Aug 20, 2021 at 9:59 AM Arjen Markus via Fortran wrote: > > I am trying to build the compiler suite to test the two patches Steve Kargl > posted. But I run into a problem with the mpfr and mpc libraries: the > linker claims it cannot find them. > > I checked this, in fist instance they wer