Open nbrandaleone opened 13 years ago
I forgot to mention that this error occurred while running Macruby 0.10, Hotcocoa 0.51.
If you would like to try it, this issue is fixed in my fork of HotCocoa.
Thanks. I will try out the new build.
Sent from my iPhone
On May 23, 2011, at 12:03 AM, ferrous26reply@reply.github.com wrote:
If you would like to try it, this issue is fixed in my fork of HotCocoa.
Reply to this email directly or view it on GitHub: https://github.com/richkilmer/hotcocoa/issues/17#comment_1219739
This looks similar to an existing bug. I have posted the issue and solution below.
Issue: when running macrake on a vanilla hotcocoa created project and directory tree, it fails. Why: macrake calls hotcocoa/application_builder.rb. This file compiles an executable using the following logic... RUBY_ARCH.include?('ppc') ? '-arch ppc' : '-arch i386 -arch x86_64' However, on a x86_64 machine, the compiler will try to also create a 32 bit version. This 32 bit executable cannot link to the rest of the objects as they are 64 bit only (at least on my machine), so it fails.
Solution: I simply removed the reference to 32 bit in the application_builder.rb file. I am not sure if this is the "best" solution as it may break 32 bit compiles on other machines. For my 64 bit host, it works great. RUBY_ARCH.include?('ppc') ? '-arch ppc' : ' -arch x86_64'
Dump/Error output:
[macpro:~/src/macruby/my_first_app] macrake run
(in /Users/nbrand/src/macruby/my_first_app) ld: warning: ignoring file /Library/Frameworks//MacRuby.framework/MacRuby, file was built for unsupported file format which is not the architecture being linked (i386) Undefined symbols for architecture i386: "_macruby_main", referenced from: _main in ccTmkyxO.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status lipo: can't open input file: /var/folders/bx/bxsDMQkhFGCnAlLx4sEiEE+++TM/-Tmp-//ccDFJISw.out (No such file or directory)
/bin/sh: ./My First App.app/Contents/MacOS/MyFirstApp: No such file or directory