Rockbox Development > Starting Development and Compiling

tools/rockboxdev.sh errors

(1/2) > >>

sudoman:
hi. when i try to run tools/rockboxdev.sh on os x 10.5.8, i get the following errors:

gcc -c   -U_FORTIFY_SOURCE  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.0.3/gcc -I../../gcc-4.0.3/gcc/. -I../../gcc-4.0.3/gcc/../include -I./../intl -I../../gcc-4.0.3/gcc/../libcpp/include     -I. -I. -I../../gcc-4.0.3/gcc -I../../gcc-4.0.3/gcc/. -I../../gcc-4.0.3/gcc/../include -I./../intl -I../../gcc-4.0.3/gcc/../libcpp/include  \
      ../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:38: warning: ‘struct sigaltstack’ declared inside parameter list
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:38: warning: its scope is only this definition or declaration, which is probably not what you want
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:38: error: conflicting types for ‘sigaltstack’
/usr/include/signal.h:89: error: previous declaration of ‘sigaltstack’ was here
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c: In function ‘segv_handler’:
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:67: error: ‘struct __darwin_mcontext’ has no member named ‘ss’
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:116: error: ‘struct __darwin_mcontext’ has no member named ‘es’
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:116: error: ‘struct __darwin_mcontext’ has no member named ‘ss’
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c: In function ‘darwin_rs6000_extra_signals’:
../../gcc-4.0.3/gcc/config/rs6000/host-darwin.c:130: warning: passing argument 1 of ‘sigaltstack’ from incompatible pointer type
make[1]: *** [host-darwin.o] Error 1
make: *** [all-gcc] Error 2


if more information is needed, just let me know.

please help!! thanks.

saratoga:
Newer versions of MacOS pretty regularly break gcc.  Maybe check google and see if theres a fix. 

sudoman:
thanks for the advice. :) i updated to the latest deveolper tools for my system (3.1.4), but i'm still having the same problem.

i looked at what the manual install looks like and i noticed that the gcc patch is for version 3.4.6. the default compiler for my computer is gcc 4.0.1. gcc 4.2.1 is also available. would this be the cause of the problem? how can i work around this?  ???

i guess the solution might be to install a different version of gcc. which version should i install? and if it's 4.0+, do i need the os x patch for gcc-3.4.6?

saratoga:

--- Quote from: sudoman on February 16, 2010, 08:12:16 PM ---i looked at what the manual install looks like and i noticed that the gcc patch is for version 3.4.6. the default compiler for my computer is gcc 4.0.1. gcc 4.2.1 is also available. would this be the cause of the problem? how can i work around this?  ???

--- End quote ---

3.4.6 is for coldfire, on arm we use 4.0.3.


--- Quote from: sudoman on February 16, 2010, 08:12:16 PM ---i guess the solution might be to install a different version of gcc. which version should i install? and if it's 4.0+, do i need the os x patch for gcc-3.4.6?

--- End quote ---

You need to use 4.0.3.  The problem is probably that Apple broke something.  Figure out what it is or just use linux.

sudoman:

--- Quote from: saratoga on February 16, 2010, 09:00:18 PM ---You need to use 4.0.3.  The problem is probably that Apple broke something.  Figure out what it is or just use linux.

--- End quote ---

thanks for the help. that's my next operating system once i get a new non-ppc computer.  ;)

i should note that the wiki suggests not to use 4.0.x (for coldfire) but doesn't mention which compiler to use in making the cross-compiler.

http://www.rockbox.org/wiki/CrossCompiler

i'll let you know if that works.

Navigation

[0] Message Index

[#] Next page

Go to full version