Opened 7 years ago

Closed 22 months ago

#2863 closed defect (fixed)

FMUs compiled on Linux or Mac are not FMI compliant

Reported by: Tove Bergdahl Owned by: Tove Bergdahl
Priority: major Milestone: Pending
Component: FMI/Export Version: trunk
Keywords: Cc:


Currently, on Linux and Mac, FMUs are dependent on gfortran (and related quadmath). This is against the FMI specification and therefore these FMUs can not be considered to be FMI compliant.

A solution would be to statically link libgfortran, however, this is not possible if gfortran was compiled without fPIC. Which is the case for e.g. gcc in Ubuntu, see history in #1199.

One option would be to detect if the user has a gfortran compiled with fPIC (this could be done during configure) and then link gfortran statically when compiling the FMU. If the user does not have gfortran with fPIC, generate a warning (or similar) to let the user know that the FMUs will not be FMI compliant.

Change History (3)

comment:1 Changed 6 years ago by jakesson

Milestone: 1.10.x

comment:2 Changed 6 years ago by Tove Bergdahl

Milestone: Pending
Owner: set to Tove Bergdahl
Status: newassigned

comment:3 Changed 22 months ago by Jesper Mattsson

Resolution: fixed
Status: assignedclosed

Fixed in other tickets.

Note: See TracTickets for help on using tickets.