Rockbox Technical Forums
Rockbox Development => Starting Development and Compiling => Topic started by: PaulF on February 25, 2017, 03:34:47 PM
-
My old Raspberry Pi died because the SD card crashed so I bought a Banana Pi that can boot off a SATA drive. I have a 500gb root fs, now.
using tools/rockboxdev.sh it fails with:
[EXTRA] Building PPL
[ERROR] /home/pi/rbdev-build/build-ypr0/.build/src/ppl-0.10.2/src/Generator_System.defs.hh:253:7: error: 'ptrdiff_t' was not declared in this scope
I searched and found an old IRC llog https://www.rockbox.org/irc/log-20140824
23:19 petur it stopped here with ''ptrdiff_t' was not declared in this scope'
23:20 [Saint] if memory serves it wants specific version of cloog, ppl, and a shittonne of other odd deps.
23:20 [Saint] Oh. I also seem to recall it wants both curl and wget.
23:20 [Saint] Its...a fun script.
23:21 [Saint] petur: http://www.datafilehost.com/d/3c64b1a4
23:21 petur thanks!
That link has the file removed. I hoping someone remembers what the file was. At my age, I barely remember yesterday. :-)
EDIT in it's a case of environment problems I did:
env RBDEV_DOWNLOAD=~/rbdev-dl RBDEV_BUILD=~/rbdev-build RBDEV_PREFIX=~/rbinstall ./rockboxdev.sh
-
Do I understand correctly that you are trying to build the Samsung ypr0 cross compilers on a pi? I don't think those have built in some time. If you want to develop for that device you may need to ask in irc for help setting up the toolchain.
-
Hi,
the YP-R0 toolchain is close to impossible to build. I have been trying recently to replace it with another one that compiles and is more generic.
So I suggest you apply this patch:
http://gerrit.rockbox.org/r/#/c/1570/1 (http://gerrit.rockbox.org/r/#/c/1570/1)
and try to build the generic ARM linux tooolchain (code x in rockboxdev.sh). In the mean time, However more patches are needed to switch the YP-R0 and R1 to this new toolchain.
May I ask why you want to build this toolchain on a Banana Pi ?
-
The Banana Pi is my Linux dev machine. I started using Raspberry Pi when designing a hardware Pi hat and it made it easier to debug the device tree. For some reason I thought staying in the Pi environment would easier. The Banana Pi has a eight cores and is faster than my Win7/cygwin machine.
There were two sdl options. I chose the one that said app. I missed the generic one with the end of the platform list being "etc ...".
I tried the generic and it is now moved past that failure point and is compiling tools. Thanks.
I tried IRC once and had lots of trouble with simple things like logging in/out, doing replies etc. I ended up just killing the IRC app.
-
Hi,
I am a little bit confused, why do you mention "sdl" ? You only need a special toolchain if you compile for a real target. If you are compiling the simulator (ie sdl), the host toolchain will be enough.
-
Hi,
I am a little bit confused, why do you mention "sdl" ? You only need a special toolchain if you compile for a real target. If you are compiling the simulator (ie sdl), the host toolchain will be enough.
Yes, after installing the toolchain I figured out it was a waste of time. I saw the chart where some compiler versions don't work so I thought I would do the simple script to get a known working compiler. I still get the same compile errors as the host dev tools using the 200 SDL configure option. I never thought to compile the simulator...duh. I will give it a try. Thanks.