Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Compiling 5.1 on linux #17

Open
rgsouthall opened this issue Aug 31, 2017 · 7 comments
Open

Compiling 5.1 on linux #17

rgsouthall opened this issue Aug 31, 2017 · 7 comments
Assignees

Comments

@rgsouthall
Copy link

Hello.
I am trying to compile 5.1 on a 64bit Arch linux system but the get the following error for some of the binaries which then don't get compiled. It seems Version.c files end up with strings containing version, data, host name and user which gcc does not like.

Version.c:1:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before numeric constant
RADIANCE 5.1
^~~

Regards
Ryan

@rpg777 rpg777 self-assigned this Apr 2, 2018
@rpg777
Copy link
Contributor

rpg777 commented Apr 2, 2018

Cannot duplicate

@rpg777 rpg777 closed this as completed Apr 2, 2018
@philipjss
Copy link

@rgsouthall @rpg777 Hello, I get the same error compiling 5.0:

Version.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
 RADIANCE 5.0
          ^
Version.c:4:1: error: invalid suffix "f836a233c1" on integer constant
 40f836a233c1
 ^

@philipjss
Copy link

It looks like file src/rt/Version.c is automatically generated at compilation time.

Should I consider the build to have failed If I get that error, or does it only indicate a minor problem that can be ignored for all intents and purposes, i.e. Radiance is ready to use?

@philipjss
Copy link

Here are the errors I see in the console output:

make: *** [clean] Error 2
...
( cat VERSION ; date ; whoami ; hostname ) > Version.c
ed - Version.c < verscript.ed
/bin/sh: ed: command not found
make: *** [Version.c] Error 127
...
make: Target `install' not remade because of errors.
...
/usr/bin/ld: cannot find -lradiance
collect2: error: ld returned 1 exit status
make: *** [mkillum] Error 1
...
/usr/bin/ld: cannot find -lradiance
collect2: error: ld returned 1 exit status
make: *** [mksource] Error 1
...
make: *** [../lib/libtiff.a] Error 2
...
make: Target `install' not remade because of errors.
/home/radiance/src 
/home/radiance/src/
...
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 "f836a233c1" on integer constant
 40f836a233c1
 ^
make: *** [Version.o] Error 1
...
-lraycalls -lradiance -lrtrad -lm
/usr/bin/ld: cannot find -lradiance
collect2: error: ld returned 1 exit status
make: *** [ranimove] Error 1
...
-lraycalls -lradiance -lrtrad -lm
/usr/bin/ld: cannot find -lradiance
collect2: error: ld returned 1 exit status
make: *** [rsensor] Error 1
...
make: Target `install' not remade because of errors.
make: warning:  Clock skew detected.  Your build may be incomplete.
/home/radiance/src 
...
There were some errors.

@rpg777
Copy link
Contributor

rpg777 commented Apr 5, 2018

Thanks for adding the stdout. Discussion brewing on radiance-dev. Will reopen the issue pending a resolution to the version string macro.

@rpg777 rpg777 reopened this Apr 5, 2018
@anoback
Copy link

anoback commented May 19, 2018

I had the same error in Debian stretch. It is a missing dependency. The editor "ed" is not installed automatically as in former versions:
... ed - Version.c < verscript.ed /bin/sh: ed: command not found" ...

@AdamWillz
Copy link

The workaround I was able to come up with was to manually create src/rt/Version.c. The file I made is a one liner: char VersionID[]="RADIANCE 5.2";

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants