News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_EgoTrip

Help with Cygwin/CPCTelera

Started by EgoTrip, 17:06, 25 September 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EgoTrip

I'm struggling to get this thing installed on Windows 8.1. It either takes about 18 hours to download and install, the install fails, or both.

Is there or can someone create a specific package containing just what I need for CPCTelera?

TFM

Excuse me please to say that. But imho best idea is to go 'back' to Windows 7.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Arnaud

I have got some issues to install CPCTelera with Windows 10.
To successfully install, i had to use the x32 version of Cygwin (not the x64) and run Cygwin as Administrator.

ronaldo

#3
@EgoTrip: If your installation of Cygwin is taking too much time, the general solution is to pick up a different mirror during installation. Some mirrors are too slow and others are giving problem with some packages. I have had similar issues installing Cygwin lately. They tend to be finally solved with a little bit of patience and selecting an adequate mirror. Then only problem is not knowing which mirror is adequate "a priori".

@Arnaud: I have seen other people having issues with Windows 10. These are the main issues I have seen:

       
  • Leaving out some of the required cygwin packages uninstalled, mainly gcc / make or other GNU utilities. These is a big problem, because Windows 10 has some of them and then CPCtelera seems to fail installing, but the problem is it would be using Windows binaries instead of Linux. Of course, Windows binaries have no clue of Linux paths and other things CPCtelera is asking them to do.
  • Some permission problems. I have no idea why does it happen, but some people requires administration privileges running Cygwin for CPCtelera to install properly. However, most of my students have installed CPCtelera under cygwin64 on Windows 10 without any privilege problem.
  • Sometimes Windows asks for some aditional software to be installed (like USB drivers or similar). These things seem to be required, so failing to install them lead to problems. On the other hand, I'm not sure, but I have the impression that installing these things requires reboot previous to continuing installation of Cygwin.
I personally recommend using Cygwin64 always on any Windows greater or equal to Windows 7. Cygwin32 uses slow emulation libraries on 64bit SOs and seems a bad choice. I understand people resorting to Cywgin32 after failing to install CPCtelera on Cygwin64, but I think it seems to be always due to some forgotten step during install process, so I recommend trying again with Cygwin64 step by step. My students did and everything seems okay with Cygwin64 right now.
I'm feeling a little bit angry with latest Windows versions, as they seem to be complicating things rather than simplifying them. Sorry for not having a better solution for all of you right now.

Arnaud

The problem i had with the installation was for the compilation, it was really slow and at any time it crashes with an strange error message about thread priority.

ronaldo

@Arnaud: Haven't seen something like that happen yet, but nothing surprises me speaking about Windows 10. Seems to be RandomOS: no one has the same experience, talking about the exact same software :)

EgoTrip

I finally got Cygwin installed.

Quote===============================================================
== 1: CPCtelera initial tests
===============================================================
> Checking directory structure... [ OK ]
> Checking important files....... [ OK ]
> Checking required commands...
>>> Looking for 'gcc'... [ OK ]
>>> Looking for 'g++'... [ OK ]
>>> Looking for 'make'... [ OK ]
>>> Looking for 'bison'... [ OK ]
>>> Looking for 'flex'... [ OK ]
> Checking required libraries...
>>> Looking for 'boost/graph/adjacency_list.hpp'... [ OK ]
>>> Looking for 'libintl.h'... [ OK ]
Everything seems to be OK.

Then it takes ages to build the tools and stuff, and then this happens:
Quote===============================================================
== 2: Building CPCtelera tools, z80 library and examples
===============================================================
> Proceeding to build required tools to build and manage CPCtelera and other software for Amstrad CPC (This might take a while, depending on your system):
>>> Building compilation tools:                                     5%

#########################
## UNRECOVERABLE ERROR ##
#########################
##> There was an error building CPCtelera tools. Please, check '/home/ego/cpctelera/cpctelera/logs/tool_building.log' for details. Aborting.


ego@qwertyuiop ~/cpctelera
$

Here's the error text from the log file:

Quote

checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... configure: error: in `/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/obj/support/sdbinutils':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
configure: error: /home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils/configure failed for support/sdbinutils
!!ERROR!!: SDCC was not adequately configured for some reason.
Makefile:42: recipe for target 'sdcc' failed
make[1]: *** [sdcc] Error 1
make[1]: Leaving directory '/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0'
Makefile:56: recipe for target 'sdcc-3.5.0' failed
make: *** [sdcc-3.5.0] Error 2
make: Leaving directory '/home/ego/cpctelera/cpctelera/tools'

How do I fix it?

ronaldo

Quote from: EgoTrip
checking whether the C compiler works... configure: error: in `/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/obj/support/sdbinutils':
configure: error: cannot run C compiled programs.
Seems that your installation is not using gcc-core from Cygwin to compile. It may be using Windows binaries, which are not valid for CPCtelera. This may be due to one of these 2 reasons:

       
  • You are using a Windows terminal instead of Cygwin terminal.
  • gcc-core is not properly installed and Cygwin is using Windows binaries found in your Windows path.
