wavebitscientific / datetime-fortran

Date and time manipulation for modern Fortran
MIT License
137 stars 51 forks source link

Compilation error #10

Closed guziy closed 10 years ago

guziy commented 10 years ago

Hi I am trying to compile the datetime.f90, but getting this error message, do you know what is wrong?

PGF90-F-0155-No default initialization in structure constructor- member yearday$tbp$0 (datetime.f90: 229)

The compiler is pgf95. Compilation command is:

pgf95 -c .... -Mreentrant -Miomutex -byteswapio -I. -tp nehalem-64 -mcmodel=medium -Bdynamic -O0 -V -Mbounds   -g -Ktrap=fp  datetime.f90

Thanks

milancurcic commented 10 years ago

Hi guzly,

What is your compiler version? No problem here with pgf90 13.10-0:

$ pgf90 -c -Mreentrant -Miomutex -byteswapio -I. -mcmodel=medium -Bdynamic -O0 -V -Mbounds -g -Ktrap=fp  datetime.f90

pgf90 13.10-0 64-bit target on x86-64 Linux -tp sandybridge 
The Portland Group - PGI Compilers and Tools
Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
PGF90/x86-64 Linux 13.10-0
guziy commented 10 years ago

Thanks Milan:

yes, this is an old version - 11. So I guess this is it, I'll close the issue.

Cheers

guziy commented 10 years ago

I've commented default initialization where there were complaints, but now I get these, do you know what is it complaining about?:

pgf95 11.7-0 64-bit target on x86-64 Linux -tp nehalem-64 
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc.  All Rights Reserved.
PGF90/x86-64 Linux 11.7-0
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc.  All Rights Reserved.
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 655)
  0 inform,   0 warnings,   1 severes, 0 fatal for now
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 910)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 910)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 910)
  0 inform,   0 warnings,   3 severes, 0 fatal for utc
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1647)
PGF90-S-0000-Internal compiler error. _construct,ill.id       5 (datetime.f90: 1674)
  0 inform,   0 warnings,   8 severes, 0 fatal for num2date
guziy commented 10 years ago

OK:

Sorry for the trouble, I've decided to abandon pgi11 and trying to use 14 now.

Cheers