Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Compiling Modules with ASSS 1.4.4?

 
Post new topic   Reply to topic Printable version
 View previous topic  help on asss Post :: Post NPCs  View next topic  
Author Message
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Sun Oct 21, 2007 5:09 pm    Post subject: Compiling Modules with ASSS 1.4.4? Reply to topic Reply with quote

I'm not having any success compiling modules with ASSS 1.4.4 (on Linux). The server itself compiles and installs (asss, backtrace, etc.) just fine, but none of the modules get compiled, it's like they're just getting ignored, including the turf example.

make deps, then make.. compile goes well.. but no turf.o or turf.so In fact, no .so files at all. I'm making do with the ones from the premade binaries at the moment, but I'd love to be able to compile some other modules.

I've tried using the makefile fragment method described via http://wiki.minegoboom.com/index.php/Installing_New_Modules but then when that didn't work I just concentrated on trying to get the included examples (turf mainly) to compile.

I don't know what other info to give unfortunately, because there aren't any errors to speak of, it's like it's just skipping over any of the modules at compile time. So I'm hoping someone else ran into this problem and knows a quick fix. Is there a known problem with the dl_template (I'm just guessing here)?

Am I missing something really obvious here? I'm not a C/C++ coder and don't have much experience compiling, but I thought the modules were supposed to get compiled along with the rest? Making a custom makefile is bit beyond my scope for make -f, but any suggestions to get these compiled would be appreciated.
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Oct 21, 2007 5:29 pm    Post subject: Reply to topic Reply with quote

I'm not sure the exact nature problem you're having. Which modules aren't building for you that come prebuilt?

Have you tried "make turf"?

Take a look in system.mk and make sure you've configured things in there properly.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Sun Oct 21, 2007 5:50 pm    Post subject: Reply to topic Reply with quote

Dr Brain wrote:
I'm not sure the exact nature problem you're having. Which modules aren't building for you that come prebuilt?

Have you tried "make turf"?

Take a look in system.mk and make sure you've configured things in there properly.



Yeah sorry for not having much to go on, I'm pretty confused here with it so I don't know what would be relevant without any sort of compile errors, etc..

Turf for starters I'd like to get a turf.so out of it just for my own sanity of getting a module example compiled. But basically all of the makefile fragments that include the dl_template don't seem to be doing much, nada for database, funky, pymod, scoring, etc.

make turf gives me:

Code: Show/Hide
make: `turf' is up to date.


The only thing I've changed in system.mk was the home for DB4 to get it to compile.

=/
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Oct 21, 2007 7:10 pm    Post subject: Reply to topic Reply with quote

delete turf.so and do make turf
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Sun Oct 21, 2007 7:28 pm    Post subject: Reply to topic Reply with quote

Bak wrote:
delete turf.so and do make turf


There is no turf.so, it never gets made. I've tried removing the premade binaries, I've even tried the source-only download for ASSS 1.4.4 and still have the same problem.

Basically, make appears to be returning without doing anything on modules.

I am suspecting it has something to do with the Makefile dl_template for the modules, because those are the only portions of the compile that get skipped over. I have no idea how to fix it though.
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sun Oct 21, 2007 7:39 pm    Post subject: Reply to topic Reply with quote

Check your /asss144/build folder for any *.so, *.o files.
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Sun Oct 21, 2007 7:39 pm    Post subject: Reply to topic Reply with quote

CypherJF wrote:
Check your /asss144/build folder for any *.so, *.o files.


Plenty of *.o files, but none for any of the modules. Not a single .so file. icon_sad.gif

Thanks for trying to help so far guys. I'm going to figure this out sooner or later. I'm just realizing it may be that I'm running an old version of GCC (3.2.2, old but not absolutely ancient), is the Makefile doing some newfangled tricks?

I've been running this system a long time but never had any issues compiling until now. And well, if it is a GCC issue, it'll be a little while before I'll be upgrading my parked server, I'm sitting on my grandfathered hosting package and not looking forward to changing that.

So basically nobody else has had troubles with a fresh compile with ASSS 1.4.4's Makefile, etc.?
Back to top
View users profile Send private message Add User to Ignore List
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Sun Oct 21, 2007 8:16 pm    Post subject: Reply to topic Reply with quote

Not sure if this is helpful in sorting it out or not.. Using make's debug option, here's the relevant portion for turf. This is after a make clean, with the build dir empty, then make deps and make -d (for this debug info):

(Edit: Oops, cut and pasted from wrong attempt, here's the right one)

Code: Show/Hide

Considering target file `turf/turf.mk'.
  Looking for an implicit rule for `turf/turf.mk'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.o'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.c'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.cc'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.C'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.cpp'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.p'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.f'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.F'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.r'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.s'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.S'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.mod'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.sh'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk,v'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/RCS/turf.mk,v'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/RCS/turf.mk'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/s.turf.mk'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/SCCS/s.turf.mk'.
  Trying pattern rule with stem `turf.mk'.
  Trying implicit prerequisite `turf/turf.mk.o'.
  Looking for a rule with intermediate file `turf/turf.mk.o'.
   Avoiding implicit rule recursion.
   Trying pattern rule with stem `turf.mk'.
  Found an implicit rule for `turf/turf.mk'.
  Finished prerequisites of target file `turf/turf.mk'.
  Prerequisite `turf/turf.mk.o' of target `turf/turf.mk' does not exist.
No need to remake target `turf/turf.mk'.


Is it just me, or does it seem to be looking for turf.mk.c, etc. rather than the .c files specified in the .mk, or is that just typical debug info?

turf doesn't show up past that in the debug list.
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Oct 21, 2007 9:28 pm    Post subject: Reply to topic Reply with quote

Yeah, it does all that with mine too, so I guess it's not a big deal.

To be perfectly honest, I haven't used a fresh directory in a very long time. I've got a monotone working directory instead.

I doubt gcc would give you any trouble (if it were, it would manifest itself differently). Sounds more like a make issue if anything. I'm using GNU Make 3.81.

Try make clean, then log the output of "make" to a file and attach it here.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Mon Oct 22, 2007 1:08 am    Post subject: Reply to topic Reply with quote

Okay, attached two files. One is the output from make and the other is make -d (debug). Both were after make clean, make deps.

On a side note, just played a couple hours of BountyRabbit with friends and it's the first time since '97 that most of them have played Subspace. Awesome stuff, we're all very happy with any and all the peeps that have contributed to ASSS

Now if I could just extend it a bit more, I'm stuck with just precompiled + Python modules. =)

I'll try Monotone tomorrow.




make_debug.txt - 551.36 KB
File downloaded or viewed 17 time(s)

make.txt - 11.11 KB
File downloaded or viewed 19 time(s)
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Tue Oct 23, 2007 8:44 am    Post subject: Reply to topic Reply with quote

Did you unzip the asss package correctly? Just wondering if you are missing some directories like src/scoring.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Oct 23, 2007 9:19 am    Post subject: Reply to topic Reply with quote

Those logs reveal nothing, I'm afraid. Something is definitely wrong though, but I couldn't tell you what.

Try getting a copy from monotone, or as a hack, you could tell all the modules to get built inside asss instead of their own .so file.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Rog
Newbie


Joined: Oct 18 2007
Posts: 18
Offline

PostPosted: Tue Oct 23, 2007 10:17 am    Post subject: I give up, gonna make binaries on a new machine. Reply to topic Reply with quote

Same results with the source retrieved via Monotone, so I'm really thinking it's something to do with my older GCC (v3.2.2) and/or Make (v3.79.1), or some other configuration on my hosted Linux machine.

I think what I'll do is build a CentOS production machine here, so I can compile locally and then move the module binaries over to my hosted server until I get around to finally reinstalling that whole box.

Thanks everyone for trying to help me solve this. =)
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 13 page(s) served in previous 5 minutes.

phpBB Created this page in 0.463819 seconds : 40 queries executed (91.8%): GZIP compression disabled