GithubHelp home page GithubHelp logo

Comments (11)

maciejkula avatar maciejkula commented on August 19, 2024

Apparently that is a clang-only flag, it should not be given to gcc. Can you tell me what OSX version you are on and which Python distribution you are using?

from lightfm.

dustinstansbury avatar dustinstansbury commented on August 19, 2024

Yosemite 10.10.3
Python 2.7.6

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

Can you paste the output of which python please?

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

I managed to reproduce your issue, it arises because you are building against the default OSX Python distribution. Installing Python from brew, macports, or the anaconda distribution should solve this problem while I look for a better solution.

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

Can you have a look if #30 fixes the issue for you?

from lightfm.

dustinstansbury avatar dustinstansbury commented on August 19, 2024

That definitely fixed the error related to -Wshorten-64-to-32 flag, thank you.

However, I'm still getting some assembly errors. It's apparently related to this: http://stackoverflow.com/a/10894096.

Seems like a possible fix is to replace the flag -march=native with -mno-avx, or, to add the flags -Wa,-q

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

Yes, this manifests the same as #25 (though the root cause is different). I'll have a think.

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

I updated #30 to remove the -march=native flag. Can you confirm that it works for you?

from lightfm.

dustinstansbury avatar dustinstansbury commented on August 19, 2024

Removing -march=native seems to have addressed the assembly errors. Will let you know if I run into anything else. Thank you for your time!

from lightfm.

dustinstansbury avatar dustinstansbury commented on August 19, 2024

Hmm, looks like removing the native architecture flag compiles for the wrong architecture:

ImportError: dlopen(/Users/dustinstansbury/.virtualenvs/test/lib/python2.7/site-packages/lightfm/lightfm_fast.so, 2): no suitable image found.  
Did find: /Users/dustinstansbury/.virtualenvs/test/lib/python2.7/site-packages/lightfm/lightfm_fast.so: mach-o, but wrong architecture

from lightfm.

maciejkula avatar maciejkula commented on August 19, 2024

I tried many things, but I think the soundest course of action here is to not support the default OSX Python installation. I'll update the readme to that effect.

from lightfm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.