• Status New
  • Percent Complete
  • Task Type Patches
  • Category User Interface → Simulator
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by mcuelenaere - 2009-06-07
Last edited by mcuelenaere - 2009-06-07

FS#10292 - Compile Rockbox simulator with LLVM

This patch enables you to compile the Rockbox simulator with LLVM (you still need to alter the Makefile yourself though).

However, it fails at linking stage with 'file not recognized: File truncated' errors.

Somehow, I got LLVM to link; but I needed to ranlib libfirmware.a, libspeex-voice.a and libuisimulator.a.

use the standard 'ar' utility instead of 'llvm-ar' to fix this

LLVM fails at apps/plugins/rockboy/save.c with this error:

cc1: /build/buildd/llvm-2.2/lib/VMCore/Constants.cpp:1862: static llvm::Constant* llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, llvm::Value* const*, unsigned int): Assertion `Ty && "GEP indices invalid!"' failed.
/home/mcuelenaere/rockbox/apps/plugins/rockboy/save.c:155: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.

I filed a bug report:

Both LLVM bugs 4349 and 3518 should be fixed so I'll be re-testing this with SVN versions of LLVM-GCC

Update: using LLVM 2.6 the simulator compiles fine, it still needs the above mentioned changes though (llvm.diff and using standard 'ar' instead of 'llvm-ar').

This is a fix for apps/settings.h compilation under LLVM.


Available keyboard shortcuts


Task Details

Task Editing