* May 18, 2013, 08:13:23 PM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Come Chat with us live! Learn how HERE!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Compile Errors  (Read 896 times)
Noyesdude


Turrets: +2/-1
Posts: 44


« on: May 29, 2012, 06:36:09 AM »

I'm using make in windows with minGW32 and I've got no idea whats going on with this >.<  This is the whole section after I type in make.

Code:
make -C src/tools/lcc install
make[1]: Entering directory `/c/Tremulous/Tremulous-1.1.0-src/src/tools/lcc'
install -s -m 0755 build-mingw32-x86/q3lcc.exe ../
install -s -m 0755 build-mingw32-x86/q3cpp.exe ../
install -s -m 0755 build-mingw32-x86/q3rcc.exe ../
make[1]: Leaving directory `/c/Tremulous/Tremulous-1.1.0-src/src/tools/lcc'
make -C src/tools/asm install
make[1]: Entering directory `/c/Tremulous/Tremulous-1.1.0-src/src/tools/asm'
gcc -O2 -Wall -Werror -fno-strict-aliasing -o q3asm q3asm.c cmdlib.c
q3asm.c: In function 'TryAssembleENDPROC':
q3asm.c:959:10: error: variable 'v2' set but not used [-Werror=unused-but-set-va
riable]
q3asm.c:959:7: error: variable 'v' set but not used [-Werror=unused-but-set-vari
able]
cc1.exe: all warnings being treated as errors

cmdlib.c: In function 'ExpandPath':
cmdlib.c:316:6: error: the address of 'qdir' will always evaluate as 'true' [-We
rror=address]
cmdlib.c: In function 'ExpandGamePath':
cmdlib.c:329:6: error: the address of 'qdir' will always evaluate as 'true' [-We
rror=address]
cc1.exe: all warnings being treated as errors

If anything else is needed I'll supply it as soon as I can

Thanks in advance
   Noyesdude
Logged

Co-creater of the Pbot installation guide(http://xserverx.com/forum/viewtopic.php?f=44&t=2352) on XserverX, and Tremulous player. and btw its No-yes-dude Cheesy
/dev/humancontroller


Turrets: +19/-375
Posts: 853


« Reply #1 on: May 29, 2012, 07:02:49 AM »

I'm using make in windows with minGW32 and I've got no idea whats going on with this >.<  This is the whole section after I type in make.

Code:
make -C src/tools/lcc install
make[1]: Entering directory `/c/Tremulous/Tremulous-1.1.0-src/src/tools/lcc'
install -s -m 0755 build-mingw32-x86/q3lcc.exe ../
install -s -m 0755 build-mingw32-x86/q3cpp.exe ../
install -s -m 0755 build-mingw32-x86/q3rcc.exe ../
make[1]: Leaving directory `/c/Tremulous/Tremulous-1.1.0-src/src/tools/lcc'
make -C src/tools/asm install
make[1]: Entering directory `/c/Tremulous/Tremulous-1.1.0-src/src/tools/asm'
gcc -O2 -Wall -Werror -fno-strict-aliasing -o q3asm q3asm.c cmdlib.c
q3asm.c: In function 'TryAssembleENDPROC':
q3asm.c:959:10: error: variable 'v2' set but not used [-Werror=unused-but-set-va
riable]
q3asm.c:959:7: error: variable 'v' set but not used [-Werror=unused-but-set-vari
able]
cc1.exe: all warnings being treated as errors

cmdlib.c: In function 'ExpandPath':
cmdlib.c:316:6: error: the address of 'qdir' will always evaluate as 'true' [-We
rror=address]
cmdlib.c: In function 'ExpandGamePath':
cmdlib.c:329:6: error: the address of 'qdir' will always evaluate as 'true' [-We
rror=address]
cc1.exe: all warnings being treated as errors
PROBLEM?
Quote from: ~Noyesdude
How do I fix these compile errors?
stop using the 1.1.0 source code, which is ~6.5 years old. get a newer version.

a workaround is to not pass -Werror to the compiler.

the fix is to edit the code:
  • in cmdlib.c, change both occurrences of
Code:
if (!qdir)
to
Code:
if (!qdir[0])
 
  • in q3asm.c, remove
Code:
int v, v2;
and change
Code:
v = ParseValue(); // locals
v2 = ParseValue(); // arg marshalling
to
Code:
ParseValue(); // locals
ParseValue(); // arg marshalling
    Logged
    Noyesdude


    Turrets: +2/-1
    Posts: 44


    « Reply #2 on: May 29, 2012, 07:36:58 AM »

    Thanks for helping.

    I'll see about getting the newer code in the near future.
    Logged

    Co-creater of the Pbot installation guide(http://xserverx.com/forum/viewtopic.php?f=44&t=2352) on XserverX, and Tremulous player. and btw its No-yes-dude Cheesy
    Pages: [1]   Go Up
      Print  
     
    Jump to:  

    Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
    TremPlus theme by Ingar, based on AF316 theme by Fedhog
    Valid XHTML 1.0! Valid CSS!