Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  tools/rockboxdev.sh errors
« previous next »
  • Print
Pages: [1]

Author Topic: tools/rockboxdev.sh errors  (Read 2702 times)

Offline sudoman

  • Member
  • *
  • Posts: 9
tools/rockboxdev.sh errors
« on: February 16, 2010, 04:24:05 PM »
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.
« Last Edit: February 16, 2010, 04:39:54 PM by sudoman »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: tools/rockboxdev.sh errors
« Reply #1 on: February 16, 2010, 04:42:01 PM »
Newer versions of MacOS pretty regularly break gcc.  Maybe check google and see if theres a fix. 
Logged

Offline sudoman

  • Member
  • *
  • Posts: 9
Re: tools/rockboxdev.sh errors
« Reply #2 on: February 16, 2010, 08:12:16 PM »
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?
« Last Edit: February 16, 2010, 08:19:10 PM by sudoman »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: tools/rockboxdev.sh errors
« Reply #3 on: February 16, 2010, 09:00:18 PM »
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?  ???

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?

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

Offline sudoman

  • Member
  • *
  • Posts: 9
Re: tools/rockboxdev.sh errors
« Reply #4 on: February 16, 2010, 09:06:12 PM »
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.

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.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: tools/rockboxdev.sh errors
« Reply #5 on: February 16, 2010, 09:11:06 PM »
Quote from: sudoman on February 16, 2010, 09:06:12 PM
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.

The 3rd line of the "manual build" section is quite clear what version to use, and provides you links to make sure you use them:

"ARM (arm-elf)    2.16.1 (download, mirrors, info)    4.0.3 (download, mirrors, info)"

Not to mention the rather obvious file names "rockbox-multilibs-arm-elf-gcc-4.0.3.diff".

Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: tools/rockboxdev.sh errors
« Reply #6 on: February 17, 2010, 02:29:23 AM »
Quote from: sudoman on February 16, 2010, 09:06:12 PM
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.

This is for the compiler to build (i.e. the version of gcc for cross compiling), not the version of gcc to build the cross compiler.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline sudoman

  • Member
  • *
  • Posts: 9
Re: tools/rockboxdev.sh errors
« Reply #7 on: February 17, 2010, 07:32:42 PM »
could this be the answer:?

http://forums.freescale.com/t5/68K-ColdFire-reg-Microprocessors/GCC-Cross-Compiler-for-Mac-OS-X-Darwin/m-p/48394
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: tools/rockboxdev.sh errors
« Reply #8 on: February 18, 2010, 06:46:51 AM »
Quote from: saratoga on February 16, 2010, 04:42:01 PM
Newer versions of MacOS pretty regularly break gcc.  Maybe check google and see if theres a fix. 

I was able to successfully build the cross compiler under OS X 10.5 on an Intel platform, and it's still working even after an upgrade to 10.6. I wasn't, however, successful in getting the cross compiler to build in OS X 10.5.8 on a PowerPC platform. The errors I got are the same as sudoman's original post. My machine is a PowerPC 970fx (G5).
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline sudoman

  • Member
  • *
  • Posts: 9
Re: tools/rockboxdev.sh errors
« Reply #9 on: February 18, 2010, 01:56:39 PM »
yeah, i'm on a PPC G4.

Edit: I tried installing a binary copy of gcc 4.2.1 using fink. even trying to compile the cross-compiler with this version of gcc failed.

I've managed to submit a patch without having to test it so i don't really need the cross-compiler anymore. no need to sweat it. thanks.  :)
« Last Edit: February 26, 2010, 01:23:53 PM by sudoman »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  tools/rockboxdev.sh errors
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 14 queries.