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

Re: Bug#813649 closed by Alastair McKinstry <mckinstry@debian.org> (Bug#813649: fixed in emoslib 2:4.3.7-1)



On 02/05/2016 12:23 PM, Jose E. Marchesi wrote:
> `large' is not a valid mcmodel in SPARC.  Use medmid or medany instead:

According to the gcc documentation, these are defined as:

-mcmodel=medmid
    Generate code for the Medium/Middle code model: 64-bit addresses,
programs must be linked in the low 44 bits of memory, the text and data
segments must be less than 2GB in size and the data segment must be
located within 2GB of the text segment.
-mcmodel=medany
    Generate code for the Medium/Anywhere code model: 64-bit addresses,
programs may be linked anywhere in memory, the text and data segments
must be less than 2GB in size and the data segment must be located
within 2GB of the text segment.

I therefore chose "medany" and successfully compiled emoslib with this
mcmodel setting.

@Alastair: I therefore suggest setting it to "medany":

ifeq ($(ARCH), sparc64)
  MCMODEL_FLAGS:= -mcmodel=medany
endif

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: