Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: hargy on August 24, 2016, 05:12:18 AM

Title: Rockboxdev.sh script error on Mac OS X 10.10
Post by: hargy on August 24, 2016, 05:12:18 AM
Hi

Ill admit to a long gap in compiling and command line stuff. Refreshing though as it is.

Im trying to install the UI simulator. I ran the Rockboxdev.sh script and it returned the following compilation results:

19 warnings and 2 errors generated.
make[2]: *** [toplev.o] Error 1
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

Looking back through the execution Im getting an error with:

In file included from ../../gcc-4.4.4/gcc/toplev.c:50:
In file included from ./insn-attr.h:35:
In file included from ../../gcc-4.4.4/gcc/insn-addr.h:23:
../../gcc-4.4.4/gcc/vecprim.h:27:1: warning: using extended field designator is an extension [-Wextended-offsetof]
DEF_VEC_ALLOC_I(int,heap);
^~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc-4.4.4/gcc/vec.h:509:27: note: expanded from macro 'DEF_VEC_ALLOC_I'
VEC_TA(T,base,A);                                                         \
                                                                          ^
../../gcc-4.4.4/gcc/vec.h:1153:21: note: expanded from macro '\
DEF_VEC_ALLOC_FUNC_I'
                         (*vec_, alloc_, offsetof (VEC(T,A),base.vec),    \
                                         ^                      ~~~~
/Library/Developer/CommandLineTools/usr/bin/../lib/clang/7.0.2/include/stddef.h:120:24: note: expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)

It doesnt appear to have worked. Not sure how I can tell although rockboxui isn't installed so that was a bit of a clue. Any help for this old computing fool would be gratefully appreciated.
Title: Re: Rockboxdev.sh script error on Mac OS X 10.10
Post by: bluebrother on August 24, 2016, 07:40:37 AM
You don't need to use rockboxdev.sh when building the simulator.
Title: Re: Rockboxdev.sh script error on Mac OS X 10.10
Post by: hargy on August 24, 2016, 08:44:13 AM
OK. I followed the instructions to install UISimulator errors are:

1 warning generated.
make: *** No rule to make target `/Users/alhargrave/code/rockbox/build-dir/endian.h', needed by `/Users/alhargrave/code/rockbox/build-dir/apps/action.o'.  Stop.

Continuous error in the script is:

warning: unknown warning option '-Wno-override-init'; did you mean '-Wno-override-module'? [-Wunknown-warning-option]
1 warning generated.

What is the rockboxdev.sh script for?

Title: Re: Rockboxdev.sh script error on Mac OS X 10.10
Post by: saratoga on August 24, 2016, 10:05:58 AM
The script installs the cross compilers, which are used for building firmware. The sim is just a normal mac program so it doesn't need a cross compiler. The reason the script failed by the way is that you probably need to install gcc firat now that Mac OS no longer ships with it.

Edit:  Sorry missed your last post.  To build the UI Sim you may also need regular gcc for MacOS.  I don't know if the built in LLVM compiler in xcode can build the sim without at least some makefile hacking.
Title: Re: Rockboxdev.sh script error on Mac OS X 10.10
Post by: hargy on August 24, 2016, 07:10:22 PM
Ive installed gcc 6.1. Then went through the steps again and got pretty much the same output

make: *** No rule to make target `/Users/alhargrave/code/rockbox/build-dir/endian.h', needed by `/Users/alhargrave/code/rockbox/build-dir/apps/action.o'.  Stop.