Group Abstract Group Abstract

Message Boards Message Boards

'SystemModelSimulate' as part of Wolfram Desktop Version-12 gives error!

Posted 5 years ago
POSTED BY: Vijay Sharma
8 Replies

Vijay,

I thought you already followed Ankit's suggestion of manually configuring the compiler, but now when I read the log output again it seems that hasn't been done successfully. The isysroot argument is wrong here.

 "Log" -> {"\"/Applications/Xcode.app/Contents/Developer/Toolchains/\
XcodeDefault.xctoolchain/usr/bin/clang++\" -isysroot \
\"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.\
platform/Developer/SDKs/DriverKit19.0.sdk\" -m64 -stdlib=libc++ -fPIC \

SystemModeler 12.0 cannot detect Xcode11 correctly so you need to configure it manually (or upgrade to SystemModeler 12.1) You should follow the instructions on this support page https://support.wolfram.com/48717.

Otto

POSTED BY: Otto Tronarp

Otto,

I did the insall of xcode through above command and still the verify compiler is failing! Any tips further here?

POSTED BY: Vijay Sharma

Start Xcode as Mike suggests and see if it wants/needs to install any updates or if you ned to accept the license. If that doesn't help you can always try and install the command line tools instead. In a terminal run:

xcode-select --install

Otto

POSTED BY: Otto Tronarp
Posted 5 years ago

In the past when I have had similar issues, I have sometimes been able to fix it by "accepting the xcode license". You can do that either through the UI (by running xcode) or at the command line using:

sudo xcodebuild -license

and following the directions.

I usually have to accept the license with every new release of xcode.

Good luck.

POSTED BY: Mike Besso
POSTED BY: Vijay Sharma

Since you are on macOS, XCode is what you should be using. Visual Studio is only for Windows. You say it fails when running:

SystemModelConfiguration`VerifyCompiler[]

What result are you getting from that command? It should include the logs from the verification, which should tell us more about what isn't working.

POSTED BY: Malte Lenz

Thank you, Ankit! I tried the above command and the reference document procedure. But still, the compiler is not getting configured correctly. I do have Xcode installed.

When I run this: SystemModelConfiguration`VerifyCompiler[] it fails.

Should I switch to VScode?

POSTED BY: Vijay Sharma

Hi Vijay,

It looks like a compiler issue.

Can you try to evaluate the following command and see if it fixes your problem:

SystemModel;
opts=SystemModelConfiguration`ListCompilers[]
newopts=Replace[opts[[1]],Verbatim[Rule]["PlatformSDKPath",_]"PlatformSDKPath"->"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk",{1}]
SystemModelConfiguration`SetConfiguration["Compiler",newopts]

Here are some references: https://reference.wolfram.com/language/tutorial/CompilerForSystemModeling.html https://support.wolfram.com/48717

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