tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: parallel/pvm3 on NetBSD-current



>> => Checking for RELRO in pvm-3.4.6nb2
>> ERROR: pvm3/bin/NETBSDPOWERPC/fgexample: missing RELRO
>
> This is also an error on other platforms:
>
> http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20220624.0020/pvm-3.4.6nb2/install.log

OK.

>> etc., and grep'ing leads to CHECK_RELRO=no being a workaround for
>> that.
>
> It would be better to honor the LDFLAGS in the relevant places.
> I tried to find them once, but didn't... perhaps you have better luck.

I've not been able to keep up: where is the LDFLAGS for doing
RELRO supposed to come from?  I don't find "relro" in mk/ other
than the check-relro file.  And it's not mentioned in the package
Makefile either.

The build log says:

/usr/pkgsrc/parallel/pvm3/work/.cwrapper/bin/libtool  --mode=link --tag=F77 gfortran  -Wl,-R/usr/pkg/pvm3/lib/NETBSDPOWERPC -O -fallow-argument-mismatch  -o fgexample ../../examples/gexample.f \
         -L../../lib/NETBSDPOWERPC -lfpvm3 -lgpvm3 -lpvm3
libtool-fortran: link: gfortran -Wl,-rpath -Wl,/usr/pkg/pvm3/lib/NETBSDPOWERPC -O -fallow-argument-mismatch -o .libs/fgexample ../../examples/gexample.f  -L../../lib/NETBSDPOWERPC -L../../lib/NETBSDPOWERPC/.libs -lfpvm3 -lgpvm3 -lpvm3 -Wl,-rpath,/usr/pkg/pvm3/lib/NETBSDPOWERPC

Isn't that more or less "from the book"?  Despite this, we get

=> Checking for RELRO in pvm-3.4.6nb2
ERROR: pvm3/bin/NETBSDPOWERPC/fgexample: missing RELRO

So I don't get where that is supposed to come from.

This is with gfortran from gcc10 from pkgsrc.  Is the relro
option supposed to be on by default on this platform?  And it
isn't?  That sounds like a longer-term project to deal with...

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index