Opt icon indicating copy to clipboard operation
Opt copied to clipboard

cannot build optAPI in windows

Open zhuyu2015 opened this issue 8 years ago • 11 comments

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?

zhuyu2015 avatar May 11 '17 14:05 zhuyu2015

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

Mx7f avatar May 15 '17 03:05 Mx7f

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

rongduo avatar Jul 02 '17 10:07 rongduo

Does terra work when you run it on its tests?

Mx7f avatar Jul 03 '17 22:07 Mx7f

There are about 30 terra tests failed to be run.

rongduo avatar Aug 11 '17 11:08 rongduo

Can you provide the full output from the tests?

Mx7f avatar Aug 14 '17 00:08 Mx7f

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

rongduo avatar Aug 17 '17 08:08 rongduo

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

mxgbs avatar Nov 30 '17 22:11 mxgbs

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 avatar Dec 01 '17 01:12 mxgbs

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.

mxgbs avatar Dec 04 '17 19:12 mxgbs

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

HaoguangHuang avatar Oct 08 '18 03:10 HaoguangHuang

No. I gave up at the end.

On Sun, Oct 7, 2018 at 8:56 PM HaoguangHuang [email protected] wrote:

@rongduo https://github.com/rongduo @mxgbs https://github.com/mxgbs Have you solved this question successfully on windows now? Please let me know

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/niessner/Opt/issues/68#issuecomment-427716514, or mute the thread https://github.com/notifications/unsubscribe-auth/AH0KCxgqbdyRHCas4-o6XeucwdBxsXeLks5uiszvgaJpZM4NYEoN .

mxgbs avatar Oct 08 '18 17:10 mxgbs