AROS World Exec
General => Help => Topic started by: duga on May 18, 2019, 04:27:36 PM
-
Trying to compile AROS under Ubuntu 18.04 LTS.
Building parseoffsets...
make[10555]: fork: Resource temporarily unavailable
/bin/sh: 0: Cannot fork
make[10556]: fork: Resource temporarily unavailable
Makefile:325: recipe for target '/home/wurst/AROS/tools/crosstools/binutils-2.32-aros.diff' failed
make[10555]: *** [/home/wurst/AROS/tools/crosstools/binutils-2.32-aros.diff] Error 2
Makefile:325: recipe for target '/home/wurst/AROS/tools/crosstools/binutils-2.32-aros.diff' failed
make[10554]: *** [/home/wurst/AROS/tools/crosstools/binutils-2.32-aros.diff] Error 2
Makefile:325: recipe for target '/home/wurst/AROS/tools/crosstools/binutils-2.32-aros.diff' failed
make[10553]: *** [/home/wurst/AROS/tools/crosstools/binutils-2.32-aros.diff] Error 2
Any hints for a make newbie? Make is eating several GB's of memory before this happens.
Edit: So it seems binutils-2.32-aros.diff is located in AROS/tools/crosstools/gnu and not in AROS/tools/crosstools/
Edit 2: By copying everything in AROS/tools/crosstools/gnu to AROS/tools/crosstools/ at least it passes "Building parseoffsets" but not surprisingly fails later instead. But atleast no more out of memory. ;)
Edit 3: Other problems to mention:
In the genmf.py file:
if len(files) <> 2: should be if len(files) != 2:
print "Usage:",sys.argv[0],"tmplfile [inputfile outputfile]" should be print ("Usage:",sys.argv[0],"tmplfile [inputfile outputfile]")
Seems the script(s) are written for Python 2. I corrected many of the errors with the "2to3" tool, but not enough to run through the whole genmf.py file.
-
I just saw on the developer mailing list that the nightly build server crashed because it ran out of memory. Something is wrong in current code base.
-
I just saw on the developer mailing list that the nightly build server crashed because it ran out of memory. Something is wrong in current code base.
Thanks for the info!
-
The simplest way for you to fix this is to revert the last two commits made on 3rd may.
-
The simplest way for you to fix this is to revert the last two commits made on 3rd may.
Thanks! I reverted to 56379.
Now it is compiling, but it seems I have to convert several (all?) .py to version 3. So far:
/AROS/bin/linux-x86_64/tools/genmf.py
/AROS/scripts/cpy-dir-rec.py
/AROS/rom/dos/genstrings.py
-
I'm running Mint 19 which is essencially Ubuntu 18.04 and I don't get any problems with those scripts. (I'm running python 2.7.15).
-
I'm running Mint 19 which is essencially Ubuntu 18.04 and I don't get any problems with those scripts. (I'm running python 2.7.15).
Running 3.6, that's why. http://aros.sourceforge.net/documentation/developers/compiling.php says "Python 2.2.1+".
So far these are converted:
/AROS/bin/linux-x86_64/tools/genmf.py
/AROS/scripts/cpy-dir-rec.py
/AROS/rom/dos/genstrings.py
/AROS/workbench/system/AboutAROS/scripts/sponsors2header.py
/AROS/workbench/system/AboutAROS/scripts/acknowledgements2header.py
/AROS/workbench/system/AboutAROS/scripts/authors2header.py
/AROS/workbench/locale/help/gendoc.py
/AROS/workbench/locale/help/genindex.py
[MMAKE] Making AROS in
Finished! :D
-
So, how do I start the compiled i386 AROS, hosted under Linux (64-bit)?
(I have a native AROS installation on another PC)
-
There should be an AROSBootStrap executable in a sub directory.
-
cd to bin/linux-i386/AROS/boot/linux
and
./AROSBootstrap
-
cd to bin/linux-i386/AROS/boot/linux
and
./AROSBootstrap
Thanks.
~/AROS/bin/linux-i386/AROS/boot/linux$ ./AROSBootstrap
[Bootstrap] RAM memory block allocated: 0xf3bde000 - 0xf7bde000 (67108864 bytes)
[ELF Loader] Calculating kickstart size...
[ELF Loader] Code 1095653 bytes, data 2019 bytes, BSS array 232 bytes
[ELF Loader] Loading kickstart...
[ELF Loader] Code 0xf3ad2000, Data 0x57274f20, Module kernel...
[ELF Loader] Code 0xf3aee9b3, Data 0x57275468, Module hostlib.resource...
[ELF Loader] Code 0xf3af0025, Data 0x57275470, Module unixio.hidd...
[ELF Loader] Code 0xf3af34cc, Data 0x572754d8, Module emul-handler...
[ELF Loader] Code 0xf3af981d, Data 0x57275574, Module expansion.library...
[ELF Loader] Code 0xf3afbfba, Data 0x5727557c, Module processor.resource...
[ELF Loader] Code 0xf3aff35b, Data 0x57275588, Module battclock.resource...
[ELF Loader] Code 0xf3b00a1b, Data 0x572755a0, Module timer.device...
[ELF Loader] Code 0xf3b03635, Data 0x572755a8, Module bootloader.resource...
[ELF Loader] Code 0xf3b05298, Data 0x572755b0, Module FileSystem.resource...
[ELF Loader] Code 0xf3b05fec, Data 0x572755b4, Module console.device...
[ELF Loader] Code 0xf3b0eac3, Data 0x572755bc, Module dosboot.resource...
[ELF Loader] Code 0xf3b16e95, Data 0x572755c4, Module gameport.device...
[ELF Loader] Code 0xf3b18f2c, Data 0x572755cc, Module lddemon.resource...
[ELF Loader] Code 0xf3b1ae61, Data 0x572755d4, Module input.device...
[ELF Loader] Code 0xf3b1d64d, Data 0x572755dc, Module keyboard.device...
[ELF Loader] Code 0xf3b1f594, Data 0x572755e4, Module gfx.hidd...
[ELF Loader] Code 0xf3b3daa1, Data 0x572755e8, Module hiddclass.hidd...
[ELF Loader] Code 0xf3b400bf, Data 0x572755f0, Module keyboard.hidd...
[ELF Loader] Code 0xf3b41da6, Data 0x572755f8, Module mouse.hidd...
[ELF Loader] Code 0xf3b43d13, Data 0x572755fc, Module aros.library...
[ELF Loader] Code 0xf3b451ed, Data 0x57275604, Module debug.library...
[ELF Loader] Code 0xf3b47a6a, Data 0x5727560c, Module dos.library...
[ELF Loader] Code 0xf3b5eab4, Data 0x57275614, Module graphics.library...
[ELF Loader] Code 0xf3b7e729, Data 0x57275614, Module intuition.library...
[ELF Loader] Code 0xf3bbdb4a, Data 0x5727561c, Module keymap.library...
[ELF Loader] Code 0xf3bc047f, Data 0x57275624, Module layers.library...
[ELF Loader] Code 0xf3bc83e3, Data 0x5727562c, Module oop.library...
[ELF Loader] Code 0xf3bcced0, Data 0x57275634, Module utility.library...
[ELF Loader] Code 0xf3bcff30, Data 0x5727563c, Module con-handler...
[ELF Loader] Code 0xf3bd78f8, Data 0x57275640, Module ram-handler...
[Bootstrap] Entering kernel at 0xf3ad2000...
[KRN] Protecting host process stack (0xffb043b0 - 0xffb0e3b0)
[X11host] x11_hostlib_load_so: failed to open 'libXcursor.so.1': libXcursor.so.1: cannot open shared object file: No such file or directory
Display driver(s) failed to initialize. Entering emergency shell.
EndCLI will quit AROS.
Maybe I should compile it again, this time converting all .py files before I start.
-
Nope. You have to install libxcursor under Ubuntu.
-
Nope. You have to install libxcursor under Ubuntu.
It was already installed, but I needed the 32-bit version (due to running 32-bit AROS under 64-bit Ubuntu).
sudo apt-get install libxcursor-dev:i386
Now AROS is booting. Yay. Thanks for the support!
Suggestion for http://aros.sourceforge.net/documentation/developers/compiling.php
Python 2.2.1+ (Should be: "Python 2.2.1+ but not 3.x". Or: The scripts should be converted to 3.x which I managed to do with the 2to3 tool. Wikipedia claims that 2.x won't be supported after 2020.)
Suggestion for https://en.wikibooks.org/wiki/Aros/Platforms/Installing_on_*nix#build_Aros_pc-i386_on_64bit_Linux
To start AROS
> cd AROS
> boot/AROSBootstrap --fullscreen -m 256
The "boot/AROSBootstrap" string could be written clearer.
-
im not sure how do people miss that all the time, aint these packages mentioned in docs?
-
im not sure how do people miss that all the time, aint these packages mentioned in docs?
Have a look here, maybe you can add what's missing? http://aros.sourceforge.net/documentation/developers/compiling.php