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 failure with 4.3.0-rc.1+dd0d6a6 #11086

Closed
jobf opened this issue Apr 5, 2023 · 8 comments
Closed

Compiler failure with 4.3.0-rc.1+dd0d6a6 #11086

jobf opened this issue Apr 5, 2023 · 8 comments

Comments

@jobf
Copy link

jobf commented Apr 5, 2023

I was trying the latest nightly (as of 4th April) and see the following error.

Haxe: 4.3.0-rc.1+dd0d6a6; OS type: unix;
File "src/compiler/compiler.ml", line 141, characters 179-186
Called from file "src/compiler/compiler.ml", line 141, characters 172-186
Called from file "src/compiler/compiler.ml", line 294, characters 11-47
Called from file "src/compiler/compiler.ml", line 334, characters 1-5
Called from file "src/compiler/compiler.ml", line 418, characters 2-157
Called from file "src/compiler/compiler.ml", line 395, characters 2-9
Called from file "src/compiler/compiler.ml", line 614, characters 5-43
Called from file "src/compiler/compiler.ml", line 624, characters 13-22
Called from file "src/compiler/server.ml", line 973, characters 1-39
Called from file "src/compiler/haxe.ml", line 53, characters 0-56
File "src/core/globals.ml", line 156, characters 1-7: Assertion failed

@RblSb
Copy link
Member

RblSb commented Apr 5, 2023

Can you provide minimized code example?

@jobf
Copy link
Author

jobf commented Apr 5, 2023

Main.hx

class Main{
	public static function main(){
		trace("4.3.0-rc.1+dd0d6a6");
	}
}

build.hxml

-cp .
--main Main
-hl bin/hl/out.hl

@jobf jobf closed this as completed Apr 5, 2023
@jobf jobf reopened this Apr 5, 2023
@Apprentice-Alchemist
Copy link
Contributor

It dies here, so it appears you are missing (or the compiler cannot access) the hl_version file in std/hl.

if not (Common.defined com Define.HlVer) then Define.define_value com.defines Define.HlVer (try Std.input_file (Common.find_file com "hl/hl_version") with Not_found -> die "" __LOC__);

@jobf
Copy link
Author

jobf commented Apr 5, 2023

Thank you, it's fixed by specifying HAXE_STD_PATH

export HAXE_STD_PATH=/path/to/nightly/std

Closing for real now.

@jobf jobf closed this as completed Apr 5, 2023
@RblSb
Copy link
Member

RblSb commented Apr 5, 2023

I think we should report useful error here instead of playing dead, can be reopened?

@jobf
Copy link
Author

jobf commented Apr 5, 2023

OK that's a good idea.

@jobf jobf reopened this Apr 5, 2023
@Simn
Copy link
Member

Simn commented Apr 11, 2023

Could someone ghostwrite the error message for me?

@Aurel300
Copy link
Member

Aurel300 commented Apr 11, 2023

The file hl_version could not be found in the standard library directory (insert path here). This could happen if you are using an older version of the standard library with a newer version of the compiler. Please make sure HAXE_STD_PATH is set to the standard library corresponding to the used compiler version.

?

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

5 participants