Author Topic: #CPCtelera 1.4.2. release  (Read 38955 times)

0 Members and 2 Guests are viewing this topic.

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 546
  • Country: fr
  • Liked: 456
  • Likes Given: 883
Re: #CPCtelera 1.4.2. release
« Reply #375 on: 14:27, 15 August 19 »
Hi asertus. Where did you download 1.5? From git? From tar.gz?

CPCtelera 1.5 is still the development branch

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 248
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 115
  • Likes Given: 261
Re: #CPCtelera 1.4.2. release
« Reply #376 on: 17:39, 15 August 19 »
Problem with development branch.


Hi, these holidays I have decided to try out the new release, 1.5, but when I try to run setup.sh, I get these errors:

./setup.sh: línea 19: $'\r': no se encontró la orden
./setup.sh: línea 27: $'\r': no se encontró la orden
./setup.sh: línea 33: $'\r': no se encontró la orden
: No such file or directory/User/cpctelera
./setup.sh: línea 36: $'\r': no se encontró la orden
./setup.sh: línea 39: error sintáctico cerca del elemento inesperado `$'{\r''
'/setup.sh: línea 39: `function usage {

I can reproduce the problem with latest cygwin like this:

git clone https://github.com/lronaldo/cpctelera
cd cpctelera
./setup

Will offer a solution.
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline ronaldo

  • Dev
  • 6128 Plus
  • *****
  • Posts: 610
  • Country: es
    • Fremos Blog
  • Liked: 846
  • Likes Given: 797
Re: #CPCtelera 1.4.2. release
« Reply #377 on: 18:07, 15 August 19 »
Problem with development branch.

Hi, these holidays I have decided to try out the new release, 1.5, but when I try to run setup.sh, I get these errors:

./setup.sh: línea 19: $'\r': no se encontró la orden
./setup.sh: línea 27: $'\r': no se encontró la orden
./setup.sh: línea 33: $'\r': no se encontró la orden
: No such file or directory/User/cpctelera
./setup.sh: línea 36: $'\r': no se encontró la orden
./setup.sh: línea 39: error sintáctico cerca del elemento inesperado `$'{\r''
'/setup.sh: línea 39: `function usage {

It is in cygwin, and previous version 1.4.2 works perfectly fine. Does anyone else have this problem?

Thanks
This is not a CPCtelera problem, but a problem with the tools installed in your system. Many users have experienced same before and has already been addressed many times.

The problem is that cygwin includes tools in your Windows PATH, and you are using Windows GIT instead of cygwin's. Windows GIT by default download files and applies Windows CRLF line ending. This ruins all bash scripts included in CPCtelera: when bash tries to execute any one of them, it fails due to line ending.

The problem is as easy to solve as installing GIT under Cygwin and using Cygwin's instead of Windows'. You could also change line ending policy in your Windows GIT installation, but I usually prefer not to do that.

The only thing CPCtelera can do about this is adverting you in some sense, but CPCtelera cannot prevent you from using different, not properly configured, tools in your system.
« Last Edit: 18:08, 15 August 19 by ronaldo »

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 248
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 115
  • Likes Given: 261
Re: #CPCtelera 1.4.2. release
« Reply #378 on: 20:08, 15 August 19 »
The problem is that cygwin includes tools in your Windows PATH, and you are using Windows GIT instead of cygwin's. Windows GIT by default download files and applies Windows CRLF line ending. This ruins all bash scripts included in CPCtelera: when bash tries to execute any one of them, it fails due to line ending.

This seems pretty logical yet do @asertus, @teopl or other confirm that they have another, Windows-level git?

The reason I was able to reproduce the issue is that the machine I test with does have "git bash" which is mingw64-based, and configured to checkout wirh CRLF.

The problem is as easy to solve as installing GIT under Cygwin and using Cygwin's instead of Windows'. You could also change line ending policy in your Windows GIT installation, but I usually prefer not to do that.

The only thing CPCtelera can do about this is adverting you in some sense, but CPCtelera cannot prevent you from using different, not properly configured, tools in your system.

It can also, as lronaldo and I are discussing on https://github.com/lronaldo/cpctelera/pull/95 include a .gitattributes file instruting it to checkout text files with LF not CRLF.
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline teopl

  • CPC664
  • ***
  • Posts: 78
  • Country: cs
  • Liked: 36
  • Likes Given: 55
Re: #CPCtelera 1.4.2. release
« Reply #379 on: 23:59, 15 August 19 »
I can confirm that cloning cpctelera development branch from cygwin console with cygwin git works well.

You can confirm cygwin git location like this:
Code: [Select]
$ which git
/usr/bin/git

I thought that my git client messed up new lines but it's something which you just don' t expect! If you clone a repo - it should be the same!

Anyway, I used windows client sourcetree which is easier for me to use then the console.

I suggest to have this information in the cpctelera installation since we are not the only ones which had/will have this issue.

Edit: Also I guess some of us like to work in Visual Studio, even when editing .sh files :) and that will change newlines to windows also...

So, having some info about how to make this working well would be good. Personally, I didn't have the patience and I just googled and did some setup to "just make it work"

So I edited .gitattributes like this:
Code: [Select]
$ cat .gitattributes
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just comment the entries below and
# uncomment the group further below
###############################################################################

*.sln        text eol=crlf
*.csproj     text eol=crlf
*.vbproj     text eol=crlf
*.vcxproj    text eol=crlf
*.vcproj     text eol=crlf
*.dbproj     text eol=crlf
*.fsproj     text eol=crlf
*.lsproj     text eol=crlf
*.wixproj    text eol=crlf
*.modelproj  text eol=crlf
*.sqlproj    text eol=crlf
*.wmaproj    text eol=crlf

*.xproj      text eol=crlf
*.props      text eol=crlf
*.filters    text eol=crlf
*.vcxitems   text eol=crlf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text eol=lf
*.h text eol=lf
*.s text eol=lf

# Denote all files that are truly binary and should not be modified.
*.exe binary
*.sh binary

But this made .sh files binary so the git client didn't see the changes...
« Last Edit: 00:16, 16 August 19 by teopl »

Offline Neurox66

  • CPC464
  • **
  • Posts: 4
  • Country: it
    • My WebSite
  • Liked: 1
  • Likes Given: 3
Re: #CPCtelera 1.4.2. release
« Reply #380 on: 09:59, 16 August 19 »

Hello,
It's a week that I try to install CPCTelera 1.4.2 on my iMac but I can't.
I've a iMac 27 "Late 2015 with i7 4GHz and 32GB Ram, macOS Mojave 10.14.6.
I've followed the instructions on the site and tried to install both the stable and the daily version.
Unfortunately the result is the same. With a clean installation stops at 62% while if I try to reinstall after the first stop it stops at 33%.




I tried to read the log file but apart from many warnings I can't understand what is the problem.
Any suggestions?
Obviously change the computer it is not an acceptable suggestion  :D :D :D


Regards,
Paolo
« Last Edit: 15:55, 16 August 19 by Neurox66 »
CPC 464+ with C4CPC and Gotek HxC USB Drive - 
CPC 6128+ with AmsDap, SymbiFace III -
CPC 6128 with M4

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 248
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 115
  • Likes Given: 261
Re: #CPCtelera 1.4.2. release
« Reply #381 on: 10:21, 16 August 19 »
Hello,
It's a week that I try to install CPCTelera 1.4.2 on my iMac but I can't.
I've a iMac 27 "Late 2015 with i7 4GHz and 32GB Ram, macOS Mojave 10.14.6.
I've followed the instructions on the site and tried to install both the stable and the daily version.
Unfortunately the result is the same. With a clean installation stops at 62% while if I try to reinstall after the first stop it stops at 33%.
I tried to read the log file but apart from many warnings I can't understand what is the problem.
Any suggestions?
Obviously change the computer it is not an acceptable suggestion  :D :D :D


Regards,
Paolo

Can you share the log file, e.g. on a pastebin (if short enough) or https://framadrop.org/ ?
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline Neurox66

  • CPC464
  • **
  • Posts: 4
  • Country: it
    • My WebSite
  • Liked: 1
  • Likes Given: 3
Re: #CPCtelera 1.4.2. release
« Reply #382 on: 11:25, 16 August 19 »
Here the file log of clean installation of 1.4.2:

https://framadrop.org/r/4uRSjMzVaZ#0jfiMEcre0dpbRjpkr3/kEHU6lg6oN+zLzUhBwBVOkM=


Here the file log of re-installation of latest version from github:
https://framadrop.org/r/5WxVLIhQJ9#AQyQrX0c6wId00Zx3Pl/11Y/eJWTzeHGDVqn/ZAxSjs=


Paolo
CPC 464+ with C4CPC and Gotek HxC USB Drive - 
CPC 6128+ with AmsDap, SymbiFace III -
CPC 6128 with M4

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 248
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 115
  • Likes Given: 261
Re: #CPCtelera 1.4.2. release
« Reply #383 on: 14:13, 16 August 19 »
Here the file log of clean installation of 1.4.2:

https://framadrop.org/r/4uRSjMzVaZ#0jfiMEcre0dpbRjpkr3/kEHU6lg6oN+zLzUhBwBVOkM=


Here the file log of re-installation of latest version from github:
https://framadrop.org/r/5WxVLIhQJ9#AQyQrX0c6wId00Zx3Pl/11Y/eJWTzeHGDVqn/ZAxSjs=


Paolo

Thanks Paolo for these logs. I see two strictly identical files.

This is strange, I see warnings but no error.

Any idea @lronaldo ?
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.

Offline cpcitor

  • The user previously known as FindYWay
  • CPC6128
  • ****
  • Posts: 248
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 115
  • Likes Given: 261
Re: #CPCtelera 1.4.2. release
« Reply #384 on: 15:21, 16 August 19 »
Unfortunately the result is the same. With a clean installation stops at 62% while if I try to reinstall after the first stop it stops at 33%.

These two different options should then produce two different log files, right?

I tried to read the log file but apart from many warnings I can't understand what is the problem.

I have compared your log with my log on a Linux machine. Compilation of cpctelera/tools/sdcc-3.6.8-r9946/src/src/SDCCgen.c works on my machine and things go on.

It looks like on your machine, the gcc compiler just returned a non-zero code for an unknown reason. Very strange. Can you try a different compiler?

Had a CPC since 1985, currently software dev professional, including embedded systems.

I made the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC.