Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version of rock does not build on windows #976

Open
ghost opened this issue Mar 4, 2016 · 3 comments
Open

Latest version of rock does not build on windows #976

ghost opened this issue Mar 4, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2016

make rescue

/Users/amos/Dev/ooc/rock/sdk/os/native/TerminalWin32.ooc: In function 'os_native_TerminalWin32__TerminalWin32___defaults___impl':
/Users/amos/Dev/ooc/rock/sdk/os/native/TerminalWin32.ooc:85:41: error: '__os_native_TerminalWin32_arrLit1' undeclared (first use in this function)
/Users/amos/Dev/ooc/rock/sdk/os/native/TerminalWin32.ooc:85:41: note: each undeclared identifier is reported only once for each function it appears in
/Users/amos/Dev/ooc/rock/sdk/os/native/TerminalWin32.ooc:85:81: error: '__os_native_TerminalWin32_ptrLit2' undeclared (first use in this function)

error seems to be in rock\build\c-source\ooc\sdk\os\native\TerminalWin32.c , lines 89-98:

void os_native_TerminalWin32__TerminalWin32___defaults___impl(os_native_TerminalWin32__TerminalWin32* this) {
    os_Terminal__TerminalHandler___defaults___impl((os_Terminal__TerminalHandler*) this);
    this->bg = 0;
    this->fg = 8;
    this->colors = (lang_Memory__memcpy(__os_native_TerminalWin32_arrLit1.data, __os_native_TerminalWin32_ptrLit2, 9 * ((lang_types__Class*)lang_Numbers__Int_class())->size), __os_native_TerminalWin32_arrLit1);
    #line 25 "/Users/amos/Dev/ooc/rock/sdk/os/native/TerminalWin32.ooc"
    _lang_array__Array __os_native_TerminalWin32_arrLit1 = _lang_array__Array_new(lang_Numbers__Int, 9);
    #line 25 "/Users/amos/Dev/ooc/rock/sdk/os/native/TerminalWin32.ooc"
    lang_Numbers__Int* __os_native_TerminalWin32_ptrLit2 = (lang_Numbers__Int[]) { 0, 12, 10, 14, 9, 13, 11, 7, 31 };
}

seems like __os_native_TerminalWin32_arrLit1 and __os_native_TerminalWin32_ptrLit2 are used before they are defined.

You can manually fix it and continue with compilation, but it will fail later when compiling TerminalWin32.ooc, so I guess that this file is the real source of the problem.

@marcusnaslund
Copy link
Contributor

This is Windows 10, to be specific, right?

@ghost
Copy link
Author

ghost commented Mar 4, 2016

Yes, we have tested on both Windows 10 and Windows 7, with the same reslults.

@horasal
Copy link
Contributor

horasal commented Mar 4, 2016

The same issue: #912
should have been solved by #915
I'm not sure why it appears again. I will take a look at it when I get enough time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants