Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Error: ifort: error #10236: File not found:

Status
Not open for further replies.

behnam64

Programmer
Oct 22, 2013
12
US
Hi All

I am trying to compile a makefile with ifortran on a REDHAT Linux machine.

Before compilation, I had to compile several other makefiles (to create necessary libraries). I could compile them without error. But as you can see below, when I try to compile the given makefile, I get some errors after it goes to some extent. Could you please help me with that?

I am new in working with this makefile so please explain me in simple words if possible.

I have copied the makefile in the next post.

Sincerely yours

[pooyan@login002 Compiling]$ make clean
rm -f Obj_lin64/*.mod Obj_lin64/*.o
[pooyan@login002 Compiling]$ make
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/NWTC/Source/SingPrec.f90 -o Obj_lin64/SingPrec.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/NWTC/Source/SysGnuLinux.f90 -o Obj_lin64/SysGnuLinux.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/NWTC/Source/NWTC_IO.f90 -o Obj_lin64/NWTC_Io_O
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/NWTC/Source/NWTC_Num.f90 -o Obj_lin64/NWTC_Num.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/NWTC/Source/ModMesh.f90 -o Obj_lin64/ModMesh.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/NWTC/Source/NWTC_Library.f90 -o Obj_lin64/NWTC_Library.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/SharedInflowDefs.f90 -o Obj_lin64/SharedInflowDefs.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/HHWind.f90 -o Obj_lin64/HHWind.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/FFWind.f90 -o Obj_lin64/FFWind.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/FDWind.f90 -o Obj_lin64/FDWind.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/CTWind.f90 -o Obj_lin64/CTWind.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/UserWind.f90 -o Obj_lin64/UserWind.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/HAWCWind.f90 -o Obj_lin64/HAWCWind.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source/InflowWindMod.f90 -o Obj_lin64/InflowWindMod.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/SharedTypes.f90 -o Obj_lin64/SharedTypes.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/AeroMods.f90 -o Obj_lin64/AeroMods.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/GenSubs.f90 -o Obj_lin64/GenSubs.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/AeroSubs.f90 -o Obj_lin64/AeroSubs.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/AeroDyn.f90 -o Obj_lin64/AeroDyn.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c /scratch/pooyan/NWTC/Hydrodyn/Source/FFTMod.f90 -o Obj_lin64/FFTMod.o
ifort -O2 -fpp -real-size 64 -traceback -I Obj_lin64 -module Obj_lin64 -c fftpack.f -o Obj_lin64/fftpack.o -I Obj_lin64 -module Obj_lin64
ifort -O2 -real-size 64 -traceback -I Obj_lin64 -o ./FAST_glin64 Obj_lin64/SingPrec.o Obj_lin64/SysGnuLinux.o Obj_lin64/NWTC_Io_O Obj_lin64/NWTC_Num.o Obj_lin64/ModMesh.o Obj_lin64/NWTC_Aero.o Obj_lin64/NWTC_Library.o Obj_lin64/SharedInflowDefs.o Obj_lin64/HHWind.o Obj_lin64/FFWind.o Obj_lin64/FDWind.o Obj_lin64/CTWind.o Obj_lin64/UserWind.o Obj_lin64/InflowWindMod.o Obj_lin64/SharedTypes.o Obj_lin64/AeroMods.o Obj_lin64/GenSubs.o Obj_lin64/AeroSubs.o Obj_lin64/AeroDyn.o Obj_lin64/FFTMod.o Obj_lin64/HydroCalc.o Obj_lin64/fftpack.o Obj_lin64/FAST_Mods.o Obj_lin64/Noise.o Obj_lin64/FAST_Io_O Obj_lin64/FAST.o Obj_lin64/FAST_Lin.o Obj_lin64/FAST2ADAMS.o Obj_lin64/PitchCntrl_ACH.o Obj_lin64/UserSubs.o Obj_lin64/UserVSCont_KP.o Obj_lin64/AeroCalc.o Obj_lin64/SetVersion.o Obj_lin64/FAST_Prog.o
ifort: error #10236: File not found: 'Obj_lin64/NWTC_Aero.o'
ifort: error #10236: File not found: 'Obj_lin64/HydroCalc.o'
ifort: error #10236: File not found: 'Obj_lin64/FAST_Mods.o'
ifort: error #10236: File not found: 'Obj_lin64/Noise.o'
ifort: error #10236: File not found: 'Obj_lin64/FAST_Io_O'
ifort: error #10236: File not found: 'Obj_lin64/FAST.o'
ifort: error #10236: File not found: 'Obj_lin64/FAST_Lin.o'
ifort: error #10236: File not found: 'Obj_lin64/FAST2ADAMS.o'
ifort: error #10236: File not found: 'Obj_lin64/PitchCntrl_ACH.o'
ifort: error #10236: File not found: 'Obj_lin64/UserSubs.o'
ifort: error #10236: File not found: 'Obj_lin64/UserVSCont_KP.o'
ifort: error #10236: File not found: 'Obj_lin64/AeroCalc.o'
ifort: error #10236: File not found: 'Obj_lin64/SetVersion.o'
ifort: error #10236: File not found: 'Obj_lin64/FAST_Prog.o'
make: *** [FAST_glin64] Error 1
 
#The makefile

# 32-bit or 64-bit?
BITS = 32
#BITS = 64


# Location of source files for FAST, AeroDyn, InflowWind, and the NWTC Library.
# You will probably need to change these for your system.


ifeq ($(OS),Windows_NT)
NWTC_LIB_DIR= /Users/sharma/stuff/NWTC/NWTC/Source
AERODYN_DIR = /Users/sharma/stuff/NWTC/Aerodyn/AERODYN/Source
HYDRODYN_DIR = /Users/sharma/stuff/NWTC/Hydrodyn/Source
WIND_DIR = /Users/sharma/stuff/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source
FAST_DIR = /Users/sharma/stuff/NWTC/FAST
else
NWTC_LIB_DIR= /scratch/pooyan/NWTC/NWTC/Source
AERODYN_DIR = /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source
HYDRODYN_DIR = /scratch/pooyan/NWTC/Hydrodyn/Source
WIND_DIR = /scratch/pooyan/NWTC/Aerodyn/AERODYN/Source/InflowWind/Source
FAST_DIR = /scratch/pooyan/NWTC/FAST
endif


# Name of compiler to use and flags to use.
#FC = gfortran
#FFLAGS = -O2 -real-size $(BITS) -fbacktrace -finit-local-zero -fno-automatic -ffree-line-length-none
#LDFLAGS = -O2 -m$(BITS) -fbacktrace

FC = ifort
FFLAGS = -O2 -fpp -real-size $(BITS) -traceback
LDFLAGS = -O2 -real-size $(BITS) -traceback

# other useful gfortran options:
# -fdefault-real-8 -fcheck=bounds -std=f2003 -O0 -v

# Precision.

# Use "SingPrec" for single precision and "DoubPrec" for double precision. You may also need to change an option switch to make constants DP.
PREC = SingPrec


# Destination and RootName for executable

OUTPUT_NAME = FAST
DEST_DIR = .

#==========================================================#
# You should not need to change anything beyond this point #
#==========================================================#

# System-specific settings.

ifeq ($(OS),Windows_NT)
# Windows
DEL_CMD = del
EXE_EXT = _gwin$(BITS).exe
INTER_DIR = Obj_win$(BITS)
MD_CMD = @mkdir
OBJ_EXT = .o
PATH_SEP = \ SYS_FILE = SysGnuWin
else
# Linux
DEL_CMD = rm -f
EXE_EXT = _glin$(BITS)
INTER_DIR = Obj_lin$(BITS)
MD_CMD = @mkdir -p
OBJ_EXT = .o
PATH_SEP = /
SYS_FILE = SysGnuLinux
endif


# Source files (by module)

LIB_SOURCES = $(PREC).f90 $(SYS_FILE).f90 NWTC_IO.f90 NWTC_Num.f90 ModMesh.f90 NWTC_Aero.f90 NWTC_Library.f90

WIND_SOURCES = SharedInflowDefs.f90 HHWind.f90 FFWind.f90 FDWind.f90 CTWind.f90 UserWind.f90 InflowWindMod.f90

AERODYN_SOURCES = SharedTypes.f90 AeroMods.f90 GenSubs.f90 AeroSubs.f90 AeroDyn.f90

HYDRODYN_SOURCES = FFTMod.f90 HydroCalc.f90

FAST_SOURCES = FAST_Mods.f90 Noise.f90 FAST_IO.f90 FAST.f90 FAST_Lin.f90 FAST2ADAMS.f90 PitchCntrl_ACH.f90 UserSubs.f90 UserVSCont_KP.f90 AeroCalc.f90 SetVersion.f90 FAST_Prog.f90
#FOR DLL, SUBSTITUTE THESE FILES:
# PitchCntrl_ACH.f90 # UserSubs.f90 # UserVSCont_KP.f90 #FOR THESE FILES:
# BladedDLLInterface.f90 # UserSubs_forBladedDLL.f90 # UserVSCont_KP_forBladedDLL.f90 #END SUBSTITUTION


vpath %.f90 $(NWTC_LIB_DIR) $(AERODYN_DIR) $(HYDRODYN_DIR) $(WIND_DIR) $(FAST_DIR)
vpath %.f $(FAST_DIR)
vpath %.mod $(INTER_DIR)
vpath %.o $(INTER_DIR)

LIB_OBJS = $(LIB_SOURCES:.f90=.o)
WIND_OBJS = $(WIND_SOURCES:.f90=.o)
AERODYN_OBJS = $(AERODYN_SOURCES:.f90=.o)
HYDRODYN_OBJS = $(HYDRODYN_SOURCES:.f90=.o) fftpack.o
FAST_OBJS = $(FAST_SOURCES:.f90=.o)
ALL_OBJS = $(LIB_OBJS) $(WIND_OBJS) $(AERODYN_OBJS) $(HYDRODYN_OBJS) $(FAST_OBJS)

# Rule to do everything.

all: default
default: $(INTER_DIR) $(DEST_DIR)/$(OUTPUT_NAME)$(EXE_EXT)

# General rules for compliling the files.

%.o: %.f90
$(FC) $(FFLAGS) -I $(INTER_DIR) -module $(INTER_DIR) -c $< -o $(INTER_DIR)/$@
fftpack.o: fftpack.f
$(F77) $(FFLAGS) -I $(INTER_DIR) -module $(INTER_DIR) -c $< -o $(INTER_DIR)/$@ -I $(INTER_DIR) -module $(INTER_DIR)

# Dependency rules.
ModMesh.o: $(PREC).o
$(SYS_FILE).o: $(PREC).o
NWTC_Io_O: $(SYS_FILE).o
NWTC_Num.o: NWTC_Io_O
NWTC_Aero.o: NWTC_Io_O NWTC_Num.o
NWTC_Library.o: NWTC_Aero.o ModMesh.o

HHWind.o: NWTC_Library.o SharedInflowDefs.o
FFWind.o: NWTC_Library.o SharedInflowDefs.o
HAWCWind.o: NWTC_Library.o SharedInflowDefs.o
FDWind.o: NWTC_Library.o SharedInflowDefs.o
CTWind.o: NWTC_Library.o SharedInflowDefs.o
UserWind.o: NWTC_Library.o SharedInflowDefs.o
InflowWindMod.o: NWTC_Library.o SharedInflowDefs.o HHWind.o FFWind.o HAWCWind.o FDWind.o CTWind.o UserWind.o

AeroMods.o: NWTC_Library.o
GenSubs.o: NWTC_Library.o AeroMods.o
AeroSubs.o: NWTC_Library.o AeroMods.o
AeroDyn.o: NWTC_Library.o AeroMods.o SharedTypes.o AeroSubs.o GenSubs.o InflowWindMod.o

fftpack.o: NWTC_Library.o
HydroCalc.o: NWTC_Library.o FFTMod.o

FAST_Mods.o: NWTC_Library.o AeroDyn.o
Noise.o: NWTC_Library.o FAST_Mods.o AeroDyn.o InflowWindMod.o
FAST_Io_O: NWTC_Library.o FAST_Mods.o AeroDyn.o InflowWindMod.o HydroCalc.o Noise.o
FAST.o: NWTC_Library.o FAST_Mods.o AeroDyn.o InflowWindMod.o HydroCalc.o FAST_Io_O
FAST_Lin.o: NWTC_Library.o FAST_Mods.o AeroDyn.o InflowWindMod.o FAST.o
FAST2ADAMS.o: NWTC_Library.o FAST_Mods.o AeroDyn.o InflowWindMod.o
PitchCntrl_ACH.o: NWTC_Library.o
UserSubs.o: NWTC_Library.o
UserVSCont_KP.o: NWTC_Library.o
AeroCalc.o: NWTC_Library.o Noise.o
SetVersion.o: NWTC_Library.o HydroCalc.o
FAST_Prog.o: NWTC_Library.o FAST_Mods.o FAST_Io_O FAST.o FAST2ADAMS.o FAST_Lin.o HydroCalc.o Noise.o

BladedDLLInterface.o: NWTC_Library.o FAST_Mods.o
UserSubs_forBladedDLL.o: NWTC_Library.o
UserVSCont_KP_forBladedDLL.o: NWTC_Library.o


#$(OUTPUT_NAME)$(EXE_EXT): Fast_Prog.o

# Make sure the destination directory for the intermediate files exist.

$(INTER_DIR):
$(MD_CMD) $(INTER_DIR)


# For linking FAST.

$(DEST_DIR)/$(OUTPUT_NAME)$(EXE_EXT): $(ALL_OBJS) | $(INTER_DIR)
$(FC) $(LDFLAGS) -I $(INTER_DIR) -o $(DEST_DIR)/$(OUTPUT_NAME)$(EXE_EXT) $(foreach src, $(ALL_OBJS), $(addprefix $(INTER_DIR)/,$(src)))

# Cleanup afterwards.

clean:
$(DEL_CMD) $(INTER_DIR)$(PATH_SEP)*.mod $(INTER_DIR)$(PATH_SEP)*.o


 
You're building 64 bit code as 32 bits. Make the following change to your makefile
Code:
# 32-bit or 64-bit?
#BITS = 32
BITS = 64
 
I changed that but still get the same error
 
I see a bunch of "ifort "lines and a bunch of files being compiled but non of those lines seem to include anyone of the ones the last command is complaining about...where are those?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top