OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Capn_Fish on March 05, 2007, 10:51:08 am
-
I'm trying to compile the latest Aleph One (which, if somebody cares to compile it in an optimized or semi-optimized way, go ahead, but please post an ipk ), but GCC from zgcc-3.4.6.img (r121) segfaults quite often, not always in the same place. Is there some good way to avoid this, or to pick up where it left off?
Thanks.
-
I'm trying to compile the latest Aleph One (which, if somebody cares to compile it in an optimized or semi-optimized way, go ahead, but please post an ipk ), but GCC from zgcc-3.4.6.img (r121) segfaults quite often, not always in the same place. Is there some good way to avoid this, or to pick up where it left off?
Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155406\"][{POST_SNAPBACK}][/a][/div]
Are you using swap ? It's often due to memory problems.
Then again, I had the same issue on dosbox 0.66rc3. I used the cross-compiler and all went fine.
Chero.
-
I have plenty (~500MB) of swap. I seem to get a "cc1plus killed" or some such error instead of a segfault if I don't use it.
I tried the cross-compiler, but it fails saying that it "cannot read symbole: file in wrong format" for libcseries.a.
-
I have plenty (~500MB) of swap. I seem to get a "cc1plus killed" or some such error instead of a segfault if I don't use it.
I tried the cross-compiler, but it fails saying that it "cannot read symbole: file in wrong format" for libcseries.a.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155421\"][{POST_SNAPBACK}][/a][/div]
Sound like it's not really cross-compiling or you have a broken file.
Chero.
-
I compiled AlephOne originally for the Z. I'll dig it up and see if I can get the latest to compile.
One thing to note: I didn't use zgcc. Instead, I intalled a full development environment (binutils, automake, autoconf, make, m4, patchutils, gcc...) on a 4Gb CF-Drive with 512Mb allocated to swap.
If you want optimizations, let me know and I'll add them into the CCFLAGS.
-
Thanks! CFLAGS/CXXFLAGS that I would like used:
"-O3", or, should that not work, "-O2"
"-mtune=iwmmxxt", or, should that not work, "-mtune=xscale"
"-mcpu=xscale"
"-fomit-frame-pointer"
I hope one or more of those will work as the older build is almost perfectly playable, and those should make this one work better.
Thanks again, both for trying this build and for the old one (which I am currently enjoying).
-
Ok. My first successful compile resulted in a binary that runs and quits without actually going into the application. Just for good measure, I'm going back and re-compiling all my deps like SDL and LUA...
I'll get it eventually.
I'm going to try with
-O3 -mtune=xscale -mcpu=xscale -fomit-frame-pointer
first. I'm not sure if -mtune=iwmmxxt will work while compiling on TOSA. Does anyone know? Will there be a binary-compatability issue? I suppose I can put up multiple binaries for the various platforms.
-
Great!
I think using -mtune=iwmmxt should work, but I'm not sure. Give it a shot and let us know how it goes.
As for the compatibility thing, I believe I used those optimizations for something and posted that if people had issues on non-iwmmxt Zaurii they could PM me and I'd rebuild it, but I got no PMs, so I guess it works across the models, even those without iwmmxt.
Once again, thanks for doing this. If you do get it to build, could you post any special steps you used and how you set up your compiler?
-
Ok. My first successful compile resulted in a binary that runs and quits without actually going into the application. Just for good measure, I'm going back and re-compiling all my deps like SDL and LUA...
I'll get it eventually.
I'm going to try with
-O3 -mtune=xscale -mcpu=xscale -fomit-frame-pointer
first. I'm not sure if -mtune=iwmmxxt will work while compiling on TOSA. Does anyone know? Will there be a binary-compatability issue? I suppose I can put up multiple binaries for the various platforms.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156136\"][{POST_SNAPBACK}][/a][/div]
I think that the tuning option iwmmxt is ignored on the native compiler and is replaced internally with xscale while it works on the cross compiler
-
OK. I only compile native, so iwmmxt is out, at least for now.
Anyway, the file is up on my feed site http://pdaxfeed.dyndns.org/feeds/games (http://pdaxfeed.dyndns.org/feeds/games)
I posted to the new files release post as well.
You need to install the game and at least one of the data files. I haven't made Launcher Icons for this game yet, so you have to run it from the command line.
I usually type alephone-[TAB] to gt the list of available games.
By the way, I've not really tested my feed site yet, so please feel free to mirror the file ASAP in case I need to take the server down to tweak things.
-
Thank you! I'm downloading it now...
What flags did you use?
-
Thank you! I'm downloading it now...
What flags did you use?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156283\"][{POST_SNAPBACK}][/a][/div]
-O3 -mtune=xscale -mcpu=xscale -fomit-frame-pointer
Here is what I had to do to get things going:
downloaded source for the boost library, and created a symlink to the ./include/boost directory in /opt/...native/.../include
Installed development versions of the SDL, SDL_sound, and SDL_net libraries.
Installed development version of LUA and libao.
./configure
make; make install
no problem :^)
-
Is it working? Is it working? Is it working!!!!????
-
Thank you! I'm downloading it now...
What flags did you use?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156283\"][{POST_SNAPBACK}][/a][/div]
-O3 -mtune=xscale -mcpu=xscale -fomit-frame-pointer
Here is what I had to do to get things going:
downloaded source for the boost library, and created a symlink to the ./include/boost directory in /opt/...native/.../include
Installed development versions of the SDL, SDL_sound, and SDL_net libraries.
Installed development version of LUA and libao.
./configure
make; make install
no problem :^)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156285\"][{POST_SNAPBACK}][/a][/div]
Trying to build the latest version, and I STILL can't get it to find the boost libs. I symlinked boost_1_34_0/boost (a folder with headers) to /opt/.../include, /opt/.../armv5tel-cacko-linux/include, and /usr/include with no luck. Any help from anybody would be much appreciated, as I would like to figure out why it isn't finding the headers.
I copied the ZGCC image's contents to /opt/... to allow for symlinks into those dirs, if it makes a difference.
Thanks.
-
I figured it out. I had to add CPPFLAGS="-I/mnt/ide2/files/boost_1_34_0" and it found the files. I though I had tried that previously, but I guess not.
Hope this helps somebody.