Please, for checking purposes, input these commands on your Cygwin terminal and post the output:

which gcc
which g++
which make


Check that you have installed the exact Cygwin packages required by CPCtelera. They are detailed in CPCtelera install instructions. Specifically, you should have installed these packages when Cygwin asked for them:
Quote from: http://lronaldo.github.io/cpctelera/files/readme-txt.html#Software_Requirements

       
  • gcc-core, gcc-g++, make, bison, flex
  • libboost-devel, libintl-devel
To check for them and install those missing, you may run Cygwin setup.exe again and add these packages when propmted by Cygwin. Cygwin will only install these new packages (it won't repeat the whole process again). I also recommend you to also install these:

       
  • wget, unzip, git
As they will be useful on future releases of CPCtelera.

EgoTrip

Quoteego@qwertyuiop ~
$ which gcc
/usr/bin/gcc

ego@qwertyuiop ~
$ which g++
/usr/bin/g++

ego@qwertyuiop ~
$ which make
/usr/bin/make

I have installed everything exactly as the guide says. I have made sure everything is there. I really cannot see what I have done wrong.


ronaldo

@EgoTrip: Ok, then this lefts us with 2 possibilities to check:

       
  • Are you sure you are using Cygwin terminal and not Windows CMD terminal?
  • It might be a user/privileges problem. Try launching Cygwin terminal as administrator.
Could you check these 2 possibilities and report the result?

Another question, are you using Cygwin32 or Cygwin64?

EgoTrip

#10
Definitely using Cygwin terminal. 64-bit.

Trying again as administrator.

Nope. Still not building. I give up.

ronaldo

@EgoTrip: Could you please look up for the file 'config.log' that should be around '/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/obj/support/sdbinutils' and post its contents?

EgoTrip

QuoteThis file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ /home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils/configure --disable-option-checking --prefix=/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0 --disable-avr-port --disable-xa-port --disable-mcs51-port --disable-z180-port --disable-r2k-port --disable-r3ka-port --disable-gbz80-port --disable-ds390-port --disable-ds400-port --disable-pic14-port --disable-pic16-port --disable-hc08-port --disable-s08-port --disable-tlcs90-port --disable-st7-port --disable-stm8-port --disable-ucsim docdir=${datarootdir}/doc/${PACKAGE} --cache-file=/dev/null --srcdir=/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils

## --------- ##
## Platform. ##
## --------- ##

hostname = qwertyuiop
uname -m = x86_64
uname -r = 2.2.1(0.289/5/3)
uname -s = CYGWIN_NT-6.3
uname -v = 2015-08-20 11:42

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /cygdrive/c/devkitPro/msys/bin
PATH: /cygdrive/c/Program Files (x86)/Intel/iCLS Client
PATH: /cygdrive/c/Program Files/Intel/iCLS Client
PATH: /cygdrive/c/WINDOWS/system32
PATH: /cygdrive/c/WINDOWS
PATH: /cygdrive/c/WINDOWS/System32/Wbem
PATH: /cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0
PATH: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86
PATH: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64
PATH: /cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL
PATH: /cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT
PATH: /cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL
PATH: /cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT
PATH: /cygdrive/c/Program Files (x86)/Windows Live/Shared
PATH: /cygdrive/c/Program Files (x86)/Skype/Phone


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2237: checking build system type
configure:2251: result: x86_64-unknown-cygwin
configure:2298: checking host system type
configure:2311: result: x86_64-unknown-cygwin
configure:2331: checking target system type
configure:2344: result: x86_64-unknown-cygwin
configure:2398: checking for a BSD-compatible install
configure:2466: result: /usr/bin/install -c
configure:2477: checking whether ln works
configure:2499: result: yes
configure:2503: checking whether ln -s works
configure:2507: result: yes
configure:2514: checking for a sed that does not truncate output
configure:2578: result: /usr/bin/sed
configure:2587: checking for gawk
configure:2603: found /usr/bin/gawk
configure:2614: result: gawk
configure:3641: checking to see if cat works as expected
configure:3646: result: yes
configure:3767: checking for gcc
configure:3783: found /usr/bin/gcc
configure:3794: result: gcc
configure:4023: checking for C compiler version
configure:4032: gcc --version >&5
gcc (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4043: $? = 0
configure:4032: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id
Thread model: posix
gcc version 4.9.3 (GCC)
configure:4043: $? = 0
configure:4032: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4043: $? = 1
configure:4032: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4043: $? = 1
configure:4063: checking for C compiler default output file name
configure:4085: gcc    conftest.c  >&5
configure:4089: $? = 0
configure:4126: result: a.exe
configure:4142: checking whether the C compiler works
configure:4151: ./a.exe
/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils/configure: line 4153: ./a.exe: Permission denied
configure:4155: $? = 126
configure:4162: error: in `/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/obj/support/sdbinutils':
configure:4166: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-cygwin
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_exeext=.exe
ac_cv_host=x86_64-unknown-cygwin
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=x86_64-unknown-cygwin
acx_cv_prog_LN=ln

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
AWK='gawk'
BISON=''
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
EXTRA_CONFIGARGS_LIBJAVA='--disable-static'
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
POSTSTAGE1_CONFIGURE_FLAGS=''
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
READELF=''
READELF_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED='/usr/bin/sed'
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils/configure --disable-option-checking --prefix=/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0 --disable-avr-port --disable-xa-port --disable-mcs51-port --disable-z180-port --disable-r2k-port --disable-r3ka-port --disable-gbz80-port --disable-ds390-port --disable-ds400-port --disable-pic14-port --disable-pic16-port --disable-hc08-port --disable-s08-port --disable-tlcs90-port --disable-st7-port --disable-stm8-port --disable-ucsim docdir='\''$${datarootdir}/doc/$${PACKAGE}'\'' --cache-file=/dev/null --srcdir=/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-cygwin'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-flex build-bison build-m4 build-fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-unknown-cygwin'
build_noncanonical='x86_64-unknown-cygwin'
build_os='cygwin'
build_subdir='build-x86_64-unknown-cygwin'
build_tooldir=''
build_vendor='unknown'
clooginc=''
clooglibs=''
compare_exclusions=''
configdirs='intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libtermcap'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host='x86_64-unknown-cygwin'
host_alias=''
host_configargs=''
host_cpu='x86_64'
host_noncanonical='x86_64-unknown-cygwin'
host_os='cygwin'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='x86_64-unknown-cygwin'
target_alias=''
target_configargs=''
target_configdirs='target-libgcc target-libgloss target-newlib target-libgomp target-libitm target-libstdc++-v3 target-libmudflap target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-libjava target-libobjc target-libada target-libgo target-rda target-libtermcap target-winsup'
target_cpu='x86_64'
target_noncanonical='x86_64-unknown-cygwin'
target_os='cygwin'
target_subdir='x86_64-unknown-cygwin'
target_vendor='unknown'
tooldir=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-cygwin'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1

ronaldo

This shows clearly that you have a privileges problem with your Cygwin installation. Look at this line:

/home/ego/cpctelera/cpctelera/tools/sdcc-3.5.0/src/support/sdbinutils/configure: line 4153: ./a.exe: Permission denied

The configuration script creates a dummy C program, compiles it and tries to run it. When it tries to run, it gets a permission denied problem. Then, it is a configuration problem of your Cygwin user. That should be solved running Cygwin terminal as system administrator (it does not make sense to have a permission problem if you are administrator).

Are you running Cygwin from the icon it creates on the Desktop? Could you upload an screenshot of your Cygwin terminal window?


EgoTrip

I am running it from the Desktop shortcut icon yes. I have set it to run as Administrator.



ronaldo

@EgoTrip: Ok, there is another possibility. Do you have an antivirus running? Sometimes, antiviruses trigger this kind of behaviour. I have seen some of my students having files deleted silently by their antiviruses just after being generated using CPCtelera.

Cygwin FAQ says this:
Quote
File access problems. Some programs (e.g., virus scanners with on-access scanning) scan or otherwise operate on every file accessed by all the other software running on your computer. In some cases they may retain an open handle on the file even after the software that is really using the file has closed it. This has been known to cause operations such as deletes, renames and moves to fail with access denied errors. In extreme cases it has been known for scanners to leak file handles, leading to kernel memory starvation.
If this were the case, you may try stopping your antivirus software, then running Cygwin and launching setup again.

Also, Cygwin FAQ has a list of known software interfering:
Quote
Among the software that has been found to cause difficulties are:

       
  • Sonic Solutions burning software containing DLA component
  • Norton/MacAffee/Symantec antivirus or antispyware
  • Logitech webcam software with "Logitech process monitor" service
  • Kerio, Agnitum or ZoneAlarm Personal Firewall
  • Iolo System Mechanic/AntiVirus/Firewall
  • LanDesk
  • Windows Defender
  • Embassy Trust Suite fingerprint reader software wxvault.dll
  • NOD32 Antivirus
  • ByteMobile laptop optimization client

EgoTrip

I'm using Avast and I diabled it then ran setup.sh and it appears that was causing the issue.

Maybe you should put a note in the guide saying if you experience any issues installing then to temporarily disable your antivirus while you run setup.

Thanks for your help, hopefully I won't need to bother you any more.

ronaldo

#17
Well, in the end this is a nice result: your experience will be very useful for other people :) . I think that this issue may be common to other people.

I'm putting a note in the documentation about antivirus software :) .

Thank you for your patience and for reporting all your steps, @EgoTrip.

Edit: There you go :). Notes added to the installation instructions.

Raul

¡¡Muchísimas gracias, me estaba volviendo loco!!
Grandísimo trabajo el de la Cpctelera.



skylas

I was trying to install cpctelera and i have a problem with installing Cygwin.

It seems that there are no download mirrors in the list.
I tried to add them manually, but the problem continues, as although the mirror seems ok (active page), cygwin installer cannot connect.I tried several mirrors and <run as administrator>, or download cygwin 32, i tried 6-7 different mirrors,  but nothing helps.
Is there a way to instal cpctelera without cygwin?
Web: https://amstradsakis.blogspot.com
Twitter: https://twitter.com/AmstradSakis
My programs (only BASIC):
RETRO-LOADSHEET!, PENALTY KICKS!, CAPITAL QUIZ!, CAPITAL QUIZ 2! (Reverse edition), HEADS OR TAILS (ΚΟΡΩΝΑ/ΓΡΑΜΜΑΤΑ), HEART CHASER 1,2,3!, BARBOUTI!, STROOPIE!, AMSTABOO!
TEXT ADVENTURES:
BUDRUMI!, ART WAR!, BATTLE OF LENINGRAD!, RODOLFO SKYLARRIENTE 1 and 2!

awergh




If you can't use Cygwin I suggest trying out Windows Subsystem for Linux as then you can build cpctelera like your running a Linux box (you may need to download some extra packages).
I am not sure if 1.4.2 is compatible with WSL but you probably want to use the development version anyway.


Is this similar to your Cygwin problem?
https://stackoverflow.com/questions/28673949/cygwin-no-available-download-site



I looked at building cpctelera on Windows without cygwin once but I wasn't quite happy with where I was going, all my dependencies were getting a bit too complex and didn't fell that windows native.
In reality I should probably have built everything with Visual Studio but that isn't as accessible unless I'm willing to supply binaries instead of letting people build it like they do now with Cygwin.

skylas

#21
Thx awergh for your answer.

Yes, your link is right, but i tried everything from there.
Finally i followed this video

https://www.youtube.com/watch?v=ICr36qpw3o4


and it seemed ok.

But when trying to install i get this error
> Command 'gcc' not found installed in the system. gcc compiler is required to compile tools. Please install it or build-essentials and run setup again.>

Web: https://amstradsakis.blogspot.com
Twitter: https://twitter.com/AmstradSakis
My programs (only BASIC):
RETRO-LOADSHEET!, PENALTY KICKS!, CAPITAL QUIZ!, CAPITAL QUIZ 2! (Reverse edition), HEADS OR TAILS (ΚΟΡΩΝΑ/ΓΡΑΜΜΑΤΑ), HEART CHASER 1,2,3!, BARBOUTI!, STROOPIE!, AMSTABOO!
TEXT ADVENTURES:
BUDRUMI!, ART WAR!, BATTLE OF LENINGRAD!, RODOLFO SKYLARRIENTE 1 and 2!

awergh


Sounds like when you installed cygwin you didn't install all the packages you need for cpctelra.


If you rerun the cygwin setup when you get to the package screen select all of the following packages
you will need

       
  • gcc-core
  • gcc-g++
  • make
  • bison
  • flex
  • wget
  • unzip
  • bc
  • libboost-devel
  • libintl-devel
Once those are installed you should be able to run the cpcterla install.

skylas

Unfortunately, there was no gcc file there.
I unistalled this type of installation and i will may try another day from the beginning.
This cygwin is very difficult to be installed correctly, as i understand, i spent 4 hours trying many ways but nothing happened
Anyway, thx for your help! Hope the mirror will work some day and it can be installed correctly
Web: https://amstradsakis.blogspot.com
Twitter: https://twitter.com/AmstradSakis
My programs (only BASIC):
RETRO-LOADSHEET!, PENALTY KICKS!, CAPITAL QUIZ!, CAPITAL QUIZ 2! (Reverse edition), HEADS OR TAILS (ΚΟΡΩΝΑ/ΓΡΑΜΜΑΤΑ), HEART CHASER 1,2,3!, BARBOUTI!, STROOPIE!, AMSTABOO!
TEXT ADVENTURES:
BUDRUMI!, ART WAR!, BATTLE OF LENINGRAD!, RODOLFO SKYLARRIENTE 1 and 2!

awergh

It sounds like the mirror is incomplete.
The gcc related packages should be under devel.
Just checking you have changed the view to full so you can see all the packages as they might not show up in some of the other views?

Powered by SMFPacks Menu Editor Mod