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

cant make?? #1070

Closed
wangcegithub opened this issue Jul 10, 2019 · 3 comments
Closed

cant make?? #1070

wangcegithub opened this issue Jul 10, 2019 · 3 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@wangcegithub
Copy link

V version:
OS:
v.c:374:3: error: expected specifier-qualifier-list before ‘_Atomic’
_Atomic int fn_cnt;
^
v.c: In function ‘Fn_str’:
v.c:14381:21: error: unknown field ‘fn_cnt’ specified in initializer
.fn_cnt = 0,
^
v.c:14382:21: error: unknown field ‘obfuscate’ specified in initializer
.obfuscate = 0};
^
v.c: In function ‘new_table’:
v.c:14400:3: error: unknown field ‘obfuscate’ specified in initializer
Table *t = ALLOC_INIT(Table, {
^
v.c:14400:3: error: unknown field ‘fn_cnt’ specified in initializer
v.c: In function ‘Table_cgen_name’:
v.c:15232:12: error: ‘Table’ has no member named ‘obfuscate’
if (table->obfuscate && string_ne(f->name, tos2("main")) &&
^
v.c:15252:12: error: ‘Table’ has no member named ‘fn_cnt’
table->fn_cnt++;
^
v.c:15253:24: error: ‘Table’ has no member named ‘fn_cnt’
int tmp67 = table->fn_cnt;
^
v.c:15257:18: error: ‘Table’ has no member named ‘fn_cnt’
idx = table->fn_cnt;
^

What did you do?

What did you expect to see?

What did you see instead?

@wangcegithub wangcegithub added the Bug This tag is applied to issues which reports bugs. label Jul 10, 2019
@medvednikov
Copy link
Member

Hi

You didn't provide your OS.

@wangcegithub
Copy link
Author

Hi

You didn't provide your OS.

[root@log360-206 /]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

[root@log360-206 /]# cat /proc/version
Linux version 3.10.0-957.10.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Mon Mar 18 15:06:45 UTC 2019

@medvednikov
Copy link
Member

You have a 7 year old version of GCC. Please update.

V will support older C compilers soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants