-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix nightlies linenoise regression * fix other installers
- Loading branch information
1 parent
90491ea
commit 2b368bc
Showing
1 changed file
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2b368bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timotheecour after this commit I'm getting the following error:
when using niminst. I'm on a Debian 10 x86-64 system.
2b368bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drjdn it's hard to fix this without know what to run; could you please provide instructions for how to reproduce this from a fresh Nim clone?
here's what i tried (on OSX but doubt error I'm getting below is related to osx):
(also full logs would help)
2b368bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timotheecour I've added a simple hello world example that fails as above at my github repo. There is a copy of
nimbase.h
inlib/
. I use a soft link but here I just copied the current version frommylocation/nim/lib
.2b368bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you're using a non-standard configuration so IMO this isn't a regression
doesn't look like a good idea to copy Nim/lib/nimbase.h into another repo https://github.com/drjdn/hello_standalone/blob/master/lib/nimbase.h since it causes duplication; instead a build tool that would automatically copy files seems like a better idea (you're missing other files too if you're gonna go this route, eg lib/cycle.h). Using a softlink is better indeed, but still should use a build tool for that.
in your specific case, I guess all you'd need is for your build tool to also copy lib/wrappers/linenoise/linenoise.h, or (even better) add a tool to niminst that returns a json string/file that specifies all the files that need to be copied as part of a proper install, to avoid duplicating any logic
2b368bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timotheecour this is a regression as the repo that I put up for you to debug the issue worked fine before your commit and doesn't now. niminst creates standalone c code that can run without nim. That c code needs nimbase.h to build. In practice I soft link to my current systems nimbase.h but in the repo I just copied the current version from nim's git head. Once the c code is generated you can ship it with that version of nimbase.h and it will build correctly. If you can explain to me why my hello world example needs the header file to a line editing library to work I'll agree this isn't a regression.
2b368bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=> PR #13413