Author |
Message |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
Posted: Sun Oct 21, 2007 5:09 pm Post subject: Compiling Modules with ASSS 1.4.4? |
 |
|
|
|
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 |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Oct 21, 2007 5:29 pm Post subject: |
 |
|
|
|
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 |
|
 |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
Posted: Sun Oct 21, 2007 7:28 pm Post subject: |
 |
|
|
|
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 |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Oct 21, 2007 7:39 pm Post subject: |
 |
|
|
|
Check your /asss144/build folder for any *.so, *.o files. _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
 |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
Posted: Sun Oct 21, 2007 7:39 pm Post subject: |
 |
|
|
|
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.
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 |
|
 |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
Posted: Sun Oct 21, 2007 8:16 pm Post subject: |
 |
|
|
|
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)
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 |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Oct 21, 2007 9:28 pm Post subject: |
 |
|
|
|
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 |
|
 |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
Posted: Mon Oct 22, 2007 1:08 am Post subject: |
 |
|
|
|
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 |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Tue Oct 23, 2007 8:44 am Post subject: |
 |
|
|
|
Did you unzip the asss package correctly? Just wondering if you are missing some directories like src/scoring. _________________ ss news
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Oct 23, 2007 9:19 am Post subject: |
 |
|
|
|
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 |
|
 |
Rog Newbie

Joined: Oct 18 2007 Posts: 18 Offline
|
Posted: Tue Oct 23, 2007 10:17 am Post subject: I give up, gonna make binaries on a new machine. |
 |
|
|
|
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 |
|
 |
|