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

cannot build optAPI in windows #68

Open
zhuyu2015 opened this issue May 11, 2017 · 11 comments
Open

cannot build optAPI in windows #68

zhuyu2015 opened this issue May 11, 2017 · 11 comments
Assignees

Comments

@zhuyu2015
Copy link

I follow the tutorial in the readme.md, put terra-release version and Opt in Optlang, and run the buildOpt.bat file, but encounter the following error:

llvm: program not executable
stack traceback:
[C]: in function 'saveobj'
C:\Users\zdevito\terra\src\terralib.lua:3979: in function 'saveobj'
E:\A_My_Work\Optlang\Opt-master\API\.\src\createWrapper.t:213: in main chunk

could anyone help explaining what's the reason?

@Mx7f
Copy link
Collaborator

Mx7f commented May 15, 2017

Can you run terra on its tests? Does that work, or give you a similar error?

@rongduo
Copy link

rongduo commented Jul 2, 2017

Have you solve the problem? I met the same problem.

@Mx7f
Copy link
Collaborator

Mx7f commented Jul 3, 2017

Does terra work when you run it on its tests?

@Mx7f Mx7f self-assigned this Jul 10, 2017
@rongduo
Copy link

rongduo commented Aug 11, 2017

There are about 30 terra tests failed to be run.

@Mx7f
Copy link
Collaborator

Mx7f commented Aug 14, 2017

Can you provide the full output from the tests?

@rongduo
Copy link

rongduo commented Aug 17, 2017

OK, because the full output is too long to put in the comment, I write them in the attachment file. Thank you!
full_putput_terra_test.txt

@mxgbs
Copy link

mxgbs commented Nov 30, 2017

Hi @rongduo
have you solved the problem? I have encountered the same one.

@mxgbs
Copy link

mxgbs commented Dec 1, 2017

If you changed that to saveobj("hello",...) to saveobj("hello.o", ...), it would work. However, when using g++ to generate executable file, error still popped as shown in https://community.microfocus.com/microfocus/mainframe_solutions/enterprise_developer_21/w/knowledge_base/27927/compatibility-issues-with-visual-studio-2015.
I guess you also use the same version of visual studio as I do. Though I think I found out the reason. However, I don't know how to solve that.

@mxgbs
Copy link

mxgbs commented Dec 4, 2017

I finally solved this by running buildOpt.bat using VS2015 x64 native tools command(instead of cmd or other VS cmd). However, more compiler errors occur when building .sln using VS2015.

@HaoguangHuang
Copy link

@rongduo @mxgbs
Have you solved this question successfully on windows now? Please let me know

@mxgbs
Copy link

mxgbs commented Oct 8, 2018 via email

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

5 participants