Skip to content

Installation failure on WSL2 Ubuntu 22.04 with gcc and gfortran 11.3 #2

@cwendelues

Description

@cwendelues

I failed to install CERNLIB of this version on WSL2 Ubuntu 22.04 with gcc and gfortran 11.3.
The compilation is aborted with these two kinds of messages:

(1) Error of sys_errlist
/cernlib-master/2006/src/packlib/kernlib/kernbit/z268/systems.c:137:59: error: ‘sys_errlist’ undeclared (first use in this function)
/cernlib-master/2006/src/packlib/cspack/sysreq/serror.c:180:32: error: ‘sys_errlist’ undeclared (first use in this function)
/cernlib-master/2006/src/packlib/cspack/sysreq/socket.c:415:16: error: ‘sys_errlist’ undeclared (first use in this function)

(2) Error of sys_nerr
/cernlib-master/2006/src/packlib/cspack/sysreq/serror.c:179:33: error: ‘sys_nerr’ undeclared (first use in this functions)

I have successfully installed this CERNLIB on Ubuntu 18.04 with gcc 7.5.

It seems that the installation failure on Ubuntu 22.04 is resulted from the changes in the update of GNU compiler.

In addition, although the flag -fallow-invalid-boz has been added, there are still some problems caused by using nonstandard X instead of Z for Hexadecimal constant. I have to change X to Z manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions