mikelangelo-project / SCAM

Side-Channel Attack Monitoring and Mitigation
BSD 3-Clause "New" or "Revised" License
7 stars 3 forks source link

Issue setting path with makefile in ./papitool #6

Open AashikSharif opened 5 years ago

AashikSharif commented 5 years ago

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 commented 5 years ago

Do you read output? The output tells what the problem is."no such file or directory". I can not tell from what I see because some part of black screen is missing and it does not particularly tell the file or directory name as there are multiple entries on the screen. You might be mistyping some file or directory name or totally missing. If you have a debug option or verbose like -vvv kind of option you can give a try. It seems not a serious problem from what I see at first glance. Good luck

On Tue, Jun 4, 2019 at 9:23 AM Ash notifications@github.com wrote:

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. [image: Screenshot from 2019-06-04 11:53:59] https://user-images.githubusercontent.com/47691483/58856106-60a7dc80-86bf-11e9-907f-abfdeea9234c.png

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mikelangelo-project/SCAM/issues/6?email_source=notifications&email_token=AH44KJRNBF57R2WEEBAINRLPYYC7VA5CNFSM4HSZEMCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GXOGIAQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AH44KJQ6HBULS2JWMGZTUHLPYYC7VANCNFSM4HSZEMCA .

AashikSharif commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

@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?