Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue setting path with makefile in ./papitool #6

Open
AashikSharif opened this issue Jun 4, 2019 · 4 comments
Open

Issue setting path with makefile in ./papitool #6

AashikSharif opened this issue Jun 4, 2019 · 4 comments

Comments

@AashikSharif
Copy link

AashikSharif commented Jun 4, 2019

Hi i'm getting error saying no input file found after changing the path in scam/papitool/makefile.
ill send the error shown here.The code in the make file is also present below. Could somebody please help me with the issue. Thanks in advance.
Screenshot from 2019-06-04 11:53:59

nrs@NRS-PC-HP:~/Desktop/ash/SCAM/papitool$ sudo make
gcc -I/home/nrs/Desktop/ash/papi-5.4.1/src -I/home/nrs/Desktop/ash/papi-5.4.1/src -I/home/nrs/Desktop/ash/papi-5.4.1/src/testlib \
gcc: error: : No such file or directory
gcc: fatal error: no input files
compilation terminated.
make: *** [all] Error 4



CC=gcc
PAPI_DIR= /home/nrs/Desktop/ash/papi-5.4.1/src
EXT_OBJS=${PAPI_DIR}/testlib/do_loops.o \
${PAPI_DIR}/testlib/test_utils.o \
${PAPI_DIR}/testlib/dummy.o

all:  
${CC} -I${PAPI_DIR} -I${PAPI_DIR} -I${PAPI_DIR}/testlib \ 
-g -Wall papitool.c argparse.c \
${EXT_OBJS} \
${PAPI_DIR}/libpapi.a \
-o papitool
clean:
-rm papitool

@githubfoam
Copy link

githubfoam commented Jun 4, 2019 via email

@AashikSharif
Copy link
Author

AashikSharif commented Jun 4, 2019

@githubfoam
I have tried this code according to the read me file given with this repository. It says to only change the file path where the papi-5.4.1/src path exists. I did according to that. The file path also actually exists.
The above code shows only the altered file path in the make file and the other part of the make file is not yet altered. I doubt that the instruction given for (make all) is right or not this includes the back slash. I doubt it, could u please verify it. Thanks in advance.

The below image states the path I mentioned exists and the files that are metioned in the make file also exists. but still getting the no such file or directory. Somebody please help me with that.
Screenshot from 2019-06-04 13:11:13

@githubfoam
Copy link

On the same terminal are u able to copy some text file in ${PAPI_DIR}/testlib/? Or run a simple helloworld.cc just to make sure makefile is working.Or just to isolate u can create a "virtualenv" and try.

@AashikSharif
Copy link
Author

AashikSharif commented Jun 6, 2019

@githubfoam Yes i could able to copy text file in the same directory.

Initially in the make file it showed like this

`

CC=gcc
PAPI_DIR=/path/to/papi-5.4.1/src
EXT_OBJS=${PAPI_DIR}/testlib/do_loops.o
${PAPI_DIR}/testlib/test_utils.o
${PAPI_DIR}/testlib/dummy.o

all:
${CC} -I${PAPI_DIR} -I${PAPI_DIR} -I${PAPI_DIR}/testlib \
-g -Wall papitool.c argparse.c
${EXT_OBJS}
${PAPI_DIR}/libpapi.a
-o papitool

clean:
-rm papitool

`

after changing the directory in make file it looked like this.

`

CC=gcc
PAPI_DIR= /home/nrs/Desktop/ash/papi-5.4.1/src
EXT_OBJS=${PAPI_DIR}/testlib/do_loops.o
${PAPI_DIR}/testlib/test_utils.o
${PAPI_DIR}/testlib/dummy.o

all:
${CC} -I${PAPI_DIR} -I${PAPI_DIR} -I${PAPI_DIR}/testlib \
-g -Wall papitool.c argparse.c
${EXT_OBJS}
${PAPI_DIR}/libpapi.a
-o papitool

clean:
-rm papitool

`
is this the right way to do so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants