From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,82f75b0735bab7ec,start X-Google-Attributes: gid111c93,public From: Peter Doering Subject: Floating point exceptions while running RADIANCE on Redhat Linux 5.1 for ALphaPCs Date: 1998/09/16 Message-ID: <36004DB6.EB673924@worldnet.att.net>#1/1 X-Deja-AN: 391877305 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: On the sunny side of life Mime-Version: 1.0 Reply-To: headroom@worldnet.att.net Newsgroups: comp.os.linux.alpha Hi Guys, I am finally at a point where I could use some advice. The first thing I ran into when tried to compile the RADIANCE package (which I have from the CD in the book, which is an outstanding and exceptional piece of work BTW) was that the librt.a was not built because : error.c:14: conflicting types for `sys_errlist' /usr/include/stdio.h:221: previous declaration of `sys_errlist' make: *** [error.o] Error 1 make: Target `install' not remade because of errors. To fix this, I out-commented these definition in error.c. The second thing was the X11 library and include paths, which had to be included in the rmake command. After that the compilation worked fine. There were a lot of warning messages though, but everything was where it was supposed to be. Just to test if everything works, I startet a "make" in the obj/cabin directory. The rview interface came up as expected and started refining the scene but: make: *** [view] Floating point exception (core dumped) I tried it the same with the "office" and the "conf" models from the CD but I always run into this Floating point exception. I played with a few compiler switches and makeall-install-cleaned the package several times, but it is always the same message I get and I have seriously no idea how to get around this error. My current rmake command is: #!/bin/sh exec make "SPECIAL=" \ "OPT=-O2 -DSPEED=60" \ "MACH=-DALIGN=double -DBSD -Dlinux -DDCL_ATOF -Dqsort=_quicksort \ -DBIGMEM -L/usr/X11R6/lib -I/usr/X11R6/include" \ ARCH=ALPHA "COMPAT=bmalloc.o erf.o getpagesize.o strcmp.o" \ INSTDIR=/usr/local/bin/ray \ LIBDIR=/usr/local/lib/ray \ CC=gcc "$@" -f Rmakefile My System: System: AlphaPC 164LX Processor: Digital Alpha 21164 Revision 7.2 Clock speed: 533 Mhz Cache: 2MB 3rd level Memory: 64MB Operating System: Redhat Linux 5.1 for Alpha Computers compiler : gcc (egcs 1.0.2) Examples of the differnt warning messages the compiler generated during the compilation : (The file size of the complete file with all the warning messages is 19KB) header.c: In function `checkheader': header.c:244: warning: type mismatch in implicit declaration for built-in function `strcpy' image.c: In function `viewopt': image.c:442: warning: type mismatch in implicit declaration for built-in function `strlen' plot.c:224: warning: `spop' was declared implicitly `extern' and later `static' plot.c:215: warning: previous declaration of `spop' bmalloc.c:57: warning: cast from pointer to integer of different size lampcolor.o: In function `main': lampcolor.c(.text+0x100): the `gets' function is dangerous and should not be used. function `openmain': xform.c(.text+0x2720): the `getwd' function is dangerous and should not be used. mkillum.c: In function `init': mkillum.c:165: warning: passing arg 2 of `signal' from incompatible pointer typ