[PD-dev] help me find how I'm compiling Pd wrong for macOS

Christof Ressi info at christofressi.com
Fri May 29 11:03:38 CEST 2020


> And out of sheer magic (at least to my eyes) a Pd app appears from 
> nothing to me...
What do you mean? Did "make app" not work for you before?

> The issue I'm having might be related to casting float to int
Yes, I think so too. https://github.com/pure-data/pure-data/issues/927 
shows -2147483647 for a large line number input, which is typical result 
of signed integer overflow being undefined behavior. BUT the code of 
[text insert] has the following line

lineno = (x->x_f1 > (double)0x7fffffff ? 0x7fffffff : x->x_f1);

which is supposed to prevent the overflow issue... So to be honest, I 
have to no idea what's going on... Let's continue the discussion on the 
GitHub issue.

Christof

On 29.05.2020 02:47, Alexandre Torres Porres wrote:
> Hi, now that Pd 0.51-0-test1 is out I can confirm I'm compiling Pd wrong.
>
> I've been using the yet to be 51 since december and opened two issues 
> on github thinking the problem was 0.51, but it happens only when I 
> compile Pd. For reference, the issues are:
> - https://github.com/pure-data/pure-data/issues/848
> - and https://github.com/pure-data/pure-data/issues/927
>
> The issue I'm having might be related to casting float to int but I 
> wouldn't know how I could fix this by compiling Pd in a different way. 
> Maybe more details are on the issues above, please check them.
>
> I'm just doing what I've been doing in order to compile Pd for a few 
> years now, I do:
>
> ./autogen.sh
>
> ./configure
> make
>
> make app
>
>
>
> And out of sheer magic (at least to my eyes) a Pd app appears from 
> nothing to me...
>
>
> cheers
>
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20200529/3c84e4c7/attachment.html>


More information about the Pd-dev mailing list