Hello all,
I have some troubles compiling a .c file which was
generated by a parser.
Once compilation is started with ..
CC -compat -I .... -c -PIC file.c
.. nothing happens until all memory is used up, aprox 1GB.
Everything works fine with C++ 4.0 and Solaris7 but we need
to upgrade our tools thats why I downloaded a trial version
of Workshop 5.0 and ...#$?!
I tried to truss the compilation process and this is
the last significant part of the output:
21017: .....
21017: .....
21017: open("/usr/include/alloca.h", O_RDONLY) = 8
21017: fstat(8, 0xFFBEE048) = 0
21017: mmap(0x00000000, 1378, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_NORESERVE, 8, 0) = 0xFF350000
21017: open("/usr/include/sys/types.h", O_RDONLY) = 9
21017: fstat(9, 0xFFBEE048) = 0
21017: mmap(0x00000000, 15425, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_NORESERVE, 9, 0) = 0xFF240000
21017: munmap(0xFF240000, 15425) = 0
21017: close(9) = 0
21017: brk(0x017B8000) = 0
21017: brk(0x017BC000) = 0
21017: ioctl(6, PIOCUSAGE, 0xFFBEE05C) = 0
21017: ioctl(6, PIOCUSAGE, 0xFFBEE05C) = 0
21017: munmap(0xFF350000, 1378) = 0
21017: close(8) = 0
21017: ioctl(6, PIOCUSAGE, 0xFFBEE05C) = 0
21017: brk(0x017BC000) = 0
21017: brk(0x017BE000) = 0
21017: ioctl(6, PIOCUSAGE, 0xFFBEE05C) = 0
21017: brk(0x017BE000) = 0
21017: brk(0x017C0000) = 0
21017: brk............ = 0
21017: brk............ = 0
21017: brk............ = 0
... and brk() so on until .. out of memory message
Any help would be appreciated.
Thank you,
Sandro