Coder Social home page Coder Social logo

Compile errors about gmp-d HOT 4 CLOSED

nordlow avatar nordlow commented on May 29, 2024
Compile errors

from gmp-d.

Comments (4)

nordlow avatar nordlow commented on May 29, 2024

Does it happen on the master branch of gmp-d aswell?

I'm gonna bump the version of gmp-d to 0.0.2.

from gmp-d.

devlo avatar devlo commented on May 29, 2024

gmp-d ~master: building configuration "library"...
../../.dub/packages/gmp-d-master/gmp-d/src/gmp/z.d(249,13): Error: function gmp.z.MpZ.fromString functions cannot be scope
../../.dub/packages/gmp-d-master/gmp-d/src/gmp/z.d(1125,19): Error: function gmp.z.MpZ._limbs functions cannot be scope
../../.dub/packages/gmp-d-master/gmp-d/src/gmp/z.d(1156,26): Error: function gmp.z.MpZ._ptr functions cannot be scope
../../.dub/packages/gmp-d-master/gmp-d/src/gmp/q.d(350,26): Error: function gmp.q.MpQ._ptr functions cannot be scope
../../.dub/packages/gmp-d-master/gmp-d/src/gmp/q.d(356,26): Error: function gmp.q.MpQ._num_ptr functions cannot be scope
../../.dub/packages/gmp-d-master/gmp-d/src/gmp/q.d(362,26): Error: function gmp.q.MpQ._den_ptr functions cannot be scope

from gmp-d.

nordlow avatar nordlow commented on May 29, 2024

There's a serious regression in 2.074.0:

dub build --compiler=/usr/bin/dmd

errors as

Performing "debug" build using /usr/bin/dmd for x86_64.
gmp-d 0.0.1+commit.126.g660d82b: building configuration "library"...
src/gmp/z.d(484,20): Error: struct gmp.z.MpZ is not copyable because it is annotated with @disable
src/gmp/q.d(205,16): Error: template instance gmp.z.MpZ.opBinary!"/" error instantiating
src/gmp/z.d(168,16): Error: struct gmp.z.MpZ is not copyable because it is annotated with @disable
src/gmp/z.d(921,16): Error: struct gmp.z.MpZ is not copyable because it is annotated with @disable
/usr/bin/dmd failed with exit code 1.

I don't, currently, know how to move forward with this.

I asked the forums here.

Update:

This error message seems to be a false positive triggered by not being able to handle my scope tagging of functions which I just commented out.

from gmp-d.

nordlow avatar nordlow commented on May 29, 2024

I just removed the scope qualifiers for functions and now build and tests pass for dmd latest stable and master. Available on gmp-d master and new tag v0.0.2.

from gmp-d.

Related Issues (6)

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.