Experimental Physics and Industrial Control System
|
No, not really.
This may ruin you .bat files.
A better solution is to set up a proper .gitattributes file,
like this:
https://github.com/epics-base/epics-base/pull/165
On 5/3/21 10:20 AM, Ben Franksen via Tech-talk wrote:
I remember I had a problem once with git doing automatic LF->CRLF on
Windows. The solution was to
git config --global core.autocrlf input
You may or may not want to leave out the --global flag here.
Cheers
Ben
Am 01.05.21 um 02:29 schrieb Freddie Akeroyd - STFC UKRI via Tech-talk:
Hi Greg,
I tried it just now and it all built and ran OK with no changes. My dbd file also looks to be with the correct line endings
/mnt/c/devel/wsl-epics-base$ file dbd/softIoc.dbd
dbd/softIoc.dbd: ASCII text
So I think you are right that the issue is line endings. If you run file on the top epics base README what does it give? For me that is also:
/mnt/c/devel/wsl-epics-base$ file README
README: ASCII text
If yours mentions CRLF etc. did you do the checkout using git from WSL or with windows git? Is a git config file getting picked up from somewhere that sets the line endings incorrectly?
I think the dbd files get generated from a .pod file using perl. If the above README is the correct line endings, then I would assume the .pod files are too. Another possibility is then that the wrong perl program is being picked up - Windows strawberry perl would add CRLF. If you type which perl in WSL does it look right?
Regards,
Freddie
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Leblanc, Gregory via Tech-talk
Sent: 30 April 2021 22:21
To: tech-talk at aps.anl.gov
Subject: EPICS 7 base on WSL2
Anybody tried running EPICS under WSL? I was just playing around, trying to decide if heading down the EPICS path makes sense for our lab.
I followed the docs at: https://docs.epics-controls.org/projects/how-tos/en/latest/getting-started/installation.html
I had to edit the EpicsHostArch script to change the line endings from CRLF to LF (or was it vice-versa?). After that, the build went well. I tried to run softIoc to do a test, and got the following:
$ softIoc
Error: Invalid character 'c'
at or before "c" in file "/home/leblanc/EPICS/epics-base/bin/linux-x86_64/../../dbd/softIoc.dbd" line 1
Error: Invalid character 'a'
Error: Invalid character 'l'
Error: Invalid character 'c'
Error: Invalid character 'o'
Error: Invalid character 'u'
Error: Invalid character 't'
Error: Invalid character 'D'
Error: Invalid character 'O'
Error: Invalid character 'P'
Error: Invalid character 'T'
Error: syntax error
Error: Failed to load DBD file: /home/leblanc/EPICS/epics-base/bin/linux-x86_64/../../dbd/softIoc.dbd
At which point I decided that was enough for a Friday night. I wonder if it might also be line endings, since file reports:
$ file EPICS/epics-base/dbd/softIoc.dbd
EPICS/epics-base/dbd/softIoc.dbd: ASCII text, with CRLF, LF line terminators
Am I out to lunch, or is it worth a try next week?
Greg
--
Gregory Leblanc
Accelerator Engineer
Edwards Accelerator Lab - Ohio University
123 University Terrace
Athens, OH 45701
leblanc at ohio.edu<mailto:leblanc at ohio.edu>
M: (401) 52-OUAL1 or (401) 526-8251
This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. Opinions, conclusions or other information in this message and attachments that are not related directly to UKRI business are solely those of the author and do not represent the views of UKRI.
- References:
- EPICS 7 base on WSL2 Leblanc, Gregory via Tech-talk
- RE: EPICS 7 base on WSL2 Freddie Akeroyd - STFC UKRI via Tech-talk
- Re: EPICS 7 base on WSL2 Ben Franksen via Tech-talk
- Navigate by Date:
- Prev:
Re: EPICS 7 base on WSL2 Ben Franksen via Tech-talk
- Next:
Phoebus Data Browser CSV Export from Archiver, Extra Timestamp Issue Manoussakis, Adamandios via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EPICS 7 base on WSL2 Ben Franksen via Tech-talk
- Next:
RE: EPICS 7 base on WSL2 Leblanc, Gregory via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
|
ANJ, 05 May 2021 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|