Test and validation gives weird error

233 views
Skip to first unread message

Fazal Warraich

unread,
Oct 30, 2020, 2:31:23 PM10/30/20
to cmpt-295-sfu
SFU ID: 301319108
Github username: fwarraic
Line and file: N/A
Expected behavior: test to run
Observed behavior: test output a PIE error
Question: I was expecting it to run normally, I am not sure why this might be. A bit of a google search yielded I should use the no-pie flag, I am not sure if I should do that. is there a way to run the test normally?



Screenshot 2020-10-30 112816.png

Fazal Warraich

unread,
Oct 30, 2020, 4:25:43 PM10/30/20
to cmpt-295-sfu
I am using the flag for now, please do let me know if I should or shouldn't thanks.

Dan

unread,
Oct 30, 2020, 10:21:32 PM10/30/20
to cmpt-295-sfu
How did you fix it? when i use the flag it doesnt give an error but it doesnt give me a executable 

Arrvindh Shriraman

unread,
Oct 31, 2020, 12:59:48 AM10/31/20
to cmpt-295-sfu
What machine are you trying on ?

Arrvindh Shriraman

unread,
Oct 31, 2020, 1:24:34 AM10/31/20
to cmpt-295-sfu
Line 6 in Makefile; see if it looks like this. Otherwise add the -no-pie option.
CFLAGS_TEST = -Wall -no-pie

w xavier

unread,
Oct 31, 2020, 3:49:47 PM10/31/20
to cmpt-295-sfu
Hi professor, I add the -no-pie option in Makefile and it worked. I was wondering do I need to push the edited Makefile to the Github?

Arrvindh Shriraman

unread,
Nov 1, 2020, 3:59:28 PM11/1/20
to cmpt-295-sfu
It will get automatically pushed. Makefile has already been git add.

w xavier

unread,
Nov 10, 2020, 5:44:40 AM11/10/20
to cmpt-295-sfu
Hi professor, I checked my GitHub find that the edited Makefile is not pushed. Should I git add, commit and push it manually? Thanks!

Arrvindh Shriraman

unread,
Nov 10, 2020, 4:58:01 PM11/10/20
to cmpt-295-sfu
Yes. 
Reply all
Reply to author
Forward
0 new messages