raymond@ele.tue.nl (Raymond Nijssen) (08/03/90)
I'm trying to compile elm2.3.5 on an FX/8 running Concentrix 5.0.0, and I get a parse error on an include file which looks quite normal to me. This error occurs with both the Alliant fxc compiler and with gcc. I ran Configure several times with other answers, but that didn't help. I hope someone can give me a hint how to solve this problem, or may be someone else previously encountered this problem. Below, I included the MAKELOG file. ---------->8------------ cd src; /bin/make - all /bin/chmod u+w ../hdrs/defs.h /bin/touch ../hdrs/defs.h /bin/chmod u+w ../hdrs/headers.h /bin/touch ../hdrs/headers.h gcc -fpcc-struct-return -O -I../hdrs -c addr_util.c In file included from /usr/include/signal.h:128, from /usr/include/setjmp.h:19, from ../hdrs/headers.h:33, from addr_util.c:27: /usr/include/machine/reg.h:32: parse error before `1' addr_util.c: In function prefix: addr_util.c:815: warning: `prefix' was declared implicitly `extern' and later `static' addr_util.c: In function get_unix_date: addr_util.c:926: warning: `get_unix_date' was declared implicitly `extern' and later `static' *** Exit 1 Stop. *** Exit 1 Stop. ---------->8------------ ______________________________________________________________________________ Raymond X.T. Nijssen / Don't speak if you / Oh VMS, please forgive me all raymond@ele.tue.nl / speak for yourself / unfriendly things I said about you
jay@alliant.backbone.uoknor.edu (Jay Liang) (08/06/90)
In article <537@al.ele.tue.nl>, raymond@ele.tue.nl (Raymond Nijssen) writes: |> I'm trying to compile elm2.3.5 on an FX/8 running Concentrix 5.0.0, |> and I get a parse error on an include file which looks quite normal to me. |> This error occurs with both the Alliant fxc compiler and with gcc. |> I ran Configure several times with other answers, but that didn't help. |> |> I hope someone can give me a hint how to solve this problem, or may be someone |> else previously encountered this problem. |> |> Below, I included the MAKELOG file. |> |> ---------->8------------ |> |> cd src; /bin/make - all |> /bin/chmod u+w ../hdrs/defs.h |> /bin/touch ../hdrs/defs.h |> /bin/chmod u+w ../hdrs/headers.h |> /bin/touch ../hdrs/headers.h |> gcc -fpcc-struct-return -O -I../hdrs -c addr_util.c |> In file included from /usr/include/signal.h:128, from /usr/include/setjmp.h:19, from ../hdrs/headers.h:33, from addr_util.c:27: |> /usr/include/machine/reg.h:32: parse error before `1' |> addr_util.c: In function prefix: |> addr_util.c:815: warning: `prefix' was declared implicitly `extern' and later `static' |> addr_util.c: In function get_unix_date: |> addr_util.c:926: warning: `get_unix_date' was declared implicitly `extern' and later `static' |> *** Exit 1 |> |> Stop. |> *** Exit 1 |> |> Stop. |> |> ---------->8------------ |> |> ______________________________________________________________________________ |> Raymond X.T. Nijssen / Don't speak if you / Oh VMS, please forgive me all |> raymond@ele.tue.nl / speak for yourself / unfriendly things I said about you I had the same error messages when I install elm 2.3.pl5 on a FX/8 running 5.5.02 with Concentrix C V. 4.0.17 and gcc 1.37.1. I eventually used a workaround by changing /usr/include/machine/reg.h. In its floatr typedef, I changed the following: struct { float F1; float F2; } f; And completed the compilation. I also sent in a bug report and a tape to Alliant about 4 weeks ago but still haven't heard from them, yet. Jay Liang (jay@alliant.backbone.uoknor.edu) Geosciences Computing Network University of Oklahoma Norman, OK 73019
jay@alliant.backbone.uoknor.edu (Jay Liang) (08/06/90)
In article <1990Aug6.132421.29111@uokmax.uucp>, jay@alliant.backbone.uoknor.edu (Jay Liang) writes: |> |> In article <537@al.ele.tue.nl>, raymond@ele.tue.nl (Raymond Nijssen) writes: |> |> |> |> ---------->8------------ |> |> |> |> Raymond X.T. Nijssen / Don't speak if you / Oh VMS, please forgive me all |> |> raymond@ele.tue.nl / speak for yourself / unfriendly things I said |> about you |> |> I had the same error messages when I install elm 2.3.pl5 on a FX/8 |> running 5.5.02 with Concentrix C V. 4.0.17 and gcc 1.37.1. I |> eventually used a workaround by changing /usr/include/machine/reg.h. |> In its floatr typedef, I changed the following: |> |> struct { |> float F1; |> float F2; |> } f; |> |> And completed the compilation. I also sent in a bug report and a tape to |> Alliant about 4 weeks ago but still haven't heard from them, yet. |> |> Jay Liang (jay@alliant.backbone.uoknor.edu) |> Geosciences Computing Network |> University of Oklahoma |> Norman, OK 73019 I suppose that I jumped the gun. I just received a call from Alliant technical support who pointed out that in elm/hdrs/defs.h there were define statements for f1 to 1 and f2 to 2 which /lib/cpp took to substitute the float definitions in /usr/include/machine/reg.h. So this is not a cpp bug but a coincidence. Jay Liang (jay@alliant.backbone.uoknor.edu) Geosciences Computing Network University of Oklahoma Norman, OK 73019