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

Compilation issue at step #4 #5

Open
wzball opened this issue Oct 21, 2019 · 0 comments
Open

Compilation issue at step #4 #5

wzball opened this issue Oct 21, 2019 · 0 comments

Comments

@wzball
Copy link

wzball commented Oct 21, 2019

Hi, thanks for the project.

I have an Oracle Linux 7.5 system that I am trying to compile this code on. After installing dependencies and patching the code, I executed the compiling steps. I get an error that I can't get passed;

Error output

/root/.nimble/pkgs/qt5_qtsql-1.1.1/qt5_qtsql/src/immutablecstring.nim(31, 37) Error: undeclared identifier: 'expr'
     Error: Execution failed with exit code 1
        ... Command: "/usr/local/nim/bin/nim" cpp --noNimblePath -d:NimblePkgVersion=1.0.0 --path:"/root/.nimble/pkgs/qt5_qtsql-1.1.1" --path:"/root/.nimble/pkgs/microasynchttpserver-0.10.2" --path:"/root/.nimble/pkgs/picohttpparser-0.10.0" "--out:bin/influx_mysql"  "influx_mysql/src/influx_mysql"

Step 1

# pwd
/usr/local/influx-mysql
# git submodule update --init
#

Step 2

# nimble install -d

  Verifying dependencies for influx_mysql@1.0.0
      Info: Dependency on qt5_qtsql@>= 1.0.1 already satisfied
  Verifying dependencies for qt5_qtsql@1.1.1
      Info: Dependency on microasynchttpserver@>= 0.10.0 already satisfied
  Verifying dependencies for microasynchttpserver@0.10.2
      Info: Dependency on picohttpparser@>= 0.10.0 already satisfied
   Warning: Package 'picohttpparser' has an incorrect structure. The top level of the package source directory should contain at most one module, named 'picohttpparser.nim', but a file named 'picohttpparser_api.nim' was found. This will be an error in the future.
      Hint: If this is the primary source file in the package, rename it to 'picohttpparser.nim'. If it's a source file required by the main module, or if it is one of several modules exposed by 'picohttpparser', then move it into a 'picohttpparser/' subdirectory. If it's a test file or otherwise not required to build the the package 'picohttpparser.nim', prevent its installation by adding `skipFiles = @["picohttpparser_api.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for more info.
  Verifying dependencies for picohttpparser@0.10.0
   Warning: The .nimble file for this project could make use of additional features, if converted into the new NimScript format.
        ... For more details see:https://github.com/nim-lang/nimble#creating-packages

Step 3

# mkdir -p bin

Step 4

# nimble cpp --out:bin/influx_mysql influx_mysql/src/influx_mysql
   Warning: The .nimble file for this project could make use of additional features, if converted into the new NimScript format.
        ... For more details see:https://github.com/nim-lang/nimble#creating-packages
  Verifying dependencies for influx_mysql@1.0.0
      Info: Dependency on qt5_qtsql@>= 1.0.1 already satisfied
  Verifying dependencies for qt5_qtsql@1.1.1
      Info: Dependency on microasynchttpserver@>= 0.10.0 already satisfied
  Verifying dependencies for microasynchttpserver@0.10.2
      Info: Dependency on picohttpparser@>= 0.10.0 already satisfied
  Verifying dependencies for picohttpparser@0.10.0
  Compiling influx_mysql/src/influx_mysql (from package influx_mysql) using cpp backend
Hint: used config file '/usr/local/nim/config/nim.cfg' [Conf]
Hint: used config file '/usr/local/influx-mysql/influx_mysql/src/nim.cfg' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: influx_mysql [Processing]
Hint: future [Processing]
Hint: macros [Processing]
/usr/local/influx-mysql/influx_mysql/src/influx_mysql.nim(15, 8) Warning: Use the new 'sugar' module instead; future is deprecated [Deprecated]
Hint: strtabs [Processing]
Hint: hashes [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
Hint: os [Processing]
Hint: pathnorm [Processing]
Hint: osseps [Processing]
Hint: posix [Processing]
Hint: times [Processing]
Hint: options [Processing]
Hint: typetraits [Processing]
Hint: asyncdispatch [Processing]
Hint: tables [Processing]
Hint: heapqueue [Processing]
Hint: lists [Processing]
Hint: asyncstreams [Processing]
Hint: asyncfutures [Processing]
Hint: deques [Processing]
Hint: cstrutils [Processing]
Hint: monotimes [Processing]
Hint: nativesockets [Processing]
Hint: net [Processing]
Hint: sets [Processing]
Hint: selectors [Processing]
Hint: epoll [Processing]
Hint: asyncnet [Processing]
Hint: httpcore [Processing]
Hint: asynchttpserver [Processing]
Hint: uri [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: streams [Processing]
Hint: parsejson [Processing]
Hint: base64 [Processing]
Hint: cgi [Processing]
Hint: cookies [Processing]
Hint: qt5_qtsql [Processing]
Hint: immutablecstring [Processing]
/root/.nimble/pkgs/qt5_qtsql-1.1.1/qt5_qtsql/src/immutablecstring.nim(31, 37) Error: undeclared identifier: 'expr'
       Tip: 6 messages have been suppressed, use --verbose to show them.
     Error: Execution failed with exit code 1
        ... Command: "/usr/local/nim/bin/nim" cpp --noNimblePath -d:NimblePkgVersion=1.0.0 --path:"/root/.nimble/pkgs/qt5_qtsql-1.1.1" --path:"/root/.nimble/pkgs/microasynchttpserver-0.10.2" --path:"/root/.nimble/pkgs/picohttpparser-0.10.0" "--out:bin/influx_mysql"  "influx_mysql/src/influx_mysql"

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

1 participant