Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
9 user(s) are online (8 user(s) are browsing Forum)

Members: 0
Guests: 9

more...


Browsing this Thread:   1 Anonymous Users




(1) 2 3 »


Re: Trying a small program in AROS hosted on Raspberry Pi
#27
Home away from home
Home away from home


See User information
ah well:

# $VER: gimmearospi-v1.sh 0.02 (rip from mazze's gimmearos-v1.sh)

curdir="`pwd`"
srcdir="aros-src"
portsdir="$HOME/aros-ports-src"
tooldir="$HOME/aros-toolchain"
makeopts="-j3 -s"
configopts="--with-binutils-version=2.25 --with-gcc-version=6.3.0 --disable-sdl-hidd --with-portssources="$portsdir""


cd "$curdir"
mkdir -p "$portsdir"
mkdir -p aros-linux-armhf
cd aros
-linux-armhf
"../$srcdir/configure" $configopts --target=linux-armhf --with-aros-toolchain-install="$tooldir"-armhf --with-aros-toolchain=yes

cd 
"$curdir"
cd aros-linux-armhf
make $makeopts


ends up for me into:

Creating   AROS/Developer/lib/libstdc.static.a...
Generating support files for module version
Makedepend bin
/linux-arm/gen/workbench/libs/version/version/linklib/version_getlibbase.c...
Makedepend bin/linux-arm/gen/workbench/libs/version/version/linklib/version_autoinit.c...
Makedepend bin/linux-arm/gen/workbench/libs/version/version/version_end.c...
Makedepend bin/linux-arm/gen/workbench/libs/version/version/version_start.c...
Compiling  /home/pi/installv1/aros-src/compiler/libinit/libentry.c
Compiling  bin
/linux-arm/gen/workbench/libs/version/version/version_start.c
Compiling  bin
/linux-arm/gen/workbench/libs/version/version/version_end.c
Compiling  bin
/linux-arm/gen/workbench/libs/version/version/linklib/version_autoinit.c
Compiling  bin
/linux-arm/gen/workbench/libs/version/version/linklib/version_getlibbase.c
Creating   AROS
/Developer/lib/libversion.a...
Building   AROS/Libs/version.library ...
Makedepend developer/debug/test/runtests.c...
Compiling  developer/debug/test/runtests.c
Linking    AROS
/Developer/Debug/Tests/runtests...
Generating AROS/Developer/fd/linuxfbgfx_lib.fd
Generating gen
/arch/all-linux/hidd/linuxfb/linuxfbgfx/include/linuxfbgfx_libdefs.h
Generating 
/home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxfb/linuxfbgfx/include/linuxfbgfx_deflibdefs.h
Generating support files 
for module linuxfbgfx
Makedepend arch
/all-linux/hidd/linuxfb/linuxfbgfx_bitmapclass.c...
Makedepend arch/all-linux/hidd/linuxfb/linuxfbgfx_hiddclass.c...
Makedepend arch/all-linux/hidd/linuxfb/linuxfbgfx_init.c...
Makedepend arch/all-linux/hidd/linuxfb/linuxfbgfx_startup.c...
Makedepend bin/linux-arm/gen/arch/all-linux/hidd/linuxfb/linuxfbgfx/linuxfbgfx_end.c...
Makedepend bin/linux-arm/gen/arch/all-linux/hidd/linuxfb/linuxfbgfx/linuxfbgfx_start.c...
Compiling  bin/linux-arm/gen/arch/all-linux/hidd/linuxfb/linuxfbgfx/linuxfbgfx_start.c
Compiling  arch
/all-linux/hidd/linuxfb/linuxfbgfx_startup.c
Compiling  arch
/all-linux/hidd/linuxfb/linuxfbgfx_init.c
Compiling  arch
/all-linux/hidd/linuxfb/linuxfbgfx_hiddclass.c
Compiling  arch
/all-linux/hidd/linuxfb/linuxfbgfx_bitmapclass.c
Compiling  bin
/linux-arm/gen/arch/all-linux/hidd/linuxfb/linuxfbgfx/linuxfbgfx_end.c
Building   AROS
/boot/linux/Devs/Drivers/linuxfbgfx.hidd ...
Generating AROS/Developer/fd/linuxinput_lib.fd
Generating gen
/arch/all-linux/hidd/linuxinput/linuxinput/include/linuxinput_libdefs.h
Generating 
/home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/include/linuxinput_deflibdefs.h
Generating support files 
for module linuxinput
Makedepend arch
/all-linux/hidd/linuxinput/kbdclass.c...
Makedepend arch/all-linux/hidd/linuxinput/mouseclass.c...
Makedepend arch/all-linux/hidd/linuxinput/linuxinput_inputtask.c...
Makedepend arch/all-linux/hidd/linuxinput/startup.c...
Makedepend arch/all-linux/hidd/linuxinput/linuxinput_init.c...
Makedepend bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_end.c...
Makedepend bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_start.c...
Compiling  bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_start.c
Compiling  arch
/all-linux/hidd/linuxinput/linuxinput_init.c
Compiling  arch
/all-linux/hidd/linuxinput/startup.c
Compiling  arch
/all-linux/hidd/linuxinput/linuxinput_inputtask.c
Compiling  arch
/all-linux/hidd/linuxinput/mouseclass.c
Compiling  arch
/all-linux/hidd/linuxinput/kbdclass.c
Compiling  bin
/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_end.c
Building   AROS
/boot/linux/Devs/Drivers/linuxinput.hidd ...
There are undefined symbols in '/home/pi/installv1/aros-linux-armhf/bin/linux-arm/AROS/boot/linux/Devs/Drivers/linuxinput.hidd':
         
U memset    getdatastreamfromformat.c:0
/home/pi/aros-toolchain-armhf/arm-aros-gcc --sysroot /home/pi/installv1/aros-linux-armhf/bin/linux-arm/AROS/Developer -nostartfiles -Wl,-Map -Xlinker /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/.map /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/compiler/libinit/libentry.o /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_start.o  /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_init.o /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/startup.o /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_inputtask.o /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/mouseclass.o /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/kbdclass.o      /home/pi/installv1/aros-linux-armhf/bin/linux-arm/gen/arch/all-linux/hidd/linuxinput/linuxinput/linuxinput_end.o -o /home/pi/installv1/aros-linux-armhf/bin/linux-arm/AROS/boot/linux/Devs/Drivers/linuxinput.hidd
mmakefile
:1257: recipe for target '/home/pi/installv1/aros-linux-armhf/bin/linux-arm/AROS/boot/linux/Devs/Drivers/linuxinput.hidd' failed
make
[1]: *** [/home/pi/installv1/aros-linux-armhf/bin/linux-arm/AROS/boot/linux/Devs/Drivers/linuxinput.hidd] Error 1
[MMAKE] Error: Error while running make in arch/all-linux/hidd/linuxinput: No such file or directory

[MMAKE] Collecting targets...
[
MMAKE] make --no-print-directory TOP=/home/pi/installv1/aros-linux-armhf SRCDIR=/home/pi/installv1/aros-src CURDIR=arch/all-linux/hidd/linuxinput TARGET=kernel-hidd-linuxinput -s --file=mmakefile kernel-hidd-linuxinput failed: 512
Makefile
:95: recipe for target 'all' failed
make
: *** [all] Error 10


So where did i go wrong and perhaps more importantly how to approach to be able to tell myself ?

Frankly, i am at a loss right now ...

Posted on: 2018/10/3 0:21

Edited by origami on 2018/10/3 0:50:20
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#26
Home away from home
Home away from home


See User information
Quote:

maybe that explains what nick was about when talking about appropriate development system.

Indeed.

And to digress: yes, the Pi is underpowered for this kind of job (some simple cross-development should be fine though) and yes i fail to understand what was wrong (there wasn't anything wrong imo) with Nick asking for what he asked.

You simply use the right tool for the job at hand and for him it was what was asked for. Not that he was asking for a beefed up Macbook Pro or ROG G703G or something like that just because the funs of it.

That thread was a total non-discussion imo, hence my absence.

Quote:

but cmon, i usually do that day for day for different targets, and regularly from the scratch. dont easily give up! ;)

Ah, but i am a quitter... did you not know ?

But on a more serious note, currently our life is a mess (to be more precise, the housing situation is) so i'm currently not in any mood to spent time cursing at a failing buildsystem :ducks:

Posted on: 2018/9/29 13:43
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#25
Home away from home
Home away from home


See User information
Quote:

origami wrote:
The newer gcc is a beast though, and took me 2 hours to compile.

maybe that explains what nick was about when talking about appropriate development system.

Quote:

That is where i throw in the towel for the time being.

but cmon, i usually do that day for day for different targets, and regularly from the scratch. dont easily give up! ;)

Posted on: 2018/9/11 12:36
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#24
Home away from home
Home away from home


See User information
Quote:

Quote:

hth313 wrote:

So I switched to using gimmearos-v1.sh, commented away gcc-multilib and after some chewing it concluded that recipe for target 's-automata' failed.

origami wrote:
....
i have no idea what "target 's-automata' failed." means.
...

Now i do know

It is related to memory issues, so try to increase your swap.

On Raspbian that can be done like mentioned here, although it required a reboot for me in order for the new size to take effect. I have it set to 2048, perhaps you could try with something a bit smaller as it slows things down considerably.

For some obscure reason package texinfo was not installed for me so that borked building the compiler, but after that things builded smoothly. The newer gcc is a beast though, and took me 2 hours to compile. Seems to work like a charm when setting the sysroot to correct path for the includes..

After building the compiler, building AROS failed within 10 minuites for me with undefined symbols (memset) when trying to build linuxinput.hidd

That is where i throw in the towel for the time being.

Posted on: 2018/9/9 20:49
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#23
Home away from home
Home away from home


See User information
Quote:

i dont want to hijack this thread,

No problem at all of having a small sidetrack

Quote:

but i think it might be easier and more future proof and sensible to invest work into building abi v1 on arm/rpi. first of all, contrary to i386, compiling abi v0 would not benefit of any existing ready to go software library. secondly avi v0 has been declared obsolete.

The aim is to let someone who surfs over to the nightly download page for AROS running on pi be able to compile the AROS themselves if wanted to. The gimmearos.sh script should work, and it does with the exception of the outdated presicion library URL and some small improvement on the gimmearos-script (who's changes/fixes also applies for the v1 script).

Because i do not have the same setup as the build-server and having the wrong link to mpc in the makefile, the build fails for me (and for anyone else trying to compile hosted arm).

I would have thought fixing that would appeal to your project of being able to reproduce everything

fwiw: this vs this as i assume that is used for the hosted arm nightly's posted on the ABI-v0 page as well..


Quote:

all efforts beyond sustaining it on already supported platform, which is solely i386, will be wasted, as soon as transition to abi v1 effectively occurs.

I do not disagree with that, other then backports are still being commited. It isn't worth the hassle of forking the project simply for changing one simple URL in a mmakefile.src and updating and/or providing a script that also works on/for the pi.

Quote:

on the contrary: trying to fix and extend obsoleted branch is counter productive since it could negatively impact on what effort should be dedicated to, namely getting aros actually forward. i am mentioning it in particular because just lately, as known, michal started to work on arm/rpi big endian target, which can seriously impact reception of aros among amiga and rpi audience.

I am aware of michal's project(s), but that does not take away the fact that things (as provided to the end-user) should just work. It is what annoys me to hell, to let things rot even further.

Mind that i'm talking about v0-on-trunk (which Icaros is based upon as well), and not talking about the abandonded v0.

Quote:

that said, i dont want to pick on anybody and their personal endeavour, bless them, just to indicate what might be sensible in a general scope.

No problem as your input (and contributions) is (are) appreciated.

fwiw it is not about my personal endeavour, rather to fix things that are presented as something that should work out of the box

Yes, v1 is attempting to build as well, but it isn't going very fast

Posted on: 2018/9/9 13:24
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#22
Home away from home
Home away from home


See User information
i dont want to hijack this thread, but i think it might be easier and more future proof and sensible to invest work into building abi v1 on arm/rpi. first of all, contrary to i386, compiling abi v0 would not benefit of any existing ready to go software library. secondly avi v0 has been declared obsolete. all efforts beyond sustaining it on already supported platform, which is solely i386, will be wasted, as soon as transition to abi v1 effectively occurs. on the contrary: trying to fix and extend obsoleted branch is counter productive since it could negatively impact on what effort should be dedicated to, namely getting aros actually forward. i am mentioning it in particular because just lately, as known, michal started to work on arm/rpi big endian target, which can seriously impact reception of aros among amiga and rpi audience.

that said, i dont want to pick on anybody and their personal endeavour, bless them, just to indicate what might be sensible in a general scope.

Posted on: 2018/9/9 12:40
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#21
Just can't stay away
Just can't stay away


See User information
super interesting thread, but I hope you guys have direct connection with each other, or ate least through the dev irc, as it will give you faster and easier feedback.

Anyway, keep trying! what you are doing is very important.

Posted on: 2018/9/9 11:47
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#20
Home away from home
Home away from home


See User information
Quote:

All the needed header files as mentioned were already installed on my system when I checked it.

Yes, it is quite possible that you (already) have those files when using either another distribution on your pi or in case you have already fiddled with your setup in the past.

Note that the missing files afaik is only a culprit on/for Raspbian. Also note that i was using Jessie. Most people would be using Raspbian i guess ?

Next step for me could be to try something like Tiny Core or something like that, and the milage may very well vary in that case (only one way to find out )

I look at it from another perspective in that someone could start from scratch. In which case this link should be read first. Then the gimmearos script (together with the additions/fixes i've mentioned in this thread) should get things going.


Quote:

I fixed the configure script to include the missing directory, probably an good fix (I think). There is already some additional directories for Ubuntu 11.10 and Debian, so I simply added the missing one for Raspbian on another line in a similar way. I dumped all variables it had and it was not possible to generate the needed directory from them. I query gcc for the machine (which is that arm-linux-gnueabihf) and put it together in a similar way as that Debain thing.

After this it could find that sys/cdefs.h.

Do note that simply putting the 'missing' files at the correct location isn't going to get you a compiler able to compile Aros compatible executables. GCC and binutils require patching.


Quote:

However, it failed a bit later on with a mismatch on that an object files uses VFP regisers but libautoinit.a(startupvars.o) does not.

Ah yes, i seem to remember having ran into something similar to that as well but that was when i mistakenly build aros-raspi, which failed somewhere along the line but did produced a compiler for me (AROS build itself failed there). In my recollection the wrong linker was invoked from that compiler and i did not know how to fix that (on short notice and without borking my setup).

Quote:

I assume it means the library is built with soft floats. I configured it with hard floats as suggested. I have no clue.

As stated above, i believe (so take that with a grain of salt) it's due that the wrong linker is being invoked (ld of your system, instead of collect-aros).

Quote:

So I switched to using gimmearos-v1.sh, commented away gcc-multilib and after some chewing it concluded that recipe for target 's-automata' failed.

Again note that removing multilib was only required for me on Raspbian. I did not try the v1 script yet as pi-hosted is based on v0-on-trunk, but i assume it should not be a problem to compile with ABI-v1 sources.

i have no idea what "target 's-automata' failed." means. Try to invoke your gimmearos script (or better yet your own modified version or shortscript) with piping output and error channels with tee into a file and post the results (well the interresting bits that is, otherwise you will use up the storage of the forums ).

Quote:

Now I will go in another direction, as I do not really think I need to build it at this point. I will take a look at how gcc is patched. I managed to use the built-in native gcc using the thin AROS shim on top and compiled AROS binaries with it. I am curious to see if it is really needed to use these cross compilers, or if the native one actually can do.

I am by no means proficient with patching gcc, let alone doing it manually (that is why i use the gimme aros script (my modified one) and let the AROS build-system figure things out for me).

I'm also not proficient enough with the build options other then it is custom to build (AROS) outside the source-tree (which is what gimmearos script does as well).

In case you would want to attempt by doing things out of the box then i would probably suggest to take it up with the developers mailinglist. As you've probably noticed i'm already out of my comfort-zone..

In case things are not working for you with the gimmearos script then feel free to post some output so that it is possible to address the culprit(s). Do note that mixing the v0 and v1 scripts (or actually the produced files) is not convenient as they are incompatible, so make sure to clean up things when attemptng a new run.

fwiw: I'm assuming that you've modifed your gimmearos-script to include the modifications i've mentioned in one of my previous posts.

Quote:

Then I can try hostlib, which could help me do what I wanted to do in the first place.

You could also compile from within Aros itself if wanted.There should be a unix shell and gcc compiler present. I realize that the benefit of running hosted is that you are able to use your host's software, but in case all else fails


Posted on: 2018/9/9 10:55
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#19
Just popping in
Just popping in


See User information
@origami

Thank you for all the help, here is an update from my side on this.

All the needed header files as mentioned were already installed on my system when I checked it.

I fixed the <tt>configure</tt> script to include the missing directory, probably an good fix (I think). There is already some additional directories for Ubuntu 11.10 and Debian, so I simply added the missing one for Raspbian on another line in a similar way. I dumped all variables it had and it was not possible to generate the needed directory from them. I query gcc for the machine (which is that arm-linux-gnueabihf) and put it together in a similar way as that Debain thing.

After this it could find that <tt>sys/cdefs.h</tt>.

However, it failed a bit later on with a mismatch on that an object files uses VFP regisers but <tt>libautoinit.a(startupvars.o)</tt> does not. I assume it means the library is built with soft floats. I configured it with hard floats as suggested. I have no clue.

So I switched to using gimmearos-v1.sh, commented away gcc-multilib and after some chewing it concluded that recipe for target 's-automata' failed.

Now I will go in another direction, as I do not really think I need to build it at this point. I will take a look at how gcc is patched. I managed to use the built-in native gcc using the thin AROS shim on top and compiled AROS binaries with it. I am curious to see if it is really needed to use these cross compilers, or if the native one actually can do.

Then I can try hostlib, which could help me do what I wanted to do in the first place.

Posted on: 2018/9/9 5:25
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: Trying a small program in AROS hosted on Raspberry Pi
#18
Just popping in
Just popping in


See User information
@origami

Thank you for all the help, here is an update from my side on this.

All the needed header files as mentioned were already installed on my system when I checked it.

I fixed the <tt>configure</tt> script to include the missing directory, probably an good fix (I think). There is already some additional directories for Ubuntu 11.10 and Debian, so I simply added the missing one for Raspbian on another line in a similar way. I dumped all variables it had and it was not possible to generate the needed directory from them. I query gcc for the machine (which is that arm-linux-gnueabihf) and put it together in a similar way as that Debain thing.

After this it could find that <tt>sys/cdefs.h</tt>.

However, it failed a bit later on with a mismatch on that an object files uses VFP regisers but <tt>libautoinit.a(startupvars.o)</tt> does not. I assume it means the library is built with soft floats. I configured it with hard floats as suggested. I have no clue.

So I switched to using gimmearos-v1.sh, commented away gcc-multilib and after some chewing it concluded that recipe for target 's-automata' failed.

Now I will go in another direction, as I do not really think I need to build it at this point. I will take a look at how gcc is patched. I managed to use the built-in native gcc using the thin AROS shim on top and compiled AROS binaries with it. I am curious to see if it is really needed to use these cross compilers, or if the native one actually can do.

Then I can try hostlib, which could help me do what I wanted to do in the first place.

Posted on: 2018/9/9 5:04
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project