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

compile error on latest devel with orc and ssl #14647

Closed
gogolxdong opened this issue Jun 13, 2020 · 5 comments
Closed

compile error on latest devel with orc and ssl #14647

gogolxdong opened this issue Jun 13, 2020 · 5 comments

Comments

@gogolxdong
Copy link
Contributor

$ nim -v
Nim Compiler Version 1.3.5 [Linux: amd64]
Compiled at 2020-06-13
Copyright (c) 2006-2020 by Andreas Rumpf

git hash: 5a26c37
active boot switches: -d:release

In file included from /root/.cache/nim/server_r/stdlib_openssl.nim.c:11:0:
/root/.cache/nim/server_r/stdlib_openssl.nim.c: In function ‘stdlib_opensslInit000’:
/root/.cache/nim/server_r/stdlib_openssl.nim.c:1008:20: error: ‘nimErr_’ undeclared (first use in this function); did you mean ‘nimfrs_’?
  if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
                    ^
/root/Nim/lib/nimbase.h:521:44: note: in definition of macro ‘NIM_UNLIKELY’
 #  define NIM_UNLIKELY(x) __builtin_expect(x, 0)
                                            ^
/root/.cache/nim/server_r/stdlib_openssl.nim.c:1008:20: note: each undeclared identifier is reported only once for each function it appears in
  if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
                    ^
/root/Nim/lib/nimbase.h:521:44: note: in definition of macro ‘NIM_UNLIKELY’
 #  define NIM_UNLIKELY(x) __builtin_expect(x, 0)
                                            ^
/root/.cache/nim/server_r/stdlib_openssl.nim.c:1013:2: error: label ‘BeforeRet_’ used but not defined
  if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
  ^~
Error: execution of an external compiler program 'gcc -c  -w -pthread   -I/root/Nim/lib -I/root/cmp-backend -o /root/.cache/nim/server_r/stdlib_openssl.nim.c.o /root/.cache/nim/server_r/stdlib_openssl.nim.c' failed with exit code: 1

config.nims
--define:ssl
--threads:on
--gc:orc
--define:release
--warnings:off
--hints:off
@gogolxdong gogolxdong changed the title Think about the title, twice compile error Jun 13, 2020
@gogolxdong gogolxdong changed the title compile error compile error on latest devel with orc and ssl Jun 13, 2020
@ghost
Copy link

ghost commented Jun 13, 2020

FYI: don't put -d:release in the config, it won't have full effect, you should use it from the command line, see #14272

@ghost
Copy link

ghost commented Jun 13, 2020

And what's your GCC version?

@gogolxdong
Copy link
Contributor Author

gogolxdong commented Jun 13, 2020

gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
The same problem after removing -d:release

@ghost
Copy link

ghost commented Jun 13, 2020

Can reproduce, probably related or same issue as in #14240.

@Clyybber
Copy link
Contributor

#14240 is fixed, but this remains an issue

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

No branches or pull requests

3 participants