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
| | |-+  Build failure on Mac OS X 10.5
« previous next »
  • Print
Pages: [1]

Author Topic: Build failure on Mac OS X 10.5  (Read 4285 times)

Offline peddamat

  • Member
  • *
  • Posts: 2
Build failure on Mac OS X 10.5
« on: September 14, 2008, 02:26:51 PM »
Hi Friends,

I installed the arm-elf-gcc 4.1.1 toolchain using MacPorts.  After checking out the Rockbox source and running configure, my build fails with the following:

Code: [Select]
OBJCOPY rockbox.bin
Build firmware file
File encoded successfully
make[2]: Nothing to be done for `all'.
MAKE in Tremor
make[3]: Nothing to be done for `all'.
MAKE in libmad
make[3]: Nothing to be done for `all'.
MAKE in libffmpegFLAC
make[3]: Nothing to be done for `all'.
OBJCOPY flac.codec
arm-elf-objcopy: /Users/me/rockbox/rockbox/build/apps/codecs/flac.codec: No space left on device
make[2]: *** [/Users/me/rockbox/rockbox/build/apps/codecs/flac.codec] Error 1
make[1]: *** [build-codecs] Error 2
make: *** [build] Error 2

After a bit of sleuthing, I've figured out that things go nutty when arm-elf-objcopy is going through ./build/apps/codecs/ converting the .elf files into .codec files (binary format).  Each .codec file that gets generated is ~4 Gigs in size, which rapidly fills up my harddrive and causes a build failure.  I'm assuming this is not normal behavior.

Does anyone know why this is happening?  Is version gcc 4.1.1 buggy?


Thanks,

Sumanth P.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Build failure on Mac OS X 10.5
« Reply #1 on: September 14, 2008, 07:04:19 PM »
I think the standard unix directions should apply to MacOS:

http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide

Have you tried the build script?
Logged

Offline peddamat

  • Member
  • *
  • Posts: 2
Re: Build failure on Mac OS X 10.5
« Reply #2 on: September 15, 2008, 06:28:15 AM »
Thanks for the pointer.  I'll try the instructions here:

http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler

and let you know how it went.

***UPDATE***

I tried the rockboxdev.sh build script and it failed with the following errors...

Quote
MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crti.o crtn.o
/Users/me/rockbox/rockbox/compiler/rbdev-build/build-gcc/gcc/xgcc -B/Users/me/rockbox/rockbox/compiler/rbdev-build/build-gcc/gcc/ -B/Users/me/rockbox/rockbox/compiler/arm-elf/arm-elf/bin/ -B/Users/me/rockbox/rockbox/compiler/arm-elf/arm-elf/lib/ -isystem /Users/me/rockbox/rockbox/compiler/arm-elf/arm-elf/include -isystem /Users/me/rockbox/rockbox/compiler/arm-elf/arm-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./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   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  \
     -Dinhibit_libc -c ../../gcc-4.0.3/gcc/crtstuff.c -DCRT_BEGIN \
     -o crtbegin.o
crtstuff.c:2:unknown section type: %progbits
crtstuff.c:2:Rest of line ignored. 1st junk character valued 32 ( ).
crtstuff.c:3:Unknown pseudo-op: .type
crtstuff.c:3:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:6:unknown section type: %progbits
crtstuff.c:6:Rest of line ignored. 1st junk character valued 32 ( ).
crtstuff.c:7:Unknown pseudo-op: .type
crtstuff.c:7:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:10:unknown section type: %progbits
crtstuff.c:10:Rest of line ignored. 1st junk character valued 32 ( ).
crtstuff.c:11:Unknown pseudo-op: .type
crtstuff.c:11:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:13:unknown section type: %progbits
crtstuff.c:13:Rest of line ignored. 1st junk character valued 32 ( ).
crtstuff.c:14:Unknown pseudo-op: .type
crtstuff.c:14:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:16:Unknown pseudo-op: .global
crtstuff.c:16:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:19:Unknown pseudo-op: .type
crtstuff.c:19:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:22:Unknown pseudo-op: .bss
crtstuff.c:27:Unknown pseudo-op: .type
crtstuff.c:27:Rest of line ignored. 1st junk character valued 112 (p).
crtstuff.c:32:Unknown pseudo-op: .type
crtstuff.c:32:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:34:Junk character 64 (@).
crtstuff.c:34:Rest of line ignored. 1st junk character valued 32 ( ).

Googling came up with: http://gcc.gnu.org/ml/gcc-help/2003-11/msg00209.html , but my error doesn't seem to be caused by 'as'.  It looks like 'xgcc' is the culprit. 

I'll try a few more things and check back later. 

Best,

Sumanth P.

« Last Edit: September 15, 2008, 07:21:17 AM by peddamat »
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Build failure on Mac OS X 10.5
« Reply #3 on: September 15, 2008, 08:15:27 AM »
I'm still using 10.4 Tiger, but I installed gcc using the Xcode 3.0 package, and used the rockboxdev.sh script found in the source to get the development environment set up.

I haven't tried checking out anything from MacPorts or Fink, but if MacPorts doesn't work for you, try the packages in Fink.
Logged
Former Rockbox dev. Rising from the ashes...

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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Build failure on Mac OS X 10.5
 

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

Page created in 0.275 seconds with 15 queries.