Cygwin produces .la files with CRLF

DDoSolitary's Avatar

DDoSolitary

19 Feb, 2019 09:34 AM

Recently, my builds, which use Cygwin to compile some projects, start to fail because of a strange error:

xxx.la: line xx: $'\r': command not found
For example: https://ci.appveyor.com/project/DDoSolitary/shadowsocks-libev-win/b...

Then I noticed that Cygwin has just released v3.0.0 so I assumed it's a bug in Cygwin and tried to do some debugging. However, I found out that my build script (with some modifications to remove deploy-related logic) can be run on my local machine without errors. And what's even more strange is that if I RDP into the build server and run the build script,compilation succeeds as well.

Could you please help to look into this? Thanks.

  1. Support Staff 1 Posted by Owen McDonnell on 19 Feb, 2019 06:39 PM

    Owen McDonnell's Avatar

    It looks like all your previous "successful" builds exit at this part of the build script.
    Is that also the case when you RDP and run locally?

  2. 2 Posted by DDoSolitary on 20 Feb, 2019 03:14 PM

    DDoSolitary's Avatar

    No, the whole compilation is run when I was testing. It's easy to distinguish because of the massive output of make. Actually that piece of code is used avoid unnecessary compilation when sources and the build environment hasn't changed. There are quite some builds that didn't exit there (for example https://ci.appveyor.com/project/DDoSolitary/shadowsocks-libev-win/b...), and they are quite conspicuous in the history page because they take much more time to complete.

  3. Support Staff 3 Posted by Owen McDonnell on 21 Feb, 2019 01:52 AM

    Owen McDonnell's Avatar

    Can you simply try a build without downloading new cygwin and instead using the one that is already installed on the build image and let us know if that builds successfully,

  4. 4 Posted by DDoSolitary on 21 Feb, 2019 06:16 AM

    DDoSolitary's Avatar

    Seems that it's fixed with the release of Cygwin 3.0.1

    https://cygwin.com/ml/cygwin/2019-02/msg00324.html

    - Fix an accidentally introduced O_TEXT handling of pipes inherited from native Windows processes. Addresses: https://cygwin.com/ml/cygwin/2019-02/msg00246.html

  5. DDoSolitary closed this discussion on 21 Feb, 2019 06:18 AM.

  6. Owen McDonnell re-opened this discussion on 21 Feb, 2019 07:25 PM

  7. Support Staff 5 Posted by Owen McDonnell on 21 Feb, 2019 07:25 PM

    Owen McDonnell's Avatar

    Thanks for the update!

  8. Owen McDonnell closed this discussion on 21 Feb, 2019 07:25 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac