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

Compiler error caused by "import coroutines" #21810

Open
eugenioullauri opened this issue Jul 6, 2024 · 0 comments
Open

Compiler error caused by "import coroutines" #21810

eugenioullauri opened this issue Jul 6, 2024 · 0 comments
Labels
Build V build error on any OS/CPU architecture. Coroutines Problems related to V's coroutine implementation Photon wrapper Photon coroutine library wrapper

Comments

@eugenioullauri
Copy link

eugenioullauri commented Jul 6, 2024

V doctor:

V full version: V 0.4.6 d6d0f9b.4475759
OS: linux, Devuan GNU/Linux 5 (daedalus)
Processor: 12 cpus, 64bit, little endian, AMD Ryzen 5 3600 6-Core Processor

getwd: /home/coder/upwork/LonelyCatGames/energyGen
vexe: /home/coder/apps/ProgrammingLanguages/v/v
vexe mtime: 2024-07-06 02:47:14

vroot: OK, value: /home/coder/apps/ProgrammingLanguages/v
VMODULES: OK, value: /home/coder/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.39.2
Git vroot status: weekly.2024.26-51-g4475759c
.git/config present: true

CC version: cc (Debian 12.2.0-14) 12.2.0
thirdparty/tcc: N/A

What did you do?
v -g -o vdbg cmd/v && vdbg main.v

module main

import time
import coroutines

fn ol(str string){
	println(str)
}

fn main() {
	ol('Hello, World')
	start()
}

fn start(){
	ol("starting")

	for{
		time.sleep(1 * time.second)
		ol("looping")
	}
}


What did you expect to see?

compile

What did you see instead?

main.v:4:8: warning: module 'coroutines' is imported but never used
    2 | 
    3 | import time
    4 | import coroutines
      |        ~~~~~~~~~~
    5 | 
    6 | fn ol(str string){
==================
tcc: error: file '/home/coder/apps/ProgrammingLanguages/v/thirdparty/photon/photonwrapper.so' not found
...
==================
(Use `v -cg` to print the entire error message)

builder error: 
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@felipensp felipensp added Build V build error on any OS/CPU architecture. Coroutines Problems related to V's coroutine implementation Photon wrapper Photon coroutine library wrapper labels Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build V build error on any OS/CPU architecture. Coroutines Problems related to V's coroutine implementation Photon wrapper Photon coroutine library wrapper
Projects
None yet
Development

No branches or pull requests

2 participants