64 bit linux

Archives Forums/Linux Discussion/64 bit linux

{cYan|de}(Posted 2004) [#1]
lo, will max exe`s work on 64 bit linux? and will the compiler work fine etc?


Perturbatio(Posted 2004) [#2]
I'll be able to tell you when I get all my drives set up correctly.


Gabriel(Posted 2004) [#3]
This would be very useful. IIRC, James' rock game thingy didn't work on 64bit linux, but that was quite a while back now.


GregBUG(Posted 2004) [#4]
not work! :(

i get this error:

Building glblurr
Linking:glblurr.debug
/usr/bin/ld: skipping incompatible /home/greg/BlitzMAX/mod/brl.mod/appstub.mod/appstub.d.a when searching for /home/greg/BlitzMAX/mod/brl.mod/appstub.mod/appstub.d.a
/usr/bin/ld: cannot find /home/greg/BlitzMAX/mod/brl.mod/appstub.mod/appstub.d.a
collect2: ld returned 1 exit status
Build Error: Failed to link /home/greg/BlitzMAX/Samples/birdie/misc/glblur/glblurr.debug
Process complete


:( whaaaa!! :(

now i install 32bit linux version...


skidracer(Posted 2004) [#5]
I'm thinking you need to do a rebuild all (turn quick build off then rebuild modules). Then let us know what errors you get and I'll see what I can do.


GregBUG(Posted 2004) [#6]
tried.
but the linker says always "Skipping incompatible ... appstub.a"


skidracer(Posted 2004) [#7]
So it compiles all the modules without incident but gives you the incompatible error when linking an app?


GregBUG(Posted 2004) [#8]
no... sorry...
when i try to recompile the modules (quick build off) the compiler says:

"Building Modules
Compiling:blitz_app.c
/home/greg/BlitzMAX/mod/brl.mod/blitz.mod/blitz_app.c: In function `bbReadStdin':
/home/greg/BlitzMAX/mod/brl.mod/blitz.mod/blitz_app.c:31: error: assignment of read-only location
Build Error: failed to compile /home/greg/BlitzMAX/mod/brl.mod/blitz.mod/blitz_app.c
Process complete"

....


Floyd(Posted 2004) [#9]
Maybe this has something to do with the new security features.

Look here for the same problem, but with Windows.

Notice that he worked around this by going outside of Windows.
I wonder if that guy has an Athlon 64 and XP SP2.


skidracer(Posted 2004) [#10]
Cool, it's a bug (nice version of GCC you have there).

Remove the const in line 29 of blitz_app.c so it reads:
BBString *bbReadStdin(){
	char buf[1024];
	char *p;
	fgets( buf,1024,stdin );
	buf[1023]=0;if( p=strchr(buf,'\n') ) *p=0;
	return bbStringFromCString(buf);
}

Looking forward to your next report!


GregBUG(Posted 2004) [#11]
my system is (gcc version 3.4.2 20041017) Fedora core 3 AMD64

i fixed this two error too

Compiling:system.linux.c
/home/greg/BlitzMAX/mod/brl.mod/system.mod/system.linux.c:171: error: conflicting types for 'bbSystemPoll'
/home/greg/BlitzMAX/mod/brl.mod/system.mod/system.linux.c:168: error: previous implicit declaration of 'bbSystemPoll' was here
Build Error: failed to compile /home/greg/BlitzMAX/mod/brl.mod/system.mod/system.linux.c
Process complete

/home/greg/BlitzMAX/mod/brl.mod/blitzgl.mod/blitzgl.linux.c:286: error: conflicting types for 'bglDeleteContext'
/home/greg/BlitzMAX/mod/brl.mod/blitzgl.mod/blitzgl.linux.c:35: error: previous implicit declaration of 'bglDeleteContext' was here
Build Error: failed to compile /home/greg/BlitzMAX/mod/brl.mod/blitzgl.mod/blitzgl.linux.c
Process complete

now recompiling the modules is OK
but compiling test program give the same error...

the linker says always "Skipping incompatible ... appstub.a"


flaith(Posted 2004) [#12]
hi all
@Floyd : i've got Athlon 1,4ghz, W2K SP4, 1Ghz RAM, Graphic card : ELSA Gladiac 920 GeForce3 64 Mb
Gcc version 3.4.2-20040916-1


flaith(Posted 2004) [#13]
@GregBUG
same pb, how did you fixed the errors ?
thanks


GregBUG(Posted 2004) [#14]
for error in system.linux.c
.1 Move the proc "bbSystemPoll()" (at line 171) before the proc "bbSystemWait()" (at line 161)

for error in blitzgl.linux.c
- move proc "bglDeleteContext()" (at line 285 ) before proc bglExit() (line 35)

and now the modules compiles...
but NOTE that i think that is a gcc (3.4.2. xxxx) problem.


flaith(Posted 2004) [#15]
Thanks Gianluca
ok for me (win)
:)