make cr2hdr fails

Issue #2898 new
Hans Wurst created an issue

Using Ubuntu 18.04 I tried to build cr2hrd according to [1] and end up with following error message:

user@host:~/src/magic-lantern/modules/dual_iso$ make cr2hdr
Using /usr/bin/arm-none-eabi-gcc (from PATH).
[ README   ]   module_strings.h
Help page 1: Quick start
Help page 2: Tips and tricks
[ cr2hdr   ]   
/bin/sh: 1: -m32: not found
Makefile.cr2hdr:19: recipe for target 'cr2hdr' failed
make: *** [cr2hdr] Error 127

Any help appreciated!


Comments (2)

  1. Alex

    Do you have gcc installed?

    Makefile.user.default:152:HOST_CC=$(shell which gcc)

    You will also need to be able to compile a simple 32-bit C program. On Ubuntu, that would be libc6-dev:i386 and gcc-multilib.

    On a fresh Ubuntu Bionic VM, I had to run these commands:

    sudo apt update
    sudo apt install mercurial build-essential gcc-arm-none-eabi gcc-multilib libc6-dev:i386 python-docutils
    hg clone
    cd magic-lantern
    hg up cr2hdr # latest experimental version; unified is also fine, there may be small differences in handling tricky images
    cd modules/dual_iso
    make cr2hdr

    This uncovered a real bug in current Makefile: it asks for a valid arm-none-eabi-gcc to compile cr2hdr (which should only require a valid host C compiler).

  2. Hans Wurst reporter

    Shame on me, indeed gcc wasn't installed... :/ Works flawless with the commands you provided above. Thx!

  3. Log in to comment