Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old June 25, 2008, 20:14   #1
Gregian
Rookie
 
Join Date: Jun 2008
Posts: 4
Gregian is on a distinguished road
Compiling Issues

I'm sorry if this has already been answered, but I dug around a bit before posting this and I didn't find any answers for it elsewhere.

I'm wanting to compile the latest release on a shell account I have on a BSD system and it's giving me issues. After I extract the archive, I run

./configure --prefix=/home/[...]/angband

which works fine, but when I try to run make, the makefile doesn't even start correctly. I get this error:

"mk/objective.mk", line 264: Need an operator
Fatal errors encountered -- cannot continue

Any insight would be very helpful.

Thanks in advance.
Gregian is offline   Reply With Quote
Old June 25, 2008, 20:35   #2
roustk
Adept
 
Join Date: Dec 2007
Posts: 167
roustk is on a distinguished road
I won't be much help (because I don't understand quite how Angband's Makefile is cobbled together). I wonder if it is a version problem, however.

What version of make are you using ( make -v )?

edit: For my (FreeBSD-ish) Mac, it is "GNU Make 3.81". My worry is that the Makefile is tuned for GNU make (sometimes installed as gmake), not unix make.
roustk is offline   Reply With Quote
Old June 25, 2008, 20:41   #3
Gregian
Rookie
 
Join Date: Jun 2008
Posts: 4
Gregian is on a distinguished road
make -v doesn't display the version; as a matter of fact man make doesn't list any command line args that cause make to display its version. (It's also not listed in the man itself, although the man does mention that it is BSD make.) I'm not sure what the version number is.
Gregian is offline   Reply With Quote
Old June 25, 2008, 22:46   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,826
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Gregian View Post
I'm sorry if this has already been answered, but I dug around a bit before posting this and I didn't find any answers for it elsewhere.

I'm wanting to compile the latest release on a shell account I have on a BSD system and it's giving me issues. After I extract the archive, I run

./configure --prefix=/home/[...]/angband

which works fine, but when I try to run make, the makefile doesn't even start correctly. I get this error:

"mk/objective.mk", line 264: Need an operator
Fatal errors encountered -- cannot continue

Any insight would be very helpful.

Thanks in advance.
What BSD system in particular is it? I don't have any handy to test, but I thought that the configure script ran on at least some of them.
takkaria is offline   Reply With Quote
Old June 26, 2008, 12:46   #5
Bandobras
Knight
 
Join Date: Apr 2007
Posts: 690
Bandobras is on a distinguished road
If there was hope, somebody would have mentioned this, but still: doesn't 'make -f Makefile.std' work out of the box?
Bandobras is offline   Reply With Quote
Old June 26, 2008, 14:26   #6
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
Quote:
Originally Posted by Gregian View Post
make -v doesn't display the version; as a matter of fact man make doesn't list any command line args that cause make to display its version. (It's also not listed in the man itself, although the man does mention that it is BSD make.) I'm not sure what the version number is.
The problem almost certainly is that it isn't GNU make. (Insofar as I could recover any documentation at all about the Objective Make makefile approach, it was explicitly designed to use GNU make extensions heavily.)

That close, I have to wonder if objective.mk could be patched to handle both GNU make and BSD make.
zaimoni is offline   Reply With Quote
Old June 26, 2008, 14:57   #7
roustk
Adept
 
Join Date: Dec 2007
Posts: 167
roustk is on a distinguished road
Quote:
Originally Posted by Bandobras View Post
If there was hope, somebody would have mentioned this, but still: doesn't 'make -f Makefile.std' work out of the box?
In 3.0.9b (and probably many versions before it, the first comment in Makefile.std is:
# This makefile probably requires GNU make.

I presume that ./configure would have used GNU make (gmake) if it could find it, which means that the trick is to find the GNU-specific hooks in the Makefile so that it can be rewritten for BSD make.
roustk is offline   Reply With Quote
Old June 27, 2008, 14:18   #8
Gregian
Rookie
 
Join Date: Jun 2008
Posts: 4
Gregian is on a distinguished road
Quote:
Originally Posted by takkaria View Post
What BSD system in particular is it? I don't have any handy to test, but I thought that the configure script ran on at least some of them.
Login states OpenBSD 4.2.

Also, no, cd src && make -f Makefile.std doesn't work... I get:

"Makefile.std", line 75: Need an operator
"Makefile.std", line 88: Missing dependency operator
"Makefile.std", line 90: Need an operator
Fatal errors encountered -- cannot continue
Gregian is offline   Reply With Quote
Old June 27, 2008, 17:08   #9
roustk
Adept
 
Join Date: Dec 2007
Posts: 167
roustk is on a distinguished road
Quote:
Originally Posted by Gregian View Post
Login states OpenBSD 4.2.
It looks like gmake is available as a package for OpenBSD on most machines (I checked i386, sparc, and vax). Sounds like a command like "pkg_add gmake" will work, although I can't find great documentation about it (probably need superuser access).
roustk is offline   Reply With Quote
Old June 28, 2008, 10:00   #10
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,826
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Gregian View Post
Login states OpenBSD 4.2.

Also, no, cd src && make -f Makefile.std doesn't work... I get:

"Makefile.std", line 75: Need an operator
"Makefile.std", line 88: Missing dependency operator
"Makefile.std", line 90: Need an operator
Fatal errors encountered -- cannot continue
I'm afraid I can't help you any further with this-- I can't get access to a machine (virtual or otherwise) running OpenBSD. However, I've added a bug to the bugtracker so it won't be forgotten if/when I can. Hopefully someone else can help...?
takkaria 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
Compiling 3.0.9b under SuSE 9.3 ... TJA Vanilla 14 May 12, 2008 21:17
Shopkeeper issues in V3.09a Vanadis Vanilla 3 March 29, 2008 00:07
Compiling ToME TJA Variants 6 October 31, 2007 12:32
Compilation issues: can't find -lSM Daven_26d1 Vanilla 10 July 22, 2007 07:52


All times are GMT +1. The time now is 20:11.


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