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

trouble building under os x

  • 25 Replies
  • 10393 Views
*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: trouble building under os x
« Reply #10 on: 10 / December / 2008, 13:10:56 »
Advertisements
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!

These reference firmwares are not needed to successfully compile CHDK; with them in place signatures will be automatically searched for during the build process.
There's a nice article about this in the CHDK wikia: signature finder

Re: trouble building under os x
« Reply #11 on: 10 / December / 2008, 13:45:16 »
ah, i had seen your last post but it hadn't made any sense to me. anyway, i'm going to update the faq to reflect building with gcc v4.3.2

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.

*

Offline zeno

  • *****
  • 891
Re: trouble building under os x
« Reply #12 on: 13 / December / 2008, 08:03:50 »
Oh Dear! I had (and have) no problems building rev596 with gcc4.3.2, but when I try to build rev625 (for the 570) I get:
Code: [Select]
**** Build: 0.8.9
>> Entering to tools
pakwif.c -> pakwif.o
gcc: error trying to exec 'cc1': execvp: No such file or directory
gnumake[1]: *** [pakwif.o] Error 1
gnumake: *** [all-recursive] Error 1
What have I done wrong?

PS I get the same result with the most recent rev633.
« Last Edit: 13 / December / 2008, 08:11:08 by zeno »
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: trouble building under os x
« Reply #13 on: 13 / December / 2008, 09:58:58 »
Since this happens in the tools directory, it seems that your native GCC (not arm-elf-gcc !) can't find it's helper file cc1 ...

Try this to find out what's going on:

- in an 'offending' trunk version, open the 'makefile.inc' (the one in the source code root)

- at line 255 you'll find 'HOSTCFLAGS=-g -O2 -Wall'

- add the '-v' option, like this: 'HOSTCFLAGS=-g -v -O2 -Wall'

that makes your native GCC explain exactly where and how it calls it's helper files.

Mind you, i can't be sure that -v does the trick for native MacOS GCC ...
Tested on WinXP and GCC 3.2.3
if it doesn't work: i found this option by running a 'gcc --help' ...

wim


« Last Edit: 13 / December / 2008, 10:05:30 by whim »

Re: trouble building under os x
« Reply #14 on: 13 / December / 2008, 12:15:10 »
I'm getting the following errors building, any ideas?

Code: [Select]
-> main.elf
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_udivsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_divsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_umodsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_modsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_dvmd_tls.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivdf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixdfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixunsdfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_truncdfsf2.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubsf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivsf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_cmpsf2.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixsfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixunssfsi.o) does not support interworking, whereas main.elf does
gui.o: In function `gui_draw_osd':
gui.c:(.text+0x22e0): undefined reference to `gui_osd_draw_ev_video'
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_divsi3.o)(__divsi3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(main.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_udivsi3.o)(__udivsi3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(wrappers.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubsf3.o)(__floatsisf): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivsf3.o)(__mulsf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o)(__floatsidf): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivdf3.o)(__divdf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivdf3.o)(__muldf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixdfsi.o)(__fixdfsi): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_cmpsf2.o)(__gtsf2): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivsf3.o)(__divsf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o)(__extendsfdf2): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_truncdfsf2.o)(__truncdfsf2): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o)(__adddf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixsfsi.o)(__fixsfsi): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
collect2: ld returned 1 exit status
make[1]: *** [main.elf] Error 1

*

Offline reyalp

  • ******
  • 14128
Re: trouble building under os x
« Reply #15 on: 13 / December / 2008, 17:02:57 »
Your arm gcc isn't configured correctly, or you are using the wrong cflags gcc. windows dev kit, binary size & the whole ordeal (discussion here)
Don't forget what the H stands for.

*

Offline zeno

  • *****
  • 891
Re: trouble building under os x
« Reply #16 on: 14 / December / 2008, 15:53:13 »
Many thanks Whim. My problems stem from the fact that I don't really understand the build process. However, when I add that -v I get
Code: [Select]
gcc version 4.3.2 (GCC)
COLLECT_GCC_OPTIONS='-g' '-v' '-O2' '-Wall' '-DPLATFORMOS_vxworks' '-c' '-o' 'pakwif.o'
 cc1 -quiet -v -iprefix /opt/local/arm-elf/bin/../lib/gcc/arm-elf/4.3.2/ -D__USES_INITFINI__ -DPLATFORMOS_vxworks
pakwif.c -quiet -dumpbase pakwif.c -auxbase-strip pakwif.o -g -O2 -Wall -version -o /var/folders/...
gcc: error trying to exec 'cc1': execvp: No such file or directory

The cc1 executable is actually in opt/local/libexec/gcc/arm-elf/4.3.2

« Last Edit: 14 / December / 2008, 15:56:53 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 #17 on: 08 / August / 2009, 23:47:08 »
I'm getting the following error when i attempt to build.

gcc -v returns -

Target: i386-apple-darwin9.5.0
Configured with: ../gcc-4.3.2/configure --prefix=/opt/local --enable-languages=c,c++,objc,obj-c++,java,fortran --libdir=/opt/local/lib/gcc43 --includedir=/opt/local/include/gcc43 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.3 --with-gxx-include-dir=/opt/local/include/gcc43/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local
Thread model: posix
gcc version 4.3.2 (GCC)

Code: [Select]
-> main.elf
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_udivsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_divsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_umodsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_modsi3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_dvmd_tls.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivdf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixdfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixunsdfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_truncdfsf2.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubsf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivsf3.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_cmpsf2.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixsfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: Warning: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixunssfsi.o) does not support interworking, whereas main.elf does
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_divsi3.o)(__divsi3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(main.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_udivsi3.o)(__udivsi3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(wrappers.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubsf3.o)(__floatsisf): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivsf3.o)(__mulsf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o)(__floatsidf): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivdf3.o)(__divdf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivdf3.o)(__muldf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixdfsi.o)(__fixdfsi): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_cmpsf2.o)(__gtsf2): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_muldivsf3.o)(__divsf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o)(__extendsfdf2): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_truncdfsf2.o)(__truncdfsf2): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_addsubdf3.o)(__adddf3): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
/opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld: /opt/local/lib/gcc/arm-elf/4.3.2/thumb/libgcc.a(_fixsfsi.o)(__fixsfsi): warning: interworking not enabled.
  first occurrence: ../platform/a650/libplatform.a(shooting.o): arm call to thumb
   text    data     bss     dec     hex filename
 256765   10452   32620 299837   4933d main.elf


any ideas on what to try next?

Re: trouble building under os x
« Reply #18 on: 09 / August / 2009, 01:25:51 »
hm, i suspect I need to set an environment var to tell it to build for arm

*

Offline reyalp

  • ******
  • 14128
Re: trouble building under os x
« Reply #19 on: 09 / August / 2009, 01:51:09 »
hm, i suspect I need to set an environment var to tell it to build for arm
The output in your previous shows that it is already using the arm linker (notice /opt/local/lib/gcc/arm-elf/4.3.2/../../../../arm-elf/bin/ld...). As I suggested when you posted this question before, the error indicates that your GCC or toolchain wasn't configured correctly. If the .o files weren't in arm format, you'd get a different error.

To get the configuration information from the arm version of gcc, try arm-elf-gcc -v
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal