[Rubycocoa-devel 492] Re: config fails in generating CoreGraphics.xml

Back to archive index

Laurent Sansonetti lsans****@apple*****
Mon Dec 11 02:20:32 JST 2006


Fixed in SVN. Now it should work fine without any regression.

Laurent

On Dec 10, 2006, at 5:00 PM, Laurent Sansonetti wrote:

> Oops, I made a mistake, I was not using the updated generator for the
> regressions test. There is still a bug, I'm fixing it right now.
>
> Laurent
>
> On Dec 10, 2006, at 4:57 PM, Laurent Sansonetti wrote:
>
>> Hi Kimura-san,
>>
>> Thanks for the report (you're the second one!) and the idea. I
>> committed a fix to SVN based on your idea (but instead of passing - 
>> P I
>> remove all comment lines, as they are anyway not necessary). I ran  
>> the
>> generator on all the frameworks and verified that no regression was
>> introduced.
>>
>> Laurent
>>
>> On Dec 10, 2006, at 1:26 PM, kimura wataru wrote:
>>
>>> Hi,
>>>
>>> RubyCocoa config step of the apple-unstable branch (r1264) failed
>>> on 10.4.8 with the following error.
>>>
>>> --------
>>> command was: gcc /tmp/src-0-29805.m -o /tmp/bin-0-29805  -framework
>>> ApplicationS
>>> ervices  -F/System/Library/Frameworks/ApplicationServices.framework/
>>> Frameworks
>>> -framework Foundation  2>/tmp/log-0-29805
>>>
>>> /tmp/src-0-29805.m: In function ‘main’:
>>> /tmp/src-0-29805.m:169: error: missing terminating " character
>>> /tmp/src-0-29805.m:170: error: parse error before
>>> ‘CGPDFDictionaryRef’
>>> /tmp/src-0-29805.m:170: error: missing terminating " character
>>>         from tool/gen_bridge_metadata.rb:476:in
>>> `collect_types_encoding'
>>>         from tool/gen_bridge_metadata.rb:325:in `initialize'
>>>         from tool/gen_bridge_metadata.rb:933:in `new'
>>>         from tool/gen_bridge_metadata.rb:933
>>> config failed
>>> hook /Users/kimuraw/proj/rubycocoa/libffi/framework/post-config.rb
>>> failed:
>>> --------
>>>
>>> --------
>>> % cat -n /tmp/src-29805.m
>>>      :
>>>    169    printf("%s: %s¥n", "2
>>>    170  CGPDFDictionaryRef", @encode(2
>>>    171  CGPDFDictionaryRef));
>>>      :
>>> --------
>>>
>>> I think this caused by cpp's line number output. cpp's -P option
>>> suppresses line number outputs.
>>>
>>> === framework/tool/gen_bridge_metadata.rb
>>> ==================================================================
>>> --- framework/tool/gen_bridge_metadata.rb	(revision 1432)
>>> +++ framework/tool/gen_bridge_metadata.rb	(local)
>>> @@ -25,7 +25,7 @@
>>>
>>>    CPP = ['/usr/bin/cpp-4.0', '/usr/bin/cpp-3.3', '/usr/bin/
>>> cpp3'].find { |x| File.exists?(x) }
>>>    raise "cpp not found" if CPP.nil?
>>> -  CPPFLAGS = "-x objective-c -D__APPLE_CPP__"
>>> +  CPPFLAGS = "-x objective-c -D__APPLE_CPP__ -P"
>>>    CPPFLAGS << "-D__GNUC__" unless /
>>> ¥Acpp-4/.match(File.basename(CPP))
>>>
>>>    def initialize(path)
>>>
>>>
>>> -- 
>>> kimura wataru
>>> _______________________________________________
>>> Rubycocoa-devel mailing list
>>> Rubyc****@lists*****
>>> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel
>>
>> _______________________________________________
>> Rubycocoa-devel mailing list
>> Rubyc****@lists*****
>> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel
>
> _______________________________________________
> Rubycocoa-devel mailing list
> Rubyc****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel




More information about the Rubycocoa-devel mailing list
Back to archive index