Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Variation on Pb with modules in Photran 6.0.7

I use my own makefile and I had similar problems when the order of .o files in the makefile was not right (the missing file error). Just wondering if perhaps when you added the new module, the order in which it was written into the makefile was incorrect? So it could not find xxxx.o required to build yyyy.o?

On Mon, Jun 6, 2011 at 9:00 AM, <photran-request@xxxxxxxxxxx> wrote:
Send photran mailing list submissions to
       photran@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
       https://dev.eclipse.org/mailman/listinfo/photran
or, via email, send a message with subject or body 'help' to
       photran-request@xxxxxxxxxxx

You can reach the person managing the list at
       photran-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of photran digest..."


Today's Topics:

  1. Variation on  Pb with modules in Photran 6.0.7 (Michel DEVEL)
  2. Re: Variation on  Pb with modules in Photran 6.0.7 (Michel DEVEL)
  3. Where are the makefile.init/defs/target files? (Michel DEVEL)
  4. Re: Variation on  Pb with modules in Photran 6.0.7 (Michel DEVEL)


----------------------------------------------------------------------

Message: 1
Date: Mon, 06 Jun 2011 11:49:57 +0200
From: Michel DEVEL <michel.devel@xxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: [photran] Variation on  Pb with modules in Photran 6.0.7
Message-ID: <4DECA2C5.20403@xxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Le 19/05/2011 10:20, DEVEL Michel a ?crit :
> I have upgraded to photran 6.0.7 and still have a problem with managed
> make (in an old and complicated project with a "src" sub-directory)
> with respect to the errors such as
> "Could not find a file to match the module name: xxxx"
> This time, it is because I have replaced a file xxxx.f90 containing a
> module xxxx by a file xxxx.f containing the same module.
> I have tried to clean the workspace, change build config, rename
> xxxx.f as xxxx.f90 or as 0xxxx.f but still the same error message.
Hi,

I have a new simplified version of this same problem:
It was once more with a managed make project under Linux using GCC Tool
chain.
This project was working OK.
Then I spent some time editing a file xxxx.f with a module xxxx
containing many functions and subroutines, in order to add optional
parameters to most of the routines.
At first, it compiled OK with some errors, then I started to have that
same message every time I am attempting to build the project
"An internal error occurred during: "Build Project".
Could not find a file to match the module name:
xxxx"
I then tried again to clean the project, change build config => still
the same error message.
Then I tried to rename xxxx.f as 0xxxx.f.
Compilations were occurring again, but at the end, I got
make: ***  No rule to build target ? xxxx.o ?, necessary for ? yyyy.o ?.
Stop.    (translated and edited from French)
I tried to rename the file back to xxxx.f but then "An internal error
occurred ... etc...

I also tried to transfer (by copy/paste) the content of xxxx.f in an
older version of that file belonging to another project that compiled OK
before doing that (managed make project under Linux using Intel Tool
chain in a separate workspace in a separate instance of eclipse), but
after that, I got the same "An internal error occurred ... etc..." in
that project also.
Even more troubling, when I reverted the content of the xxxx.f file from
the second (Intel) project and tried to build, the "An internal error
occurred ... etc..." kept coming so that this other project also seems
to be unusable!!!

If it is the content of my xxxx.f that is causing the trouble, why does
it compile again when I change the name and why does it not compile
again if I paste back an old version of the content of the file that was
previously working???

--

Sincerely yours,

Michel DEVEL

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20110606/54342757/attachment.htm>

------------------------------

Message: 2
Date: Mon, 06 Jun 2011 12:01:58 +0200
From: Michel DEVEL <michel.devel@xxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Variation on  Pb with modules in Photran 6.0.7
Message-ID: <4DECA596.50604@xxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Le 06/06/2011 11:49, Michel DEVEL a ?crit :
> Then I tried to rename xxxx.f as 0xxxx.f.
> Compilations were occurring again, but at the end, I got
> make: ***  No rule to build target ? xxxx.o ?, necessary for ? yyyy.o
> ?. Stop.    (translated and edited from French)
> I tried to rename the file back to xxxx.f but then "An internal error
> occurred ... etc...
I forgot to add that at this point the Debug directory disappears
between the push on the build button (after the renaming back to xxxx.f)
and the appearance of the internal error message!...

--

Sincerely yours,

Michel DEVEL

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20110606/d02dd371/attachment.htm>

------------------------------

Message: 3
Date: Mon, 06 Jun 2011 12:15:31 +0200
From: Michel DEVEL <michel.devel@xxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: [photran] Where are the makefile.init/defs/target files?
Message-ID: <4DECA8C3.1030602@xxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Looking into the automatically generated makefle in the Debug or Release
subdirectory, I find lines such as:
-include ../makefile.init
(idem for makefile.defs and makefile.target)

However, even a find . -name "makefile.*" in the root directory of the
target does not find these files.
Where are they?

--

Sincerely yours,

Michel DEVEL

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20110606/44ce8b91/attachment.htm>

------------------------------

Message: 4
Date: Mon, 06 Jun 2011 15:31:10 +0200
From: Michel DEVEL <michel.devel@xxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Subject: Re: [photran] Variation on  Pb with modules in Photran 6.0.7
Message-ID: <4DECD69E.9010005@xxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Le 06/06/2011 11:49, Michel DEVEL a ?crit :
> Then I spent some time editing a file xxxx.f with a module xxxx
> containing many functions and subroutines, in order to add optional
> parameters to most of the routines.
> At first, it compiled OK with some errors, then I started to have that
> same message every time I am attempting to build the project
> "An internal error occurred during: "Build Project".
> Could not find a file to match the module name:
> xxxx"

Hi again,

I have finally been able to avoid that error message in the first
project by creating a "Source Folder" in the project and putting all the
*.f and *.f90 into it.
This apparently forced the managed make mechanism to recreate everything
better than "Clear project".

However, in the second project in which I had copied the content of
xxxx.f, the error still remained, even if I moved the file out of the
pre-existing src folder and put it back after.
I could only get the binary by creating another file xxxx.f in the main
directory of the project, then trying to compile, then erasing all the
content of the latest xxxx.f and building again!

In order to try to understand the origin of this problem, I removed the
new root folder empty xxxx.f, the error occured again and when I
recreated it empty, ifort complained about an error in opening the
compiled module file (the xxxx.f file in the src folder is never
recompiled even if I make a change to it).
Finally, I did the whole process of [copying the src/xxxx.f in root
folder, building (error of ifort), erasing the content of xxxx.f from
src folder, building] and I have my binary again!...

Is that a feature? ;)

--

Sincerely yours,

Michel DEVEL

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/photran/attachments/20110606/4f46b6b6/attachment.htm>

------------------------------

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran


End of photran Digest, Vol 70, Issue 1
**************************************


Back to the top