-
Notifications
You must be signed in to change notification settings - Fork 11
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
--defsym=__rtc_localtime=$(shell powershell [int](Get-Date -UFormat +%s)[0]) not accepted #50
Comments
To be sure, I generated a new project with the following settings:


Then it generated according to the following settings:

…and I got the error message:

By removing the @ before the linker command, it looks that the shell process doesn’t want to start:

Does it help you? (me not really ;-) ).
Thanks for your quick help.
Best,
Sebastien
—
—
Zürcher Hochschule der Künste
Zurich University of the Arts
—
Sébastien Schiesser
+41 43 446 55 06
—
Research Associate
Institute for Computer Music and Sound Technology
www.icst.net
—
Studio Manager
Immersive Arts Space
www.immersive-arts.ch
—
Toni-Areal, Pfingstweidstrasse 96
P.O. Box, CH-8031 Zurich
—
www.zhdk.ch
Von: luni64 ***@***.***
Gesendet: Friday, 28 May 2021 16:05
An: luni64/VisualTeensy ***@***.***>
Cc: Schiesser Sébastien ***@***.***>; Author ***@***.***>
Betreff: Re: [luni64/VisualTeensy] --defsym=__rtc_localtime=$(shell powershell [int](Get-Date -UFormat +%s)[0]) not accepted (#50)
This is interesting, I assume you are sure that you didn't accidentally changed the makefile? Can you remove the @ before the linker command in the makefile and recompile so that I can see the actual link command?
[image]<https://user-images.githubusercontent.com/12611497/119995869-5a0e8000-bfce-11eb-9c35-bcec7672a3c1.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#50 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAUZUGDA5GEAR4YEDJIYXGDTP6PI3ANCNFSM45V7T6AA>.
|
Looks like you answered by eMail which seems to have thrown off the attached screenshots. Would it be possible to repost your answer directly in GitHub? I can only guess that something in your configuration is different, I got a few complaints about weird things happening with the scripting recently. I assume that something in vsCode, Powershell or Windows changed but I wasn't able to reproduce it so far. I'm highly interested in fixing this but I need to be able to reproduce the effect first. Some questions which might help:
|
Updated my previous comment in github to see pictures... now they appear as links (!) My setup.json look pretty simple:
My project has a Makefile:
|
That all looks OK. I saw that you have the shared libraries folder inside the Arduino folder which is strange (usually it is at ...Documents/arduino/libraries) but this is certainly not the problem. To isolate the problematic call to
It also looks like your powershell is quite old. In your error message you get: If I provoke a linker error I get:
Maybe updating to a current version helps |
Thanks a lot that helped. The issue might be related to the setting of the decimal char. Can you type the following in a powershell terminal (e.g. the standard terminal in vscode)
On a PC with e,g, German language setting this gives e.g. 1622464559,36875 (decimal symbol comma) on a PC with englisch settings I get 1622464559.36875 (dot). However, the cast to int doesn't work with the comma.
command into the terminal, I get this error:
On a PC with a dot as decimal symbol I get the correctly casted result. Can you check if
outputs the date with dot or comma as decimal separator on your PC? BTW: Sorry to bother you with debugging my code.... |
But my settings on this topic are customized and therefore probably leading to some mistake:
...don't know if that helps... BTW: no problem with helping debugging your code. Thank you to allow me working with teensy in a real IDE ;-) |
Actually it returns a string and it looks like the standard formatting for this string changed between PS versions. Anyway, the following should return an integer (number of seconds since 1970) regardless of the PS version and/or language settings. I tested it with swiss settings and all available combinations of decimal and grouping symbols. [int][double]::Parse((Get-Date -UFormat %s)) I'll try to compile a new vsTeensy version for testing later today. |
Let me know if this works for you |
fixed in v1.2.0 |
When using the prebuilt visualTeensy 1.0.0.0 example (Win10, 1909), I get the following error message:
[LD] .vsteensy/build/visualTeensyTest.elf c:/progra~2/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe:--defsym:1: syntax error collect2.exe: error: ld returned 1 exit status make: *** [makefile:236: .vsteensy/build/visualTeensyTest.elf] Error 1 The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command & 'C:/Program Files (x86)/VisualTeensy/make.exe' all -j -Otarget" terminated with exit code: 1.
It looks like ld.exe doesn't like the syntax of the --defsym flag. When replacing the whole $(...) part with 1 (result given by the powershell), it doesn't complain at all.
Is that a Windows or a visualTeensy issue? Thanks!
The text was updated successfully, but these errors were encountered: