src/rt/Version.c does not compile

Hello,

when I run 'makeall install' against release 5.0 of Radiance (
https://github.com/NREL/Radiance/releases/tag/5.0), file src/rt/Version.c
is automatically generated, with the following contents:

RADIANCE 5.0

Thu Apr 5 13:38:59 UTC 2018

root

6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation errors
at the bottom of this email. The problem seems to be the dot in '5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the
content of Version.c, and which contains the following:

1s/^/char VersionID[]="/

2s/^/ lastmod /

3s/^/ by /

4s/^/ on /

1,$j

1s/$/";/

1i

/*

* This file was created automatically during make.

*/

.

w

q

Is there something sort-term that I can do to prevent this from happening?

If not, is it the case that this is just a minor error that can be ignored
and doesn't prevent Radiance from being correctly installed and ready for
use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o pmaptype.c

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

···

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
-DDEVPATH=\"/home/radiance/bin\" -c -o viewbeams.o viewbeams.c

cp ../rt/Version.c .

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
-DDEVPATH=\"/home/radiance/bin\" -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c

cp ../rt/Version.c .

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

===============================================================

by the way, someone has run into this problem in the past:

Philip

···

On 5 April 2018 at 16:34, Philip Schwarz < [email protected]> wrote:

Hello,

when I run 'makeall install' against release 5.0 of Radiance (
https://github.com/NREL/Radiance/releases/tag/5.0), file src/rt/Version.c
is automatically generated, with the following contents:

RADIANCE 5.0

Thu Apr 5 13:38:59 UTC 2018

root

6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation
errors at the bottom of this email. The problem seems to be the dot in
'5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the
content of Version.c, and which contains the following:

1s/^/char VersionID[]="/

2s/^/ lastmod /

3s/^/ by /

4s/^/ on /

1,$j

1s/$/";/

1i

/*

* This file was created automatically during make.

*/

.

w

q

Is there something sort-term that I can do to prevent this from happening?

If not, is it the case that this is just a minor error that can be ignored
and doesn't prevent Radiance from being correctly installed and ready for
use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o
pmaptype.c

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\"
  -c -o viewbeams.o viewbeams.c

cp ../rt/Version.c .

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\"
  -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c

cp ../rt/Version.c .

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

===============================================================

It seems like your Linux (and some others?) don't include the standard "ed" editor or any equivalent. Can you install it?

This script could probably be converted easily enough to 'sed' or Perl, but this is the first I've heard of the problem.

Reporting errors on NREL's github is currently like telling your problems to a congressman, or a black hole. We're looking to fix that, but no one gets notified of those posts at the moment.

-Greg

···

From: Philip Schwarz <[email protected]>
Date: April 5, 2018 8:35:45 AM PDT

by the way, someone has run into this problem in the past: https://github.com/NREL/Radiance/issues/17

Philip

On 5 April 2018 at 16:34, Philip Schwarz <[email protected]> wrote:
Hello,

when I run 'makeall install' against release 5.0 of Radiance (https://github.com/NREL/Radiance/releases/tag/5.0), file src/rt/Version.c is automatically generated, with the following contents:

RADIANCE 5.0
Thu Apr 5 13:38:59 UTC 2018
root
6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation errors at the bottom of this email. The problem seems to be the dot in '5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the content of Version.c, and which contains the following:

1s/^/char VersionID[]="/
2s/^/ lastmod /
3s/^/ by /
4s/^/ on /
1,$j
1s/$/";/
1i
/*
* This file was created automatically during make.
*/

.
w
q

Is there something sort-term that I can do to prevent this from happening?

If not, is it the case that this is just a minor error that can be ignored and doesn't prevent Radiance from being correctly installed and ready for use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o pmaptype.c
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\" -c -o viewbeams.o viewbeams.c
cp ../rt/Version.c .
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\" -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c
cp ../rt/Version.c .
gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1

===============================================================

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev

Incidentally, this is what your Version.c file should look like in the end. If you create this in your src/rt directory, everything should compile from there. Would like to get makeall working right, though:

/*
* This file was created automatically during make.
*/

char VersionID[]="RADIANCE 5.2a lastmod Fri Feb 16 10:37:53 PST 2018 by gward on photon";

···

--------
-G

From: "Gregory J. Ward" <[email protected]>
Date: April 5, 2018 8:44:39 AM PDT

It seems like your Linux (and some others?) don't include the standard "ed" editor or any equivalent. Can you install it?

This script could probably be converted easily enough to 'sed' or Perl, but this is the first I've heard of the problem.

Reporting errors on NREL's github is currently like telling your problems to a congressman, or a black hole. We're looking to fix that, but no one gets notified of those posts at the moment.

-Greg

From: Philip Schwarz <[email protected]>
Date: April 5, 2018 8:35:45 AM PDT

by the way, someone has run into this problem in the past: https://github.com/NREL/Radiance/issues/17

Philip

On 5 April 2018 at 16:34, Philip Schwarz <[email protected]> wrote:
Hello,

when I run 'makeall install' against release 5.0 of Radiance (https://github.com/NREL/Radiance/releases/tag/5.0), file src/rt/Version.c is automatically generated, with the following contents:

RADIANCE 5.0
Thu Apr 5 13:38:59 UTC 2018
root
6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation errors at the bottom of this email. The problem seems to be the dot in '5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the content of Version.c, and which contains the following:

1s/^/char VersionID[]="/
2s/^/ lastmod /
3s/^/ by /
4s/^/ on /
1,$j
1s/$/";/
1i
/*
* This file was created automatically during make.
*/

.
w
q

Is there something sort-term that I can do to prevent this from happening?

If not, is it the case that this is just a minor error that can be ignored and doesn't prevent Radiance from being correctly installed and ready for use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o pmaptype.c
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\" -c -o viewbeams.o viewbeams.c
cp ../rt/Version.c .
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\" -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c
cp ../rt/Version.c .
gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1

===============================================================

Yes, thanks for supplying the stdout. Greg is right, you need 'ed' as the script is written, easy to sub for some other stream editor. And I am starting to monitor the GitHub issues page more regularly, as people do seem to be using it, but as I and Greg have noted here and elsewhere Philip, it's not really the primary spot for posting these kinds of issues.

- Rob

···

On 4/5/18, 9:44 AM, "Gregory J. Ward" <[email protected]> wrote:

    It seems like your Linux (and some others?) don't include the standard "ed" editor or any equivalent. Can you install it?
    
    This script could probably be converted easily enough to 'sed' or Perl, but this is the first I've heard of the problem.
    
    Reporting errors on NREL's github is currently like telling your problems to a congressman, or a black hole. We're looking to fix that, but no one gets notified of those posts at the moment.
    
    -Greg
    
    From:
    Philip Schwarz <[email protected]>
    Date:
    April 5, 2018 8:35:45 AM PDT
    
    by the way, someone has run into this problem in the past: https://github.com/NREL/Radiance/issues/17 <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNREL%2FRadiance%2Fissues%2F17&data=02|01|robert.guglielmetti%40nrel.gov|a07c0b91b757429ad53008d59b0c2405|a0f29d7e28cd4f5484427885aee7c080|0|0|636585398817451153&sdata=JEmWYfkHTuDUd7XpyDwTfeAOuA9pd%2FGjFiPeuYdBhaU%3D&reserved=0>
    
    Philip
    
    On 5 April 2018 at 16:34, Philip Schwarz <[email protected]> wrote:
    
    Hello,
    
    when I run 'makeall install' against release 5.0 of Radiance (https://github.com/NREL/Radiance/releases/tag/5.0 <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNREL%2FRadiance%2Freleases%2Ftag%2F5.0&data=02|01|robert.guglielmetti%40nrel.gov|a07c0b91b757429ad53008d59b0c2405|a0f29d7e28cd4f5484427885aee7c080|0|0|636585398817451153&sdata=Z5nWhR8WKAlgVlQZMZRJoxT0LstyicFv4xrnug1iRYw%3D&reserved=0>),
     file src/rt/Version.c is automatically generated, with the following contents:
    
    RADIANCE
    5.0
    
    Thu Apr 5 13:38:59
    UTC
    2018
    
    root
    
    6f0749328ec2
    
    Version.c does not compile. It causes the 3
     very similar compilation errors at the bottom of this email. The problem seems to be the dot in '5.0'.
    
    Btw, there is a file called Verscrit.ed which seems to relate to the content of Version.c, and which contains the following:
    
    1s/^/char VersionID[]="/
    
    2s/^/ lastmod /
    
    3s/^/ by /
    
    4s/^/ on /
    
    1,$j
    
    1s/$/";/
    
    1i
    
    /*
    
     * This file was created automatically during make.
    
     */
    
    .
    
    w
    
    q
    
    Is there something sort-term that I can do to prevent this from happening?
    
    If not, is it the case that this is just a minor error that can be ignored and doesn't prevent Radiance from being correctly installed and ready for use?
    
    Thanks,
    
    Philip Schwarz
    
    === ERRORS ===========================================================
    
    gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
      -c -o pmaptype.o pmaptype.c
    gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
      -c -o Version.o Version.c
    Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
     RADIANCE 5.0
              
    ^
    Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
     6f0749328ec2
     ^
    make: *** [Version.o] Error 1
    gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
      -c -o rpmain.o rpmain.c
    
    =================================================================
    
    gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\"
      -c -o viewbeams.o viewbeams.c
    cp ../rt/Version.c .
    gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\"
      -c -o Version.o Version.c
    Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
     RADIANCE 5.0
              
    ^
    Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
     6f0749328ec2
     ^
    make: *** [Version.o] Error 1
    
    =================================================================
    
    gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
      -c -o rpiece.o rpiece.c
    cp ../rt/Version.c .
    gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
      -c -o Version.o Version.c
    Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
     RADIANCE 5.0
              
    ^
    Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
     6f0749328ec2
     ^
    make: *** [Version.o] Error 1
    
    ===============================================================
    
    _______________________________________________
    Radiance-dev mailing list
    [email protected]
    https://www.radiance-online.org/mailman/listinfo/radiance-dev

Hello Greg,

Yes, about ed, I was getting the following error:

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o pmaptype.c
( cat VERSION ; date ; whoami ; hostname ) > Version.c
ed - Version.c < verscript.ed
/bin/sh: ed: command not found
make: *** [Version.c] Error 127
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

So I installed ed and that error got replaced by a third instance of the
following:

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

I had stopped posting to github, but I saw the same error I was
encountering, and I saw that it had been closed 3 days ago, so I thought it
could be useful to post anyway.

Thanks,

Philip

···

On 5 April 2018 at 16:44, Gregory J. Ward <[email protected]> wrote:

It seems like your Linux (and some others?) don't include the standard
"ed" editor or any equivalent. Can you install it?

This script could probably be converted easily enough to 'sed' or Perl,
but this is the first I've heard of the problem.

Reporting errors on NREL's github is currently like telling your problems
to a congressman, or a black hole. We're looking to fix that, but no one
gets notified of those posts at the moment.

-Greg

*From: *Philip Schwarz <[email protected]>

*Date: *April 5, 2018 8:35:45 AM PDT

by the way, someone has run into this problem in the past:
https://github.com/NREL/Radiance/issues/17

Philip

On 5 April 2018 at 16:34, Philip Schwarz <philip.johann.schwarz@ > googlemail.com> wrote:

Hello,

when I run 'makeall install' against release 5.0 of Radiance (
https://github.com/NREL/Radiance/releases/tag/5.0),
file src/rt/Version.c is automatically generated, with the following
contents:

RADIANCE 5.0

Thu Apr 5 13:38:59 UTC 2018

root

6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation
errors at the bottom of this email. The problem seems to be the dot in
'5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the
content of Version.c, and which contains the following:

1s/^/char VersionID[]="/

2s/^/ lastmod /

3s/^/ by /

4s/^/ on /

1,$j

1s/$/";/

1i

/*

* This file was created automatically during make.

*/

.

w

q

Is there something sort-term that I can do to prevent this from
happening?

If not, is it the case that this is just a minor error that can be
ignored and doesn't prevent Radiance from being correctly installed and
ready for use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o
pmaptype.c

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o
Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer
constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
-DDEVPATH=\"/home/radiance/bin\" -c -o viewbeams.o viewbeams.c

cp ../rt/Version.c .

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
-DDEVPATH=\"/home/radiance/bin\" -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer
constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c

cp ../rt/Version.c .

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o
Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer
constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

===============================================================

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev

@Greg

this is what your Version.c file should look like in the end

That works.

Great.

Thanks.

Philip

···

On 5 April 2018 at 16:46, Gregory J. Ward <[email protected]> wrote:

Incidentally, this is what your Version.c file should look like in the
end. If you create this in your src/rt directory, everything should
compile from there. Would like to get makeall working right, though:

/*
* This file was created automatically during make.
*/

char VersionID[]="RADIANCE 5.2a lastmod Fri Feb 16 10:37:53 PST 2018 by
gward on photon";

--------
-G

*From: *"Gregory J. Ward" <[email protected]>

*Date: *April 5, 2018 8:44:39 AM PDT

It seems like your Linux (and some others?) don't include the standard
"ed" editor or any equivalent. Can you install it?

This script could probably be converted easily enough to 'sed' or Perl,
but this is the first I've heard of the problem.

Reporting errors on NREL's github is currently like telling your problems
to a congressman, or a black hole. We're looking to fix that, but no one
gets notified of those posts at the moment.

-Greg

*From: *Philip Schwarz <[email protected]>

*Date: *April 5, 2018 8:35:45 AM PDT

by the way, someone has run into this problem in the past:
https://github.com/NREL/Radiance/issues/17

Philip

On 5 April 2018 at 16:34, Philip Schwarz <philip.johann.schwarz@ > googlemail.com> wrote:

Hello,

when I run 'makeall install' against release 5.0 of Radiance (
https://github.com/NREL/Radiance/releases/tag/5.0),
file src/rt/Version.c is automatically generated, with the following
contents:

RADIANCE 5.0

Thu Apr 5 13:38:59 UTC 2018

root

6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation
errors at the bottom of this email. The problem seems to be the dot in
'5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the
content of Version.c, and which contains the following:

1s/^/char VersionID[]="/

2s/^/ lastmod /

3s/^/ by /

4s/^/ on /

1,$j

1s/$/";/

1i

/*

* This file was created automatically during make.

*/

.

w

q

Is there something sort-term that I can do to prevent this from
happening?

If not, is it the case that this is just a minor error that can be
ignored and doesn't prevent Radiance from being correctly installed and
ready for use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o
pmaptype.c

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o
Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer
constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
-DDEVPATH=\"/home/radiance/bin\" -c -o viewbeams.o viewbeams.c

cp ../rt/Version.c .

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO
-DDEVPATH=\"/home/radiance/bin\" -c -o Version.o Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer
constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c

cp ../rt/Version.c .

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o
Version.c

*Version.c:1:10:* *error: *expected '*=*', '*,*', '*;*', '*asm*' or '
*__attribute__*' before numeric constant

RADIANCE 5.0

* ^*

*Version.c:4:1:* *error: *invalid suffix "f0749328ec2" on integer
constant

6f0749328ec2

* ^*

make: *** [Version.o] Error 1

===============================================================

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev

“ex” is a usually a substitute, though it is slightly different from “ed”.

···

--
Randolph M. Fritz, Lighting Design and Simulation
+1 206 659-8617 || [email protected] <mailto:[email protected]>

On Apr 5, 2018, at 8:44 AM, Gregory J. Ward <[email protected]> wrote:

It seems like your Linux (and some others?) don't include the standard "ed" editor or any equivalent. Can you install it?

This script could probably be converted easily enough to 'sed' or Perl, but this is the first I've heard of the problem.

Reporting errors on NREL's github is currently like telling your problems to a congressman, or a black hole. We're looking to fix that, but no one gets notified of those posts at the moment.

-Greg

From: Philip Schwarz <[email protected] <mailto:[email protected]>>
Date: April 5, 2018 8:35:45 AM PDT

by the way, someone has run into this problem in the past: https://github.com/NREL/Radiance/issues/17

Philip

On 5 April 2018 at 16:34, Philip Schwarz <[email protected] <mailto:[email protected]>> wrote:
Hello,

when I run 'makeall install' against release 5.0 of Radiance (https://github.com/NREL/Radiance/releases/tag/5.0), file src/rt/Version.c is automatically generated, with the following contents:

RADIANCE 5.0
Thu Apr 5 13:38:59 UTC 2018
root
6f0749328ec2

Version.c does not compile. It causes the 3 very similar compilation errors at the bottom of this email. The problem seems to be the dot in '5.0'.

Btw, there is a file called Verscrit.ed which seems to relate to the content of Version.c, and which contains the following:

1s/^/char VersionID[]="/
2s/^/ lastmod /
3s/^/ by /
4s/^/ on /
1,$j
1s/$/";/
1i
/*
* This file was created automatically during make.
*/

.
w
q

Is there something sort-term that I can do to prevent this from happening?

If not, is it the case that this is just a minor error that can be ignored and doesn't prevent Radiance from being correctly installed and ready for use?

Thanks,

Philip Schwarz

=== ERRORS ===========================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmaptype.o pmaptype.c
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpmain.o rpmain.c

=================================================================

gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\" -c -o viewbeams.o viewbeams.c
cp ../rt/Version.c .
gcc -I../common -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DDEVPATH=\"/home/radiance/bin\" -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1

=================================================================

gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o rpiece.o rpiece.c
cp ../rt/Version.c .
gcc -I../common -I../rt -L../lib -O2 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o Version.o Version.c
Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f0749328ec2" on integer constant
6f0749328ec2
^
make: *** [Version.o] Error 1

===============================================================

_______________________________________________
Radiance-dev mailing list
[email protected] <mailto:[email protected]>
https://www.radiance-online.org/mailman/listinfo/radiance-dev

_______________________________________________
Radiance-dev mailing list
[email protected]
https://www.radiance-online.org/mailman/listinfo/radiance-dev