Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old December 20, 2016, 19:42   #1
spara
Adept
 
Join Date: Nov 2014
Posts: 128
spara is on a distinguished road
Trouble compiling

I upgraded my system to Debian Testing and Angband won't compile anymore. The error I'm getting after make is this. Any idea what's causing it?

Code:
...
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
Makefile:34: recipe for target 'angband.o' failed
make[3]: *** [angband.o] Error 1
../mk/buildsys.mk:110: recipe for target 'all' failed
make[2]: *** [all] Error 2
mk/buildsys.mk:115: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
mk/buildsys.mk:110: recipe for target 'all' failed
make: *** [all] Error 2
spara is offline   Reply With Quote
Old December 20, 2016, 20:09   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,702
Donated: $60
Nick is on a distinguished road
Apparently it's a Debian thing, referred to in this post. Beyond that, I know nothing.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old December 20, 2016, 20:19   #3
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,828
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by spara View Post
I upgraded my system to Debian Testing and Angband won't compile anymore. The error I'm getting after make is this. Any idea what's causing it?

Code:
...
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
Makefile:34: recipe for target 'angband.o' failed
make[3]: *** [angband.o] Error 1
../mk/buildsys.mk:110: recipe for target 'all' failed
make[2]: *** [all] Error 2
mk/buildsys.mk:115: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
mk/buildsys.mk:110: recipe for target 'all' failed
make: *** [all] Error 2
Open 'Makefile' in src/. Edit the bit that says:

Code:
$(PROGNAME).o: $(OBJECTS)
    $(LD) -nostdlib -Wl,-r -o $@ $(OBJECTS)
    @printf "%10s %-20s\n" LINK $@
Add '-no-pie' to this line:

Code:
    $(LD) -nostdlib -no-pie -Wl,-r -o $@ $(OBJECTS)
Hopefully that will work.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old December 20, 2016, 20:34   #4
spara
Adept
 
Join Date: Nov 2014
Posts: 128
spara is on a distinguished road
Thanks. Sorted. Did autogen and configure. Then added -no-pie to CC-line in mk/buildsys.mk and did make. Now it compiles and all is well again .
spara is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The trouble with tilesets Zambaku Vanilla 10 May 20, 2013 22:55
Trouble with Sauron Sirridan Vanilla 13 April 5, 2010 03:56
bugfixing trouble again.. will_asher Variants 3 September 10, 2009 03:37
Trouble Getting Home orbs AAR 3 March 24, 2008 06:01
Trouble compiling angband 3.0.9 on linux RastaRuedi Vanilla 2 August 1, 2007 18:28


All times are GMT +1. The time now is 01:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.