Giter Site home page Giter Site logo

Build fails when using --gc:arc. about euwren HOT 5 OPEN

liquidev avatar liquidev commented on May 26, 2024
Build fails when using --gc:arc.

from euwren.

Comments (5)

liquidev avatar liquidev commented on May 26, 2024

This seems like a nimterop bug, I'll try to reproduce this and talk about this to @genotrance.

Meanwhile, make sure that you're running latest nimterop and regex, they have caused some problems for me on devel.

(oops, closed accidentally)

from euwren.

liquidev avatar liquidev commented on May 26, 2024

Unfortunately nimterop does not have ARC support yet, you'll have to use a different GC for the time being.

from euwren.

Wazubaba avatar Wazubaba commented on May 26, 2024

Alright. Thanks for checking into this. Here's hoping they can get that fixed up soon!

from euwren.

genotrance avatar genotrance commented on May 26, 2024

This isn't a nimterop issue. If you compile just src/euwren/private/wren.nim with --gc:arc, it builds fine. If you add a cDebug() and write the wrapper to a file and compile that output (eliminating nimterop beyond that point), that works too. If you import this static wrapper and compile euwren.nim, it fails as described in this issue.

There's something in euwren.nim that is breaking with arc but it is totally unclear which specific line is causing this. There is no hint for what the issue is. Here's the stack trace from koch temp. Hopefully, @Araq has some ideas.

/home/dir/nimdevel/compiler/nim.nim(118) nim
/home/dir/nimdevel/compiler/nim.nim(95) handleCmdLine
/home/dir/nimdevel/compiler/cmdlinehelper.nim(77) loadConfigsAndRunMainCommand
/home/dir/nimdevel/compiler/main.nim(190) mainCommand
/home/dir/nimdevel/compiler/main.nim(92) commandCompileToC
/home/dir/nimdevel/compiler/modules.nim(143) compileProject
/home/dir/nimdevel/compiler/modules.nim(84) compileModule
/home/dir/nimdevel/compiler/passes.nim(216) processModule
/home/dir/nimdevel/compiler/passes.nim(86) processTopLevelStmt
/home/dir/nimdevel/compiler/sem.nim(604) myProcess
/home/dir/nimdevel/compiler/sem.nim(572) semStmtAndGenerateGenerics
/home/dir/nimdevel/compiler/semstmts.nim(2303) semStmt
/home/dir/nimdevel/compiler/semexprs.nim(1006) semExprNoType
/home/dir/nimdevel/compiler/semexprs.nim(2801) semExpr
/home/dir/nimdevel/compiler/importer.nim(218) evalImport
/home/dir/nimdevel/compiler/importer.nim(188) impMod
/home/dir/nimdevel/compiler/importer.nim(158) myImportModule
/home/dir/nimdevel/compiler/modules.nim(98) importModule
/home/dir/nimdevel/compiler/modules.nim(84) compileModule
/home/dir/nimdevel/compiler/passes.nim(216) processModule
/home/dir/nimdevel/compiler/passes.nim(86) processTopLevelStmt
/home/dir/nimdevel/compiler/sem.nim(604) myProcess
/home/dir/nimdevel/compiler/sem.nim(572) semStmtAndGenerateGenerics
/home/dir/nimdevel/compiler/semstmts.nim(2303) semStmt
/home/dir/nimdevel/compiler/semexprs.nim(1006) semExprNoType
/home/dir/nimdevel/compiler/semexprs.nim(2786) semExpr
/home/dir/nimdevel/compiler/semstmts.nim(2082) semProc
/home/dir/nimdevel/compiler/semstmts.nim(2001) semProcAux
/home/dir/nimdevel/compiler/semexprs.nim(1764) semProcBody
/home/dir/nimdevel/compiler/semexprs.nim(2768) semExpr
/home/dir/nimdevel/compiler/semstmts.nim(2243) semStmtList
/home/dir/nimdevel/compiler/semexprs.nim(2679) semExpr
/home/dir/nimdevel/compiler/semexprs.nim(2271) semMagic
/home/dir/nimdevel/compiler/semexprs.nim(988) semDirectOp
/home/dir/nimdevel/compiler/semexprs.nim(888) afterCallActions
/home/dir/nimdevel/compiler/ast.nim(1100) magicsAfterOverloadResolution
/home/dir/nimdevel/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: 'sym' is not accessible using discriminant 'kind' of type 'TNode' [FieldError]
FAILURE

from euwren.

liquidev avatar liquidev commented on May 26, 2024

@genotrance, right. I already encountered at least two more issues where euwren triggered some edge case in the compiler in the past, I may be able to debug this myself somehow.

Unfortunately I wasn't able to report them properly since I wasn't able to reproduce them in a minimal example.

from euwren.

Related Issues (16)

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.