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

Re: Problem with arm64: mcmodel=large and fPIC



On 2016-12-15 15:16 +0000, Alastair McKinstry wrote:
> Hi,
> 
> I'm the maintainer of a package 'flexpart' which is no longer building
> on arm64.
> 
> https://buildd.debian.org/status/package.php?p=flexpart
> The problem is that I need mcmodel=large, and I now get:
> 
> gfortran -c -O2 -mcmodel=large -O2 -fdefault-real-8
> -fconvert=little-endian -frecord-marker=4 -I/usr/include par_mod.f90
> f951: sorry, unimplemented: code model 'large' with -fPIC
> 
> Notice that fPIC is not set on the command line.
> Any ideas on how to proceed?

I believe that the compiler default was recently changed to be fPIC on
several arches, including arm64, which is presumably why you have
started seeing this. I guess we should either turn fPIC off for this
build or teach gfortran to deal with this 'large' model.

The first is presumably much easier. The second more correct in the
long term.

Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/

Attachment: signature.asc
Description: Digital signature


Reply to: