xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

fix the terminate error - std::logic_error issue on some OS environme…

Open yoonkt200 opened this issue 4 years ago • 2 comments

Check the issue #311 some error cases when installed by pip in latest ubuntu(or CentOS). because of c compiler version issue, the init_log()'s parameter is empty. maybe specify the parameter is needed.

yoonkt200 avatar Nov 26 '19 04:11 yoonkt200

xlearn c++ code uses multi-threading, so while accessing the hardware it need the user variable in the environment. And because if c compiler version issue the init_log() parameter is empty. So we have to initialize it by ourself. So basically write USER = 'Test' before command. I solved it in python using os.environ['USER'] = 'test'

binayakpokhrel avatar Jan 31 '20 11:01 binayakpokhrel

Thanks @yoonkt200, this PR fixed the issue for me. I came across it when building xLearn with -march=nehalem on Ubuntu:

https://github.com/ankane/ml-builds/blob/51001ef53c982221780206dd633b82d3eb1ba7be/.github/workflows/xlearn-linux.yml

ankane avatar Feb 10 '20 03:02 ankane