LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2019, 09:32 PM   #1
komal madan
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
make command giving error


No rule to make target 'f2kcli.o', needed by 'eigfat2plot.o'. Stop.this is what i am getting while using make command to compile make file while compiling post processing utilities in siesta software
the make file is
/home/komal/Desktop/siesta3/siesta-4.1-b4/Util/Bands/Makefile
Copyright (C) 1996-2016 The SIESTA group
# This file is distributed under the terms of the
# GNU General Public License: see COPYING in the top directory
# or http://www.gnu.org/copyleft/gpl.txt .
# See Docs/Contributors.txt for a list of contributors.
# ---
#
# The VPATH directive below helps to re-use f2kcli.F90 from the top Src.
# Other points to note, until we switch to a better building system:
#
# The arch.make file is supposed to be in $(OBJDIR). This is normally
# the top Obj, but if you are using architecture-dependent build directories
# you might want to change this. (If you do not understand this, you do not
# need to change anything. Power users can do "make OBJDIR=Whatever".)
#
# If your main Siesta build used an mpi compiler, you might need to
# define an FC_SERIAL symbol in your top arch.make, to avoid linking
# in the mpi libraries even if we explicitly undefine MPI below.

.SUFFIXES:
.SUFFIXES: .f .f90 .F .F90 .o

VPATH:=$(shell pwd)/../../Src
OBJDIR=Obj

all: eigfat2plot gnubands

include ../../$(OBJDIR)/arch.make


FC_DEFAULT:=$(FC)
FC_SERIAL?=$(FC_DEFAULT)
FC:=$(FC_SERIAL) # Make it non-recursive

DEFS:=$(DEFS) $(DEFS_PREFIX)-UMPI
FPPFLAGS:=$(FPPFLAGS) $(DEFS_PREFIX)-UMPI
INCFLAGS:=$(INCFLAGS) $(NETCDF_INCFLAGS)

FAT_OBJS=m_getopts.o f2kcli.o

gnubands: $(OBJS) gnubands.o
$(FC) -o $@ $(LDFLAGS) $(FAT_OBJS) gnubands.o

eigfat2plot: $(OBJS) eigfat2plot.o
$(FC) -o $@ $(LDFLAGS) $(FAT_OBJS) eigfat2plot.o

clean:
rm -f *.o *.mod eigfat2plot gnubands

dep:
-sfmakedepend --depend=obj --modext=o \
*.f90 *.F90 *.f *.F

# DO NOT DELETE THIS LINE - used by make depend
eigfat2plot.o: f2kcli.o m_getopts.o
gnubands.o: f2kcli.o m_getopts.o
m_getopts.o: f2kcli.o
please help me if u can solve the problem
i am new to linux as well as siesta
 
Old 03-29-2019, 02:37 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Rep: Reputation: 271Reputation: 271Reputation: 271
Does it have a configure file?
 
Old 03-29-2019, 04:12 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,802

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by komal madan View Post
No rule to make target 'f2kcli.o', needed by 'eigfat2plot.o'.

[snip]

i am new to linux as well as siesta
Well, I can see where that object file is being referenced but don't see anything in the Makefile that would create that.

Q1: Is there another Makefile that includes a "f2kcli.o : <blah>" directive? The make process that's failing is obviously looking for a pre-existing object file that, in your case, doesn't exist.

Q2: Is there sufficient "siesta" documentation that would help you figure out where that missing object file is supposed to be located?

Q3: As hinted at by "Random Troll", did you have to run "configure" before running "make"? If you had to run "configure", were there any error messages? Hint: run configure using
Code:
configure <options-you-might-need> 2>&1 | tee configure.log
Diagnostic messages about missing stuff might scroll by so fast you could easily miss it---look in the configure log file to make sure there weren't any that flew by when you blinked.

UPDATE: There is a "configure" command for building the bits needed to compile Siesta. A Google search provided this link:

https://wiki.alcf.anl.gov/parts/index.php/SIESTA

Note the "configure" commands on that page. I suspect you're missing a needed "--with" option that needs to specify a library---one that contains f2kcli.o.

Last edited by rnturn; 03-29-2019 at 04:23 PM.
 
  


Reply

Tags
siesta



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make command giving me headaches. Help? jdrakeh Linux - Newbie 2 04-03-2013 03:24 AM
Make command giving me headaches. jdrakeh Linux - Software 1 04-03-2013 02:03 AM
Qt giving me a hard time. Could not fine make command Birdman48 Programming 3 08-06-2011 11:54 AM
[SOLVED] "error in nfs server" exportfs -v command giving error piyusharora420 Linux - Server 3 01-15-2011 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration