macruby does not compile for me on Lion with xcode 4.1
Hi, I have some trouble compiling MacRuby on Lion with XCode 4.1. As some tickets in the trac indicate that people are using macruby on lion, i think this might be a problem with my setup. As said, its a MacOSX Lion with xcode 4.1 build 4B110 (got it from the appstore just yesterday). I checked out 0.10 from github.com and rake'd it: In file included from kernel.c:19: encoding.h:22:30: error: unicode/ustring.h: No such file or directory This seems reasonable since unicode/*.h is in icu-1060/. Shouldnt these header files come with xcode anyway? After my silly approach of copying the files into the include folder, the compiler does find the needed deklarations and the rake process goes on. However, some files later: /usr/bin/gcc-4.2 -std=c99 -I. -I./include -pipe -fno-common -fexceptions -fblocks -g -O3 -Wall -Wno-deprecated-declarations -Werror -arch x86_64 -c gc.c -o .objs/gc.o gc.c: In function ‘ruby_xmalloc_ptrs’: gc.c:130: error: ‘AUTO_MEMORY_ALL_POINTERS’ undeclared (first use in this function) gc.c:130: error: (Each undeclared identifier is reported only once gc.c:130: error: for each function it appears in.) rake aborted! The few google results on "AUTO_MEMORY_ALL_POINTERS" reveals that this comes from CoreFoundations CoreFoundation_Prefix.h. Unforunately this file does not exist in any CoreFoundation Frameworks (neither iOS, nor MacOSX) in /Developer on my Mac. About my system: LLVM 2.9 build with homebrew. # echo $PATH /usr/local/Cellar/ruby/1.9.2-p180/bin:/usr/local/bin:/usr/local/sbin:/Users/marv/.bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin # gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) #llvm-gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) Before I upgarded to Lion a ran SnowLeopard with LLVM 2.9 from homebrew and and older xcode 3.something and it compiled and ran perfectly. What might got wrong here? Any hints appreciated! Thanks! Marvin
Greetings, +1; I can't even get past: encoding.h:22:30: error: unicode/ustring.h: No such file or directory Sad fox. I'm pulling down XCode 4.2 to see if that works better... -- Morgan On Fri, Jul 22, 2011 at 6:39 AM, Marvin Frick <marvinfrick@gmx.de> wrote:
Hi,
I have some trouble compiling MacRuby on Lion with XCode 4.1. As some tickets in the trac indicate that people are using macruby on lion, i think this might be a problem with my setup. As said, its a MacOSX Lion with xcode 4.1 build 4B110 (got it from the appstore just yesterday).
I checked out 0.10 from github.com and rake'd it:
In file included from kernel.c:19: encoding.h:22:30: error: unicode/ustring.h: No such file or directory
This seems reasonable since unicode/*.h is in icu-1060/. Shouldnt these header files come with xcode anyway? After my silly approach of copying the files into the include folder, the compiler does find the needed deklarations and the rake process goes on. However, some files later:
/usr/bin/gcc-4.2 -std=c99 -I. -I./include -pipe -fno-common -fexceptions -fblocks -g -O3 -Wall -Wno-deprecated-declarations -Werror -arch x86_64 -c gc.c -o .objs/gc.o gc.c: In function ‘ruby_xmalloc_ptrs’: gc.c:130: error: ‘AUTO_MEMORY_ALL_POINTERS’ undeclared (first use in this function) gc.c:130: error: (Each undeclared identifier is reported only once gc.c:130: error: for each function it appears in.) rake aborted!
The few google results on "AUTO_MEMORY_ALL_POINTERS" reveals that this comes from CoreFoundations CoreFoundation_Prefix.h. Unforunately this file does not exist in any CoreFoundation Frameworks (neither iOS, nor MacOSX) in /Developer on my Mac.
About my system:
LLVM 2.9 build with homebrew.
# echo $PATH
/usr/local/Cellar/ruby/1.9.2-p180/bin:/usr/local/bin:/usr/local/sbin:/Users/marv/.bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
# gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
#llvm-gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Before I upgarded to Lion a ran SnowLeopard with LLVM 2.9 from homebrew and and older xcode 3.something and it compiled and ran perfectly.
What might got wrong here? Any hints appreciated!
Thanks! Marvin _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi, On 23.07.2011, at 11:32, Morgan Schweers wrote:
Greetings, +1; I can't even get past: encoding.h:22:30: error: unicode/ustring.h: No such file or directory
Sad fox.
I'm pulling down XCode 4.2 to see if that works better...
-- Morgan
Yeah, this is what i was talking about not finding the unicode headers. I dont think upgrading xcode to 4.2 is any help. However, I was told in the IRC (thanks ferrous26!) that the public available source wont compile on Lion right now. There are said to be patches that are not yet public since Lion was subject to NDA. Untill the source on github is updated, I'll stick with the pre-build binaries. I unpacked them manually into my /usr/local to keep my non-root-user file permissions in there, which is nice for homebrew users. Hopefully the Lion-Patches will be released soon! Cheers! Marvin
Hi, Watson just committed a quick fix on the official MacRuby repository so you should be able to build trunk on Lion. Cheers On Sat, Jul 23, 2011 at 7:20 PM, Marvin Frick <marvinfrick@gmx.de> wrote:
Hi,
On 23.07.2011, at 11:32, Morgan Schweers wrote:
Greetings, +1; I can't even get past: encoding.h:22:30: error: unicode/ustring.h: No such file or directory
Sad fox.
I'm pulling down XCode 4.2 to see if that works better...
-- Morgan
Yeah, this is what i was talking about not finding the unicode headers. I dont think upgrading xcode to 4.2 is any help.
However, I was told in the IRC (thanks ferrous26!) that the public available source wont compile on Lion right now. There are said to be patches that are not yet public since Lion was subject to NDA. Untill the source on github is updated, I'll stick with the pre-build binaries. I unpacked them manually into my /usr/local to keep my non-root-user file permissions in there, which is nice for homebrew users.
Hopefully the Lion-Patches will be released soon!
Cheers! Marvin _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi, is it necessary to the install llvm-config or llvm if you're using Mac OS 10.7 and Xcode 4.1? Thanks in advance, -Conrad
Hi, According to the README, please install the LLVM if you will compile the MacRuby. https://github.com/MacRuby/MacRuby/blob/master/README.rdoc Thanks, 2011/7/24 Conrad Taylor <conradwt@gmail.com>:
Hi, is it necessary to the install llvm-config or llvm if you're using Mac OS 10.7 and Xcode 4.1? Thanks in advance, -Conrad
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On Sat, Jul 23, 2011 at 7:00 PM, Watson <watson1978@gmail.com> wrote:
Hi,
According to the README, please install the LLVM if you will compile the MacRuby. https://github.com/MacRuby/MacRuby/blob/master/README.rdoc
Thanks,
Thanks for the information but this doesn't answer my initial question. I just don't want my Xcode builds to break now that I have things set up properly. -Conrad
2011/7/24 Conrad Taylor <conradwt@gmail.com>:
Hi, is it necessary to the install llvm-config or llvm if you're using Mac OS 10.7 and Xcode 4.1? Thanks in advance, -Conrad
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (5)
-
Conrad Taylor
-
Marvin Frick
-
Morgan Schweers
-
Vincent Isambart
-
Watson