Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] ifort managed make

Hi again,

there seems to be a problem with managed make and the Intel Fortran
Toolchain, as opposed to the GCC Toolchain. The latter works perfectly
fine, but the former doesn't understand which files have to be compiled
first (since they are used by other files). With the Intel Compiler, the
automatically generated subdir.mk does not include the build information
at the bottom. Below an example from my project, generated with the GCC
Toolchain, where I indicate by '>' what is missing when I generate the
same subdir.mk with the Intel Toolchain. To me it looks as if this
problem could be resolved easily, which would help me a lot indeed. Is
there anything I can do about that? I understand the suggestion of
Michel Devel (below) to rename the files to get them in the right order,
it does work but is quite a hassle if you are still changing and
developing a lot.

Thanks a lot,

Daniel


subdir.mk
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
F90_SRCS += \
../main.f90 \
../mod_paramset4.f90 \
../mod_types.f90 \
../sub_cdf.f90 \
../sub_dens.f90 \
../sub_estar_l.f90 \
../sub_price.f90

OBJS += \
./main.o \
./mod_paramset4.o \
./mod_types.o \
./sub_cdf.o \
./sub_dens.o \
./sub_estar_l.o \
./sub_price.o


# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.f90
	@echo 'Building file: $<'
	@echo 'Invoking: GNU Fortran Compiler'
	ifort -g -O0 -openmp -c -o"$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '

############ The following lines are generated with the GCC
############ Toolchain, but not with the Intel Fortran Toolchain

> main.o: ../main.f90 mod_paramset4.o mod_types.o

> mod_paramset4.o: ../mod_paramset4.f90 mod_types.o

> mod_types.o: ../mod_types.f90

> sub_cdf.o: ../sub_cdf.f90 mod_paramset4.o mod_types.o

> sub_dens.o: ../sub_dens.f90 mod_paramset4.o mod_types.o

> sub_estar_l.o: ../sub_estar_l.f90 mod_paramset4.o mod_types.o

> sub_price.o: ../sub_price.f90 mod_paramset4.o mod_types.o



-------- Original Message  --------
Subject: Re: [photran] ifort managed make
From: DEVEL Michel <Michel.Devel@xxxxxxxx>
To: Photran Information <photran@xxxxxxxxxxx>
Date: thu, 18 jun 2009 11:55:52 +0200

> I am working with OpenSuse 11.1_x86-64 and ifort 11.0 20081105.
> I am usually using nomal makefile projects, but I have just tried to
> create a new one with "Fortran project" and then "empty project".
> I had to rename the files containing my init modules (by putting one or
> more zero(s) in front of the name) so that they are compiled first.
> Apart from that, it seems to work.
> 
> -- 
> 
> Sincerely yours,
> 
> Michel DEVEL
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> photran mailing list
> photran@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/photran


Back to the top