← Back to team overview

ooc-dev team mailing list archive

Re: help building block

 

Sorry I keep having a problem. I got rock compiler but it wont compile a
simple hello world.
I'm on OSX:

The input file is words.ooc

"hello" println()

The output in the terminal is:

mmini:words damian$ rock words

sdk/lang/Buffer.ooc:64:24 INFO Score of this capacity = 0 = -1 (SizeT vs
SSizeT)
            capacity = 0
                       ~

sdk/lang/Buffer.ooc:102:19 INFO Score of rs = 0 = -1 (SizeT vs SSizeT)
                rs = 0
                     ~

sdk/lang/Buffer.ooc:141:27 INFO Score of c = this size = -1 (SSizeT vs
SizeT)
        if (c > size) c = size
                          ~~~~

sdk/lang/Buffer.ooc:608:38 INFO Score of index = this size - index = -1
(SSizeT vs SizeT)
        if(index < 0) index = size - index
                                     ~~~~~

sdk/lang/Buffer.ooc:64:24 INFO Score of this capacity = 0 = -1 (SizeT vs
SSizeT)
            capacity = 0
                       ~

sdk/lang/Buffer.ooc:102:19 INFO Score of rs = 0 = -1 (SizeT vs SSizeT)
                rs = 0
                     ~

sdk/lang/Buffer.ooc:141:27 INFO Score of c = this size = -1 (SSizeT vs
SizeT)
        if (c > size) c = size
                          ~~~~

sdk/lang/Buffer.ooc:608:38 INFO Score of index = this size - index = -1
(SSizeT vs SizeT)
        if(index < 0) index = size - index
                                     ~~~~~
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
i686-apple-darwin10-gcc-4.2.1: .libs/words-osx.a: No such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/words.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: .libs/sdk-osx.a: No such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_Buffer.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_BufferIterator.o: No such file
or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_Character.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_Exception.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_IO.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_Iterators.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_Memory.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_Numbers.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_String.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_System.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_types.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/lang_VarArgs.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/structs_ArrayList.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/structs_List.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/math_Random.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/os_Time.o: No such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/native_win32_types.o: No such file
or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/structs_HashMap.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_Thread.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_native_ThreadUnix.o: No
such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_native_ThreadWin32.o: No
such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/native_win32_errors.o: No such file
or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_native_MutexUnix.o: No
such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_native_MutexWin32.o: No
such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_native_ThreadLocalUnix.o:
No such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/threading_native_ThreadLocalWin32.o:
No such file or directory
i686-apple-darwin10-gcc-4.2.1: rock_tmp/structs_Stack.o: No such file or
directory
i686-apple-darwin10-gcc-4.2.1: .libs/words-osx.a: No such file or directory
i686-apple-darwin10-gcc-4.2.1: .libs/sdk-osx.a: No such file or directory
C compiler failed (got code 1), aborting compilation process
[FAIL]



On Fri, Sep 24, 2010 at 10:02 PM, Damian <damian.pop@xxxxxxxxx> wrote:

> well, I don't know... I used the 1st option instead of the 2nd in
> http://ooc-lang.org/alpaca/index and now rock is perfectly installed.
>
> On Fri, Sep 24, 2010 at 8:19 PM, Damian <damian.pop@xxxxxxxxx> wrote:
>
>> I've downloaded bootstrap sources and builded it. Now I have a block
>> compiler, but the idea is to build the compiler writen in ooc with it,
>> right? And use this second compiler instead of the first one.
>> Well, if I undestood correctly that's what I have to do, but I'm getting
>> errors:
>> Any idea? I'm on OSX
>>
>> Thanks!
>>
>> mmini:source damian$ rock rock/rock.ooc -o=occrock
>>
>> sdk/lang/Buffer.ooc:64:24 INFO Score of this capacity = 0 = -1 (SizeT vs
>> SSizeT)
>>             capacity = 0
>>                        ~
>>
>> sdk/lang/Buffer.ooc:102:19 INFO Score of rs = 0 = -1 (SizeT vs SSizeT)
>>                 rs = 0
>>                      ~
>>
>> sdk/lang/Buffer.ooc:141:27 INFO Score of c = this size = -1 (SSizeT vs
>> SizeT)
>>         if (c > size) c = size
>>                           ~~~~
>>
>> sdk/lang/Buffer.ooc:608:38 INFO Score of index = this size - index = -1
>> (SSizeT vs SizeT)
>>         if(index < 0) index = size - index
>>                                      ~~~~~
>>
>> sdk/lang/Buffer.ooc:64:24 INFO Score of this capacity = 0 = -1 (SizeT vs
>> SSizeT)
>>             capacity = 0
>>                        ~
>>
>> sdk/lang/Buffer.ooc:102:19 INFO Score of rs = 0 = -1 (SizeT vs SSizeT)
>>                 rs = 0
>>                      ~
>>
>> sdk/lang/Buffer.ooc:141:27 INFO Score of c = this size = -1 (SSizeT vs
>> SizeT)
>>         if (c > size) c = size
>>                           ~~~~
>>
>> sdk/lang/Buffer.ooc:608:38 INFO Score of index = this size - index = -1
>> (SSizeT vs SizeT)
>>         if(index < 0) index = size - index
>>                                      ~~~~~
>>
>> ./rock/frontend/AstBuilder.ooc:118:51 INFO Score of (impPath, impElement)
>> = (impPat2, impElemen2) = -100000 ((File, File) vs (File, File))
>>                 (impPath, impElement) = (impPat2, impElemen2)
>>                                                   ~~~~~~~~~~
>> rock_tmp/./rock/frontend/CommandLine.c: In function
>> ‘rock_frontend_CommandLine__CommandLine_init’:
>> rock_tmp/./rock/frontend/CommandLine.c:184: warning: assignment from
>> incompatible pointer type
>> rock_tmp/./rock/frontend/CommandLine.c:274: warning: assignment from
>> incompatible pointer type
>> rock_tmp/./rock/frontend/CommandLine.c:276: warning: assignment from
>> incompatible pointer type
>> rock_tmp/./rock/frontend/CommandLine.c:278: warning: assignment from
>> incompatible pointer type
>> rock_tmp/./rock/frontend/CommandLine.c:289: error: ‘ROCK_BUILD_DATE’
>> undeclared (first use in this function)
>> rock_tmp/./rock/frontend/CommandLine.c:289: error: (Each undeclared
>> identifier is reported only once
>> rock_tmp/./rock/frontend/CommandLine.c:289: error: for each function it
>> appears in.)
>> rock_tmp/./rock/frontend/CommandLine.c:289: error: ‘ROCK_BUILD_TIME’
>> undeclared (first use in this function)
>> rock_tmp/./rock/frontend/CommandLine.c:297: warning: unused variable
>> ‘cCPath’
>> rock_tmp/./rock/frontend/CommandLine.c: In function
>> ‘rock_frontend_CommandLine__CommandLine_postParsing_impl’:
>> rock_tmp/./rock/frontend/CommandLine.c:554: warning: ‘return’ with a
>> value, in function returning void
>> rock_tmp/./rock/frontend/CommandLine.c:574: warning: format not a string
>> literal and no format arguments
>> rock_tmp/./rock/frontend/CommandLine.c: In function
>> ‘rock_frontend_CommandLine____rock_frontend_CommandLine_closure940’:
>> rock_tmp/./rock/frontend/CommandLine.c:902: warning: unused variable ‘T’
>> rock_tmp/./rock/frontend/CommandLine.c: In function
>> ‘rock_frontend_CommandLine____rock_frontend_CommandLine_closure1090’:
>> rock_tmp/./rock/frontend/CommandLine.c:911: warning: unused variable ‘K’
>> rock_tmp/./rock/frontend/CommandLine.c:910: warning: unused variable ‘V’
>> rock_tmp/./rock/frontend/CommandLine.c: In function
>> ‘rock_frontend_CommandLine____rock_frontend_CommandLine_closure1093’:
>> rock_tmp/./rock/frontend/CommandLine.c:927: warning: unused variable ‘T’
>> C compiler failed (with code 1), aborting compilation process
>> [FAIL]
>>
>
>

Follow ups

References