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

trouble building under os x

  • 25 Replies
  • 7183 Views
Re: trouble building under os x
« Reply #20 on: 09 / August / 2009, 10:37:23 »
Advertisements
arm-elf-gcc -v produces -

Code: [Select]
Using built-in specs.
Target: arm-elf
Configured with: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc/work/gcc-4.3.2/configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man --target=arm-elf --program-prefix=arm-elf- --program-suffix=-4.3.2 --without-included-gettext --enable-obsolete --with-newlib --enable-multilib --enable-biendian --disable-libgfortran --with-gxx-include-dir=/opt/local/arm-elf/include/c++/4.3.2/ --enable-languages=c,c++,objc
Thread model: single
gcc version 4.3.2 (GCC)

*

Offline reyalp

  • ******
  • 12934
Re: trouble building under os x
« Reply #21 on: 09 / August / 2009, 18:17:18 »
Did you build the arm toolchain yourself, or are you using some pre-configured version  (if it was built from ports without giving you an opportunity to configure it, that would be pre-configured as well) ?

If you are using a pre-configured version, I'd suggest building it yourself, following the linux instructions. Alternately, you could use linux or windows in a VM and use one of the pre-built toolchains linked from the wiki.
Don't forget what the H stands for.

Re: trouble building under os x
« Reply #22 on: 09 / August / 2009, 21:25:19 »
I have built CHDK using my machine - I wrote much of the FAQ for building on OS X.

but perhaps it would be a good idea to follow the instructions from the beginning

*

Offline reyalp

  • ******
  • 12934
Re: trouble building under os x
« Reply #23 on: 09 / August / 2009, 22:18:32 »
I have built CHDK using my machine - I wrote much of the FAQ for building on OS X.
If you have successfully built CHDK before, then surely the first question is what have you changed since it last worked ???

I don't have a Mac handy, but http://chdk.wikia.com/wiki/Compiling_CHDK_under_Mac_OS_X looks to me like it would just give some default configuration for your arm cross compiler.

The error message is saying that the libraries it is attempting to link with do not support arm/thumb interworking. Either your toolchain was not configured to do this, or some option is missing from the cflags. Since the CHDK Makefiles contain the options required to make it work with the normal configuration, I'd guess the former.

It's worth noting that getting a GCC configuration that works with CHDK is pretty touchy, and working configurations have basically been discovered by trial and error. Minor variations break things in poorly understood ways. It would really benefit from someone with good ARM and GCC knowledge going through it and figuring out how to do it right.
Don't forget what the H stands for.


Re: trouble building under os x
« Reply #24 on: 09 / August / 2009, 23:01:53 »
>>If you have successfully built CHDK before, then surely the first question is what have you changed since it last worked

Time has passed, I've restarted many times....nothing more substantial than that.

anything we can do to review the cflags?

>>and working configurations have basically been discovered by trial and error.

I'm glad people with more experience see it that way!

If someone can come by and shed some light on the situation in the next week then I'll stick with my mac environment. If it goes past that then I'll fire up Windows but thats likely to open its own can of worms.

*

Offline reyalp

  • ******
  • 12934
Re: trouble building under os x
« Reply #25 on: 09 / August / 2009, 23:37:22 »
>>If you have successfully built CHDK before, then surely the first question is what have you changed since it last worked

Time has passed, I've restarted many times....nothing more substantial than that.
That would suggest an environment variable, assuming no relevant updates happened automagically in the background.
Quote
anything we can do to review the cflags?
If  CFLAGS is set in the environment of the shell you are building in, try clearing it. Otherwise, look in the GCC manual and toplevel makefile.inc, especially for things related to interworking.

Quote
If someone can come by and shed some light on the situation in the next week then I'll stick with my mac environment. If it goes past that then I'll fire up Windows but thats likely to open its own can of worms.
The pre-compiled GCC3 environment works out of the box (+/- path issues) under XP. I haven't used it myself, but whims gui front end is also reported to work well http://chdk.setepontos.com/index.php/topic,845.0.html
Don't forget what the H stands for.

 

Related Topics