hylo icon indicating copy to clipboard operation
hylo copied to clipboard

Undefined symbols for architecture arm64

Open gfreezy opened this issue 2 years ago • 1 comments

./valc fac.val

Undefined symbols for architecture arm64:
  "_P3IntO5infix3u2a21_a", referenced from:
      l_F9factorial21_a in main.o
  "_P3IntO5infix3u2d21_a", referenced from:
      l_F9factorial21_a in main.o
  "_P3IntO5infix3u3c21_a", referenced from:
      l_F9factorial21_a in main.o
ld: symbol(s) not found for architecture arm64

gfreezy avatar Sep 26 '22 12:09 gfreezy

Thanks for reporting this bug.

It is caused by the standard library not being emitted along with the main file. This issue is currently blocked by an overhaul of the definite initialization analysis.

kyouko-taiga avatar Sep 26 '22 13:09 kyouko-taiga

Hello,

Any progress on this? I'd love to try out Val on my M1.

In addition, trying to compile the Hello World from the language tutorial gives the error:

error: Hello.val:2:3: undefined name 'SourceRepresentable<Name>(value: print, range: Optional(Compiler.SourceRange(source: SourceFile(Hello.val -- file:///Users/tobias/Code/hello/, lowerBound: Swift.String.Index(_rawBits: 1442049), upperBound: Swift.String.Index(_rawBits: 1769729))))' in this scope

This is mentioned extremely briefly at the top of #39. Should I open a separate issue?

spinicist avatar Oct 25 '22 10:10 spinicist

Issue has been fixed.

kyouko-taiga avatar Jun 10 '23 15:06 kyouko-taiga