Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with nim 2.0.0 #209

Open
meanjollies opened this issue Sep 16, 2023 · 3 comments
Open

Build failure with nim 2.0.0 #209

meanjollies opened this issue Sep 16, 2023 · 3 comments

Comments

@meanjollies
Copy link

Hello, when I attempt to build the latest release, I get the following:

$ nim c -d:danger mosdepth.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
Hint: used config file '/home/a/mosdepth/mosdepth-0.3.5/nim.cfg' [Conf]
......................................................................................................................................................................
/home/a/mosdepth/mosdepth-0.3.5/mosdepth.nim(261, 18) template/generic instantiation of `tag` from here
/home/a/.nimble/pkgs2/hts-0.3.25-c05c9adf6b2e10a7f07edfef29110ea14bb66611/hts/bam/auxtags.nim(63, 7) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
/home/a/mosdepth/mosdepth-0.3.5/mosdepth.nim(261, 18) template/generic instantiation of `tag` from here
/home/a/.nimble/pkgs2/hts-0.3.25-c05c9adf6b2e10a7f07edfef29110ea14bb66611/hts/bam/auxtags.nim(66, 7) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
/home/a/mosdepth/mosdepth-0.3.5/mosdepth.nim(261, 18) template/generic instantiation of `tag` from here
/home/a/.nimble/pkgs2/hts-0.3.25-c05c9adf6b2e10a7f07edfef29110ea14bb66611/hts/bam/auxtags.nim(74, 7) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
/home/a/mosdepth/mosdepth-0.3.5/mosdepth.nim(504, 3) Error: undeclared identifier: 'shallow'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (3, 4): 'alloc'
 (3, 4): 'dealloc'
 (3, 4): 'realloc'

This began once I upgraded to nim 2.0.0.

@brentp
Copy link
Owner

brentp commented Sep 17, 2023

Hi, for now, I suggest to use nim < 2.0.0. I'll update to latest nim in the neext few months.

@pdiakumis
Copy link

Getting the same when trying to update the bioconda recipe at https://dev.azure.com/bioconda/bioconda-recipes/_build/results?buildId=43039&view=logs&j=1b052f1d-4456-52f0-9d43-71c4c5bd734d&t=edc48dcd-1fc2-5e3b-7036-7be9cea00123&l=376

I'll change the nim in meta.yaml to nim < 2.0.0 (see PR at bioconda/bioconda-recipes#43500).

ccwang002 added a commit to bioconda/bioconda-recipes that referenced this issue Mar 5, 2024
ccwang002 added a commit to bioconda/bioconda-recipes that referenced this issue Mar 5, 2024
* Update somalier to 0.2.19

* Small bump to trigger CI

* Pin nim to an older version

See brentp/mosdepth#209

---------

Co-authored-by: Nicolas Vannieuwkerke <[email protected]>
Co-authored-by: Liang-Bo Wang <[email protected]>
@martin-g
Copy link
Contributor

Is there any progress on the update to Nim 2.x ?
I am trying to add a linux-aarch64 Bioconda package for mosdepth at bioconda/bioconda-recipes#47052 but https://anaconda.org/conda-forge/nim provides on nim 2.0.4 for linux-aarch64...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants