Group Abstract Group Abstract

Message Boards Message Boards

0
|
48 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Is there an issue with Compilation in v14.3?

Posted 2 days ago

I recently upgraded to 14.3.0 for Mac OS X ARM (64-bit) (July 8, 2025).

I wanted to play with the compilation of functions again and thus started with the Compiler Manual Tutorial. The First Steps Section starts with:

func = Function[Typed[arg, "PackedArray"::["MachineInteger", 1]], 
   AllTrue[arg, # > 0 &]]; and func[{1, 2, 3, 4}]

which is fine, However, when I execute the:

comp = FunctionCompile[func]

I get the error : FunctionCompile::err1: Cannot resolve the "Complex" type constructor.
I did look briefly at compilation in v14.2, (which worked), but having upgraded to v14.3 now fails! I did not find anything about compiler setup etc. What am I missing?

POSTED BY: Karl Fraser
3 Replies
Posted 15 hours ago

The fact that it works out-of-the-box for you guys made me realise that I had obviously over tweaked!

On closer examination of my setup, I had recently created a flat Association variable (which includes a 'get' Key) for some global Options. Although the 'get' was lower case, I had not wrapped it as a String. This was silently interfering with the FunctionCompile Command. Although interestingly not the Get command itself?

Resolved now. Note to self - ensure Options are STRINGS.

Thanks Guys.

POSTED BY: Updating Name

Your code works fine for me with the same version ("14.3.0 for Mac OS X ARM (64-bit) (July 8, 2025)"). I have whatever out-of-the-box setup Mathematica provides for FunctionCompile (that is, I have not tweaked the setup in any way).

Maybe restart the kernel and retry?

POSTED BY: Michael Rogers

I ran it on my old Intel Mac and even with 14.3 I did not get any error. I am not sure whether it can be related to ARM.

POSTED BY: Daniele Gregori
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard