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

couldn't self-build #60

Closed
ghost opened this issue Mar 26, 2017 · 9 comments
Closed

couldn't self-build #60

ghost opened this issue Mar 26, 2017 · 9 comments

Comments

@ghost
Copy link

ghost commented Mar 26, 2017

~/xmake/core$ xmake
error: /usr/local/share/xmake/core/base/option.lua:94: assertion failed!
stack traceback:
	[C]: in function 'assert'
	/usr/local/share/xmake/core/base/option.lua:94: in function '_context'
	/usr/local/share/xmake/core/base/option.lua:787: in function 'options'
	/usr/local/share/xmake/core/base/option.lua:745: in function 'get'
	/usr/local/share/xmake/core/base/utils.lua:37: in function '_print'
	/usr/local/share/xmake/core/base/utils.lua:78: in function 'cprint'
	/usr/local/share/xmake/core/base/utils.lua:118: in function 'error'
	/usr/local/share/xmake/core/main.lua:113: in function </usr/local/share/xmake/core/main.lua:105>

Is there any other work needed to do to self-build?

@waruqi
Copy link
Member

waruqi commented Mar 26, 2017

It works here.

Can you run xmake --version to tell me your xmake version?

And run xmake -v --backtrace to get more verbose backtrace info, or please attempt to update the newest version.

Thanks!

@ghost
Copy link
Author

ghost commented Mar 26, 2017

Sorry, my mistake

@ghost ghost closed this as completed Mar 26, 2017
@waruqi
Copy link
Member

waruqi commented Mar 26, 2017

Ok, I push a patch to master and improve error tips in order to locate problem more quickly in future.

@ghost
Copy link
Author

ghost commented Mar 27, 2017

I'm trying to let xmake self-build on CIs. But it seems that only Linux could do this.

Branch: TitanSnow:self_build

Build on travisCI, Linux succeeded but Mac OS failed.

Build on appveyor, failed on Windows

@ghost ghost reopened this Mar 27, 2017
@waruqi
Copy link
Member

waruqi commented Mar 27, 2017

I have fixed self-build on macOS, you can see thee patch d3865a3 from dev branch.

I need modify and rebuild libluajit.a to support vs201x compiler and it only support vs200x compiler now.

Please wait some time. I will fix it in future.

Thanks!

@ghost
Copy link
Author

ghost commented Mar 29, 2017

It seems that xmake uses binary library file to satisfy dependencies. Would it be better to build dependencies from source together?

@waruqi
Copy link
Member

waruqi commented Mar 30, 2017

I will consider this suggestion.

Thanks

@waruqi
Copy link
Member

waruqi commented Mar 30, 2017

I have fixed it on appveyor, please try the lastest commit from dev branch.

And it build luajit from source codes now.

@ghost
Copy link
Author

ghost commented Mar 30, 2017

Looks nice. You have a quick action:smiley:

This issue was closed.
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

1 participant