RE: file wave_bmi issues - Forum - Delft3D
Forum
- Home
- 3. Archive
- General
- Compilation on Linux
- RE: file wave_bmi issues
RE: file wave_bmi issues
file wave_bmi issues
RE: file wave_bmi issues
Youngling Posts: 4 Join Date: 11/24/11 Recent PostsI am facing the same problem with the latest version of Delft3D on trunk repositories.
I think is a compiler issue, in my case I am using;
GNU Autoconf version 2.69
GNU Automake version 1.15.1
GNU
Libtool version 2.4.6
sys-devel/gcc-6.4.0-r1
I got the following error:
DWITH_DELFTONLINE -g -O2 -ffree-line-length-none -cpp -c
wave_bmi.f90 -fPIC -o .libs/wave_bmi.o
wave_bmi.f90:432:16:
character(len=length), intent(in) :: string
1
Error: Scalar INTEGER expression expected at
(1)
wave_bmi.f90:443:38:
string_to_char_array(i) = string(i:i)
1
Error: Syntax error in
argument list at (1)
wave_bmi.f90:429:41:
...
I am have tried to compile with a different version of gcc (4.9.3) without success. Now I am going to try to compile an older version of Delft3D, once I have the Delft3D 7545 compiled on my old notebook.
Any chance of somebody have overcome this problem, please I wold be very grateful to be able to compile the latest version of Delft3D. Thank you!
RE: file wave_bmi issues
Youngling Posts: 4 Join Date: 11/24/11 Recent Posts
Hi,
I was successful compiling Delft3D version 7545.
./configure --with-mpi --with-netcdf
Using:
gcc-6.4.0;
Autoconf version 2.69
Automake version 1.15.1
Libtool
version 2.4.6
RE: file wave_bmi issues
Padawan Posts: 97 Join Date: 1/3/11 Recent PostsHi,
I expect this problem to be solved by reversing line 432:
character(len=length), intent(in) :: string
with line 433:
integer(c_int),intent(in) :: length
It seems that the compiler you are using is very strict.
I solved this in the trunk in revision 8686.
Regards,
Adri