Created
February 8, 2023 02:17
-
-
Save sgraham/46502aab2d6ffc095071798f93ceb8fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(pique) c:\src\pique\tests\end_to_end_tests>python examples_test.py ExamplesCompilerTest.test_hello_world | |
Running: c:\src\pique\Scripts\python.exe c:\src\pique\src\compiler.py --source c:\src\pique\examples --artifacts C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk --verbose hello_world -- -g -O0 | |
Loading module: 'hello_world' | |
Loading module: 'prelude' | |
Loading module: 'comparison' | |
Loading module: 'control' | |
Loading module: 'lists' | |
Loading module: 'types' | |
Loading module: 'destructuring' | |
Loading module: 'io' | |
Loading module: 'strings' | |
Loading module: 'functional' | |
Loading module: 'math' | |
Loading module: 'sort' | |
Loading module: 'templates' | |
Loading module: 'sys' | |
Compiling module: 'hello_world' | |
Compiling module: 'prelude' | |
Compiling module: 'comparison' | |
Compiling module: 'control' | |
Compiling module: 'lists' | |
Compiling module: 'types' | |
Compiling module: 'destructuring' | |
Compiling module: 'io' | |
Compiling module: 'strings' | |
Compiling module: 'functional' | |
Compiling module: 'math' | |
Compiling module: 'sort' | |
Compiling module: 'templates' | |
Compiling module: 'sys' | |
Running: C:\Program Files\LLVM\bin/clang -o ELIDED/hello_world.out c:\src\pique\runtime\build\runtime.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\hello_world_main.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\prelude.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\comparison.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\control.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\lists.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\types.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\destructuring.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\io.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\strings.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\functional.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\math.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\sort.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\templates.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\sys.ll -g -O0 | |
control-00f6c6.o : fatal error LNK1227: conflicting weak extern definition for 'cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967'. New default '.weak.cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967.default.control. function.for' conflicts with old default '.weak.cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967.default.comparison. function.not' in comparison-d30511.o | |
clang: error: linker command failed with exit code 1227 (use -v to see invocation) | |
Load return code: 1227 | |
Load output: | |
Loading module: 'hello_world' | |
Loading module: 'prelude' | |
Loading module: 'comparison' | |
Loading module: 'control' | |
Loading module: 'lists' | |
Loading module: 'types' | |
Loading module: 'destructuring' | |
Loading module: 'io' | |
Loading module: 'strings' | |
Loading module: 'functional' | |
Loading module: 'math' | |
Loading module: 'sort' | |
Loading module: 'templates' | |
Loading module: 'sys' | |
Compiling module: 'hello_world' | |
Compiling module: 'prelude' | |
Compiling module: 'comparison' | |
Compiling module: 'control' | |
Compiling module: 'lists' | |
Compiling module: 'types' | |
Compiling module: 'destructuring' | |
Compiling module: 'io' | |
Compiling module: 'strings' | |
Compiling module: 'functional' | |
Compiling module: 'math' | |
Compiling module: 'sort' | |
Compiling module: 'templates' | |
Compiling module: 'sys' | |
Running: C:\Program Files\LLVM\bin/clang -o ELIDED/hello_world.out c:\src\pique\runtime\build\runtime.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\hello_world_main.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\prelude.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\comparison.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\control.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\lists.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\types.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\destructuring.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\io.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\strings.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\functional.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\math.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\sort.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\templates.ll C:\Users\sgraham\AppData\Local\Temp\tmpp3k864dk\sys.ll -g -O0 | |
control-00f6c6.o : fatal error LNK1227: conflicting weak extern definition for 'cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967'. New default '.weak.cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967.default.control. function.for' conflicts with old default '.weak.cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967.default.comparison. function.not' in comparison-d30511.o | |
clang: error: linker command failed with exit code 1227 (use -v to see invocation) | |
__main__.ExamplesCompilerTest.test_hello_world took 11.526 seconds | |
F | |
====================================================================== | |
FAIL: test_hello_world (__main__.ExamplesCompilerTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "c:\src\pique\tests\end_to_end_tests\examples_test.py", line 24, in test_hello_world | |
self.success_test( | |
File "c:\src\pique\tests\end_to_end_tests\end_to_end_test_helpers.py", line 93, in success_test | |
self.verify_load(expected, load_returncode, elided_load_output) | |
File "c:\src\pique\tests\end_to_end_tests\end_to_end_test_helpers.py", line 288, in verify_load | |
self.assertEqual(expected.load_returncode, returncode) | |
AssertionError: 0 != 1227 | |
---------------------------------------------------------------------- | |
Ran 1 test in 11.534s | |
FAILED (failures=1) | |
(pique) c:\src\pique\tests\end_to_end_tests>python examples_test.py ExamplesInterpreterTest.test_hello_world | |
Running: c:\src\pique\Scripts\python.exe c:\src\pique\src\interpreter.py --source c:\src\pique\examples --artifacts C:\Users\sgraham\AppData\Local\Temp\tmp61re9a4d --verbose hello_world | |
Loading module: 'hello_world' | |
Loading module: 'prelude' | |
Loading module: 'comparison' | |
Loading module: 'control' | |
Loading module: 'lists' | |
Loading module: 'types' | |
Loading module: 'destructuring' | |
Loading module: 'io' | |
Loading module: 'strings' | |
Loading module: 'functional' | |
Loading module: 'math' | |
Loading module: 'sort' | |
Loading module: 'templates' | |
Loading module: 'sys' | |
hello world! | |
Return code: 0 | |
__main__.ExamplesInterpreterTest.test_hello_world took 1.165 seconds | |
F | |
====================================================================== | |
FAIL: test_hello_world (__main__.ExamplesInterpreterTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "c:\src\pique\tests\end_to_end_tests\examples_test.py", line 24, in test_hello_world | |
self.success_test( | |
File "c:\src\pique\tests\end_to_end_tests\end_to_end_test_helpers.py", line 100, in success_test | |
self.verify_execute(expected, execute_returncode, elided_execute_output) | |
File "c:\src\pique\tests\end_to_end_tests\end_to_end_test_helpers.py", line 212, in verify_execute | |
self.assertInWithDelta(expected.execute_output, elided_output) | |
File "c:\src\pique\tests\end_to_end_tests\end_to_end_test_helpers.py", line 140, in assertInWithDelta | |
test_helpers.assert_in_with_delta(self, expected, text) | |
File "c:\src\pique\src\test_helpers.py", line 48, in assert_in_with_delta | |
test_case.assertEqual(expected, found) | |
AssertionError: 'hello world!\n' != 'hello world!\r' | |
- hello world! | |
? ^ | |
? ^ | |
---------------------------------------------------------------------- | |
Ran 1 test in 1.169s | |
FAILED (failures=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment