[ECOS] FW: Problems with arm-elf-gcc under cygwin

Jepsen Hans Peter hans_peter_jepsen@Danfoss.com
Tue Nov 25 13:20:00 GMT 2003

Hello all

This problem might be a bit off-topic for this list. Excuse me, but we need

The problem is with arm-elf-gcc running under cygwin.

GCC version:
arm-elf-gcc -v
Reading specs from /usr/local/lib/gcc-lib/arm-elf/3.2.2/specs
Configured with: /src/gcc-3.2.2/configure --target=arm-elf
--prefix=/usr/local --enable-languages=c,
c++ --with-gnu-as --with-gnu-ld --with-newlib
--with-gxx-include-dir=/usr/local/arm-elf/include -v
Thread model: single
gcc version 3.2.2

The toolchain is but with instructions from

Under a newer cygwin (version of setup.exe seems to be 2.416) we get this
compile problem with one the files:

/usr/local/bin/arm-elf-g++  -c -o .......
ata.cpp: In
   constructor `VLTData::VLTData()':
ata.cpp:21380: internal
   error: Segmentation fault

The file compiles OK under an older cygwin (version of setup.exe seems to be
2.340.2.5). But here we have linking problems:

      4 [main] sh 2392 sync_with_child: child 3424(0x6F4) died before
initialization with status code 0x1
   3219 [main] sh 2392 sync_with_child: *** child state waiting for longjmp
Cannot fork: Resource temporarily unavailable
make: ***
oc.elf] Error 2

We have also build the toolchain under HPUX-11i. Here we can compile and
link the same files without problems.

>From the information above it seems to us, that problems are not directly
with gcc and ld, but more with the ressources, that these programs get under

We tried changing Cygwin's maximum memory size by using the command
    regtool -i set /HKLM/Software/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb
, as described in
http://sources.redhat.com/cygwin/cygwin-ug-net/setup-maxmem.html. We also
tried using the size 2048, but neither of them changed the behaviour of the

If anyone of you could us advice on how to solve these problems, we will be
very thankfull.

kind regards

Hans Peter

Hans Peter Jepsen          Phone: +45 74 88 50 11
Danfoss Drives A/S,        Fax:   +45 74 88 32 26
DG-1204, Ulsnaes 1,        Email: Hans_Peter_Jepsen@danfoss.com
DK-6300 Graasten, Denmark  or:    hpj@computer.org

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list