This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45827] mio_component_ref(): Component not found when mixing f90 and f03 in large projects
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Sep 2010 12:44:08 +0000
- Subject: [Bug fortran/45827] mio_component_ref(): Component not found when mixing f90 and f03 in large projects
- Auto-submitted: auto-generated
- References: <bug-45827-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45827
--- Comment #10 from Mikael Morin <mikael at gcc dot gnu.org> 2010-09-29 12:44:03 UTC ---
(In reply to comment #9)
> The result:
>
> gfortran -ffree-form -ffree-line-length-0 -I. -L. -c kinds.f90 -o kinds.o
> gfortran -ffree-form -ffree-line-length-0 -I. -L. -c arguments.f03 -o
> arguments.o
> gfortran -ffree-form -ffree-line-length-0 -I. -L. -c common.f03 -o common.o
> common.f03:27.22:
>
> use arguments_module
> 1
> Interner Fehler bei (1):
> mio_component_ref(): Component not found
> make: *** [common.o] Fehler 1
Works here:
######
FC=$(HOME)/gcc46/bin/gfortran
FFLAGS=-ffree-form -ffree-line-length-0 -I. -L.
all:test
test: test.o common.o arguments.o kinds.o
$(FC) $(FFLAGS) $^ -o $@
test.o: test.f03 kinds.mod arguments_module.mod common_module.mod
$(FC) $(FFLAGS) -c $< -o $@
common.o common_module.mod: common.f03 kinds.mod arguments_module.mod
$(FC) $(FFLAGS) -c $< -o common.o
arguments.o arguments_module.mod: arguments.f03 kinds.mod
$(FC) $(FFLAGS) -c $< -o arguments.o
kinds.o kinds.mod: kinds.f90
$(FC) $(FFLAGS) -c $< -o kinds.o
clean:
rm -rf *.mod *.a *.o test
#######
$ gmake clean
rm -rf *.mod *.a *.o test
$ gmake
/home/mik/gcc46/bin/gfortran -ffree-form -ffree-line-length-0 -I. -L. -c
kinds.f90 -o kinds.o
/home/mik/gcc46/bin/gfortran -ffree-form -ffree-line-length-0 -I. -L. -c
arguments.f03 -o arguments.o
/home/mik/gcc46/bin/gfortran -ffree-form -ffree-line-length-0 -I. -L. -c
common.f03 -o common.o
/home/mik/gcc46/bin/gfortran -ffree-form -ffree-line-length-0 -I. -L. -c
test.f03 -o test.o
/home/mik/gcc46/bin/gfortran -ffree-form -ffree-line-length-0 -I. -L. test.o
common.o arguments.o kinds.o -o test
$ ./test
process
hallo
$
########
version:
gcc version 4.6.0 20100924 (experimental) (GCC)