Re: WRAPIT -- error while running ncl script

From: BasitAli Khan <BasitAli.Khan_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 15 2013 - 23:29:36 MST

Hi Mary,

Here is the result of things you advised to check'

1)
-bash-4.1$ wrapit77 ex01.f wrapit.c

#include <stdio.h>
/*
* The following are the required NCAR Graphics include files.
* They should be located in ${NCARG_ROOT}/include
*/
#include <ncarg/hlu/hlu.h>
#include <ncarg/hlu/NresDB.h>
#include <ncarg/ncl/defs.h>
#include <ncarg/ncl/NclDataDefs.h>
#include <ncarg/ncl/NclBuiltInSupport.h>
#include <ncarg/gks.h>
#include <ncarg/ncl/NclBuiltIns.h>

2) I just copy/pasted the code from the url. This is what i always do and never had to run dos2linux or any other format converter.

3) Result of the script that you emailed me.

-bash-4.1$ WRAPIT ex01.f

WRAPIT Version: 120209
COMPILING ex01.f
ex01.f:1.2:

 NCLFORTSTART
  1
Error: Non-numeric character in statement label at (1)
ex01.f:1.2:

 NCLFORTSTART
  1
Error: Unclassifiable statement at (1)
LINKING
gcc: error: ex01.o: No such file or directory
rm: cannot remove `ex01.o': No such file or directory
END WRAPIT

WRAPIT even did not generated the shared objet file. I am using gcc 4.6.0 on Linux RedHat 4.4.6

Regards,
Basit

From: Mary Haley <haley@ucar.edu<mailto:haley@ucar.edu>>
Date: Thu, 14 Feb 2013 22:54:00 +0300
To: KAUST <basitali.khan@kaust.edu.sa<mailto:basitali.khan@kaust.edu.sa>>
Cc: "ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>" <ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>>
Subject: Re: WRAPIT -- error while running ncl script

Basit,

The error "A syntax error occurred while parsing" indicates that something is potentially wrong with the "ex01.f" code.
Perhaps it was saved incorrectly?

What does the following report:

wrapit77 < ex01.f > wrapit.c

How did you save "ex01.f"?

Can you try the attached "ex01.f" file and let me know if you get errors with it?

--Mary

On Feb 13, 2013, at 11:16 PM, BasitAli Khan wrote:

> Hi Mary,
>
> I am not using any additional options with WRAPIT. Just trying to follow exactly example 1. Here is the result of your suggested commands:
>
> WRAPIT Version: 120209
> OPERATING SYSTEM: Linux
> nbits = 64
> FORTRAN COMPILER (f90c): gfortran
> FORTRAN COMPILER OPTIONS (fopts): -m64 -fPIC -v -c -fno-second-underscore
> A syntax error occurred while parsing:
> gcc -fPIC -m64 -c -I/home/khanb/ncl6.1.2/include WRAPIT.c
> SHARED OBJECT NAME (SharedObj): ex01.so
> LINKER SUFFIX (ld_suffix): WRAPIT.o -o ex01.so
>
> LINKING
> gcc -m64 -fPIC -shared WRAPIT.o -o ex01.so -lgfortran
> END WRAPIT
>
> -bash-4.1$ nm ex01.so | grep arcln
>
>
> The nm did not come up with any result. By the way I've used ncl v6.1.2
>
> Regards,
> Basit
>
>
> This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 15 23:29:48 2013

This archive was generated by hypermail 2.1.8 : Thu Feb 21 2013 - 11:26:43 MST