1. Are EuBins supposed to be functional builds?
- Posted by bugmagnet Oct 11, 2015
- 2111 views
The reason I ask is that I downloaded eubin-2015-10-11-16462e686646+.zip from /eubins/windows/4.1.0/64-bit. euc and eui run okay when lauched without parameters but do nothing when given a script to work through, viz
>type bin.ex
include std/math.e
include std/convert.e
function Bin(integer n, sequence s = "")
if n > 0 then
return Bin(floor(n/2),(mod(n,2) + #30) & s)
end if
if length(s) = 0 then
return to_integer("0")
end if
return to_integer(s)
end function
printf(1, "%d\n", Bin(0))
printf(1, "%d\n", Bin(5))
printf(1, "%d\n", Bin(50))
printf(1, "%d\n", Bin(9000))
>euc
Euphoria to C Translator v4.1.0 development
64-bit Windows, Using System Memory
Revision Date: 2015-10-08 00:27:52, Id: 6386:16462e686646
ERROR: Must specify the file to be translated on the command line
>eui
Euphoria Interpreter v4.1.0 development
64-bit Windows, Using System Memory
Revision Date: 2015-10-08 00:27:52, Id: 6386:16462e686646
ERROR: Must specify the file to be interpreted on the command line
>eui bin.ex
>euc -con -gcc bin.ex
Build directory: build-817666\
2. Re: Are EuBins supposed to be functional builds?
- Posted by ne1uno Oct 12, 2015
- 2098 views
The reason I ask is that I downloaded eubin-2015-10-11-16462e686646+.zip from /eubins/windows/4.1.0/64-bit. euc and eui run okay when lauched without parameters but do nothing when given a script to work through
I haven't tried a recent eubins, I can't test the 64 bit version. not sure if this is the problem, you need to have some matching files in the include directory at least. there probably should be a readme generated with a link to download the source from hg. get the matching version from the SCM link http://scm.openeuphoria.org/
3. Re: Are EuBins supposed to be functional builds?
- Posted by jimcbrown (admin) Oct 12, 2015
- 2532 views
The reason I ask is that I downloaded eubin-2015-10-11-16462e686646+.zip from /eubins/windows/4.1.0/64-bit. euc and eui run okay when lauched without parameters but do nothing when given a script to work through
I tried all eubins for 64bit Windoze up to the first 2015 eubin, and they all failed the same way.
There's something wrong with the scanner. I tried running buzz.ex and it failed on both 64bit Windoze and 64bit Linux/GNU.
However, as a workaround, I was able to get this working on both by changing std/mathcons.e
Change
TWOPI = 6.28318_53071_79586_47692,
to
TWOPI = 2*PI,
Change
LN10 = 2.30258_50929_94045_68401,
to
LN10 = log(10),
And finally, change
RADIANS_TO_DEGREES = 57.29577_95130_82320_90712,
to
RADIANS_TO_DEGREES = 180 / PI,
It looks like this is related to the recent fenv / floating point changes, as I was able to get 64bit Linux/GNU to work with an unmodified std/mathcons.e by instead changing std/fenv.e to disable it (making sure that the C routine ids were always -1).

