Coder Social home page Coder Social logo

Building on MAC about libote HOT 8 CLOSED

osu-crypto avatar osu-crypto commented on May 27, 2024
Building on MAC

from libote.

Comments (8)

ladnir avatar ladnir commented on May 27, 2024

ok, did you call export cryptoTools_NO_NASM as the readme instructs?

from libote.

sourabhmarathe avatar sourabhmarathe commented on May 27, 2024

Yes, I have set it to true.

from libote.

ladnir avatar ladnir commented on May 27, 2024

hmm, ok. The relevant place to look is here. This defines NO_INTEL_ASM_SHA1=1 which in turn should make the preprocessor disable the code that calls _sha1_update_intel.

Can you double check that this is happening? Maybe a CMake message("defining NO_INTEL_ASM_SHA1") next to that line and then call cmake ..

from libote.

sourabhmarathe avatar sourabhmarathe commented on May 27, 2024

Yes, I am seeing this after running cmake .
`-- ENV{cryptoTools_NO_NASM} = true

defining NO_INTEL_ASM_SHA1`

from libote.

ladnir avatar ladnir commented on May 27, 2024

ok, and then in the sha1.cpp file its still calling that function? maybe just add some illegal code before that second line i linked to. To make sure/see if its not being called..

from libote.

sourabhmarathe avatar sourabhmarathe commented on May 27, 2024

Yes, when I add illegal code cmake . does not work.

from libote.

ladnir avatar ladnir commented on May 27, 2024

"does not work." as in it throws an error on the code you added or the original error?

Assuming its the former, somehow we are defining NO_INTEL_ASM_SHA1 and still getting through this preprocessor line. That seems very strange. As a hack you can just uncomment this line.

from libote.

sourabhmarathe avatar sourabhmarathe commented on May 27, 2024

The code that was added caused the error. It looks like uncommenting that line of code does the trick on the MAC.

from libote.

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.