The FreeBSD port fails to build

Problems with Dalton installation? Find answers or ask for help here
Post Reply
yurivict
Posts: 2
Joined: 15 Dec 2018, 05:08
First name(s): Yuri
Last name(s): Zzz
Affiliation: FreeBSD
Country: United States

The FreeBSD port fails to build

Post by yurivict » 15 Dec 2018, 10:47

It was building fine until recently. Most likely the fortran got updated, and now it fails:
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:241:72:

CALL TRALIM(NTRLVL,WRK(KCDTRA),WRK(KTRTYP))
1
Warning: Type mismatch in argument 'icdtra' at (1); passed REAL(8) to INTEGER(4) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:245:72:

CALL TRAINI(NTRLVL,CMO,WRK(KCDTRA),WRK(KTRTYP))
1
Warning: Type mismatch in argument 'icdtra' at (1); passed REAL(8) to INTEGER(4) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:3488:72:

CALL RDDER2(LUORDA,WRK,WRK,LWRK,X1,NX1,IDA)
1
Warning: Type mismatch in argument 'a' at (1); passed INTEGER(4) to REAL(8) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:3492:72:

CALL RDAO2(LUORDA,WRK,WRK(600*(1+IRAT) + 1),X1,IDA)
1
Warning: Type mismatch in argument 'iindx4' at (1); passed REAL(8) to INTEGER(4) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:250:72:

& WRK(KCDTRA),WRK(KFREE),LFREE)
1
Warning: Type mismatch in argument 'icdtra' at (1); passed REAL(8) to INTEGER(4) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:179:56:

CALL TRACT2(NTRLVL,NOTUVX,NOCOUL,NOEXCH,MCOPT,CMO,DUMMY,
1
Warning: Rank mismatch in argument 'tuvx' at (1) (rank-1 and scalar) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:533:21:

CALL TRAADR(IADRM,IADFRE,IADCMO,IADCDT)
1
Error: Actual argument contains too few elements for dummy argument 'iadrm' (3888/3891) at (1)
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:431:72:

& WRK(KBUF))
1
Warning: Type mismatch in argument 'iadrm' at (1); passed REAL(8) to INTEGER(4) [-Wargument-mismatch]
/wrkdirs/usr/ports/science/dalton/work/dalton-130ffaa0613bb3af6cac766fc8183d6df7d68917-130ffaa0613bb3af6cac766fc8183d6df7d68917/DALTON/sirius/sirntra.F:917:21:
http://beefy6.nyi.freebsd.org/data/120a ... 16.2_2.log
dalton-2016.2

User avatar
magnus
Posts: 439
Joined: 27 Jun 2013, 16:32
First name(s): Jógvan Magnus
Middle name(s): Haugaard
Last name(s): Olsen
Affiliation: Hylleraas Centre, UiT The Arctic University of Norway
Country: Norway

Re: The FreeBSD port fails to build

Post by magnus » 16 Dec 2018, 18:03

Yes, it is indeed related to the compiler. This error is issued since gfortran 8.1 but it can be avoided by using the -std=legacy compiler option. This has been fixed in the latest release (Dalton2018) but to compile older versions you will need to add the -std=legacy compiler option. This can be done using the setup script by adding the --extra-fc-flags="-std=legacy" option or, if you use CMake directly, by adding -DEXTRA_Fortran_FLAGS="-std=legacy" when you run CMake in your build directory.

yurivict
Posts: 2
Joined: 15 Dec 2018, 05:08
First name(s): Yuri
Last name(s): Zzz
Affiliation: FreeBSD
Country: United States

Re: The FreeBSD port fails to build

Post by yurivict » 17 Dec 2018, 05:09

Ok, thanks, I will update the port then.

I noticed that 2018.0 version now installs the CMakeFiles directory with files like these:
%%DATADIR%%/tools/CMakeFiles/CMakeDirectoryInformation.cmake
%%DATADIR%%/tools/CMakeFiles/FChk2HES.dir/DependInfo.cmake

This is most likely unintended.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest