trouble building under os x - General Discussion and Assistance - CHDK Forum supplierdeeply

trouble building under os x

  • 25 Replies
  • 7192 Views
trouble building under os x
« on: 09 / December / 2008, 17:09:49 »
Advertisements
I downloaded trunk and attempted to build by typing "make fir"

see the error below.

any ideas on what to try next?

Code: [Select]
**** Build: 0.8.9
>> Entering to tools
pakwif.c -> pakwif.o
pakwif.o -> pakwif
gensig.c -> gensig.o
gensig.o -> gensig
-> signatures_vxworks.h
CAUTION! 'signatures_vxworks.h' is not updated due to 'sig_ref_vxworks_1.bin` or 'sig_ref_vxworks_2.bin` or 'sig_ref_vxworks_3.bin` is empty!
finsig.c -> finsig.o
finsig.o -> finsig
dancingbits.c -> dancingbits.o
dancingbits.o -> dancingbits
<< Leaving tools
>> Entering to lib
>> Entering to lib/font
font_8x16.c -> font_8x16.o
rbf_font.c -> rbf_font.o
font_8x16.o rbf_font.o -> libfont.a
<< Leaving lib/font
>> Entering to lib/math
d2d.c -> d2d.o
wrapper.c -> wrapper.o
d2d.o wrapper.o -> libmath.a
<< Leaving lib/math
>> Entering to lib/ubasic
camera_functions.c -> camera_functions.o
tokenizer.c -> tokenizer.o
ubasic.c -> ubasic.o
camera_functions.o tokenizer.o ubasic.o -> libubasic.a
<< Leaving lib/ubasic
>> Entering to lib/lang
lang.c -> lang.o
lang.o -> liblang.a
<< Leaving lib/lang
>> Entering to lib/lua
setjmp.S -> setjmp.o
lapi.c -> lapi.o
lcode.c -> lcode.o
ldebug.c -> ldebug.o
ldo.c -> ldo.o
ldump.c -> ldump.o
lfunc.c -> lfunc.o
lgc.c -> lgc.o
llex.c -> llex.o
lmem.c -> lmem.o
lobject.c -> lobject.o
lopcodes.c -> lopcodes.o
lparser.c -> lparser.o
lstate.c -> lstate.o
lstring.c -> lstring.o
ltable.c -> ltable.o
ltm.c -> ltm.o
lundump.c -> lundump.o
lvm.c -> lvm.o
lzio.c -> lzio.o
lauxlib.c -> lauxlib.o
lbaselib.c -> lbaselib.o
ldblib.c -> ldblib.o
ltablib.c -> ltablib.o
lmathlib.c -> lmathlib.o
liolib.c -> liolib.o
loslib.c -> loslib.o
lstrlib.c -> lstrlib.o
loadlib.c -> loadlib.o
linit.c -> linit.o
setjmp.o lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o ltablib.o lmathlib.o liolib.o loslib.o lstrlib.o loadlib.o linit.o -> liblua.a
<< Leaving lib/lua
<< Leaving lib
>> Entering to platform
>> Entering to platform/s3is
>> Entering to platform/s3is/sub
>> Entering to platform/s3is/sub/100a
boot.c -> boot.o
stubs_min.S -> stubs_min.o
stubs_auto.S -> stubs_auto.o
-> stubs_entry.S
CAUTION! 'stubs_entry.S' is not updated due to target firmware binary not found!
stubs_entry.S -> stubs_entry.o
lib.c -> lib.o
stubs_entry_2.S -> stubs_entry_2.o
capt_seq.c -> capt_seq.o
movie_rec.c -> movie_rec.o
mount.c -> mount.o
boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o capt_seq.o movie_rec.o mount.o -> libplatformsub.a
<< Leaving platform/s3is/sub/100a
<< Leaving platform/s3is/sub
main.c -> main.o
lib.c -> lib.o
wrappers.c -> wrappers.o
/var/folders/aY/aYBenh-7GoKI4h2ZglJC3++++TI/-Tmp-//ccc8djs3.s: Assembler messages:
/var/folders/aY/aYBenh-7GoKI4h2ZglJC3++++TI/-Tmp-//ccc8djs3.s:120: Error: bad instruction `ldm r0,{R4-R11}'
make[2]: *** [wrappers.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

*

Offline fe50

  • ******
  • 3127
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: trouble building under os x
« Reply #1 on: 09 / December / 2008, 17:22:40 »
mattkime,

should be the gcc version problem...

Many thanks reyalp. I just upgraded to 4.3.2 and everything now compiles!

My total lack of unix experience (after 25 years of PC DOS, OS/2 and Windows) meant it took me quite a time to upgrade. It turns out I needed to selfupgrade my macports first (it was downloading 4.1.0),  deactivate the old arm-elf-gcc, install the latest version and then completely reset my PATH (which had lots of junk in it).

...from your own thread Attempting to build CHDK under OS X - some success, some problems....

Re: trouble building under os x
« Reply #2 on: 10 / December / 2008, 00:05:42 »
I installed gcc 4.3.2 via macports but i'm not seeing it in my /usr/bin. i do see 4.2. will that work? (anyone know where i might find it?)

how do i set the version of gcc to be used? do i need to install arm-elf-gcc 4.3.2 as well?

*

Offline whim

  • ******
  • 2036
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: trouble building under os x
« Reply #3 on: 10 / December / 2008, 03:17:58 »
Quote
do i need to install arm-elf-gcc 4.3.2

i would think so, yes. Just to summarize: normally one installs a native (MacOS in your case) GCC, which is then
used to build from source an arm elf cross compiler; only the cross compiler needs to be 4.3.2 AFAIK.

Please note i'm just extrapolating my experience with cygwin under Windows here -- don't know how this pans out on a Mac  :D

wim
« Last Edit: 10 / December / 2008, 03:23:39 by whim »


Re: trouble building under os x
« Reply #4 on: 10 / December / 2008, 07:44:28 »
hm, think i found it in \opt\local\bin\gcc-mp-4.3 compared to \usr\bin\gcc-4.2

(swap the back slashes for normal slashes, kept getting errors posting with forward slashes)
« Last Edit: 10 / December / 2008, 07:46:23 by mattkime »

Re: trouble building under os x
« Reply #5 on: 10 / December / 2008, 10:50:46 »
alright, i'm running gcc v4.3.2!

now, it seems that the problem is that i need to be running arm-elf-gcc v4.3.2. I believe I've installed it but i'm not sure how to get it to run instead of v4.1.0. i'm not sure where v4.3.2 is living and which symlink needs to be changed.

any ideas?

*

Offline zeno

  • *****
  • 889
Re: trouble building under os x
« Reply #6 on: 10 / December / 2008, 11:16:18 »
Matt, on my machine (where v4.3.2 works fine) my path is set to:
  /opt/local/arm-elf/bin:/opt/local/bin: ...
Although arm-elf-gcc-4.3.2 is in opt/local/bin not in opt/local/arm-elf/bin, it seems that its the gcc in /opt/local/arm-elf/bin that does the job. I just tried removing /opt/local/arm-elf/bin from the path and builds then failed.

« Last Edit: 10 / December / 2008, 12:02:41 by zeno »
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: trouble building under os x
« Reply #7 on: 10 / December / 2008, 11:43:29 »
zeno - how did you install it? i tried using macports. maybe it didn't work. i only see arm-elf-gcc-4.1.1


*

Offline zeno

  • *****
  • 889
Re: trouble building under os x
« Reply #8 on: 10 / December / 2008, 12:04:56 »
Matt - see update to my last post. Also to install I needed to selfupgrade my macports first (it was downloading 4.1.0) and deactivate the old arm-elf-gcc before 4.3.2 would get downloaded.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline jpgr

  • *
  • 13
Re: trouble building under os x
« Reply #9 on: 10 / December / 2008, 12:33:16 »
re the error message:

CAUTION! 'signatures_vxworks.h' is not updated due to 'sig_ref_vxworks_1.bin` or 'sig_ref_vxworks_2.bin` or 'sig_ref_vxworks_3.bin` is empty!

sig_ref_vxworks_1.bin : should contain a610-100e primary
sig_ref_vxworks_2.bin : should contain a710-100a primary
sig_ref_vxworks_3.bin : should contain a570-100e primary
sig_ref_dryos_1.bin   : should contain a720-100c primary
sig_ref_dryos_2.bin   : should contain sd1100-100c primary

(as per the readme.txt in the tools folder)

copy the relevant camera primary.bin's into the tools folder and rename them as above

regards

 

Related Topics