Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: mascaret.cmdf archive file

mascaret.cmdf archive file 6 years 7 months ago #29414

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi all
I'm compiling v7p2r2 on an AWS cloud machine and the compilation fails during compilation of Mascaret with this error:

/bin/sh: 1: Syntax error: end of file unexpected
compileTELEMAC::main:
+> Could not find the following file for compilation: adstack.c
... so it may have to be removed from the following cmdf file: /home/ubuntu/opentelemac/v7p2r2/sources/mascaret/mascaret.cmdf:
|compileMascaretDepencies: Could not compile your file adstack


Can anyone help me with the package which will allow adstack.h to be extracted from mascaret.cmdf? Either on the fly (during compilation) or prior to compilation.

I've not found much information about cmdf file formats but I've compiled telemac on many machines and never had this occur before. Other machines have the file $TELHOME/sources/mascaret/mascaret.cmdf and obviously extract on the fly.

Any help gratefully received.
Regards
John
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29415

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

adstack.c is within the mascaret sources.
Could you post your configuration file.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29416

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi Yugi

Attached systel.aws.cfg file is used. I'm only compiling for sequential runs at present
John
Attachments:
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29417

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
..so adstack.c is in sources/mascaret/Deriv
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29418

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
cmd_obj_c is not defined in your parrallel configuration.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29419

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
I wasn't trying to compile the parallel version - just the scalar built ubugfort.

I have added cmd_obj_c in the parallel.

"which mpicc" produces /usr/bin/mpicc so mpich seems to have built correctly.
John
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29423

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Can you try putting gcc instead of mpicc.
Maybe that would help.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29424

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Thanks yugi, unfortunately it is the same error.

I did have an error when I built mpich but it was for c++ support. Maybe this is affecting the gcc compilation?

I should rebuild these libraries perhaps?
JOhn
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29425

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Can you try first compiling the file directly to see if we have an better error message.
Go into Deriv and run
gcc -c adstack.c -o adtack.o
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

mascaret.cmdf archive file 6 years 7 months ago #29426

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Thanks Yugi,

gcc -c adstack.c -o adtack.o runs with no error at all.

JOhn
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.