question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello World causes ICE with ARM CL 2017 RTW

See original GitHub issue

https://godbolt.org/g/EgLvH1

#include <iostream>

int main() {
  std::cout << "Hello, World";
}
example.cpp
/opt/compiler-explorer/windows/10.0.10240.0/ucrt/corecrt.h(205): fatal error C1189: #error:  Compiling Desktop applications for the ARM platform is not supported.
Internal Compiler Error in Z:\opt\compiler-explorer\windows\19.10.25017\lib\native\bin\amd64_arm\cl.exe.  You will be prompted to send an error report to Microsoft later.
INTERNAL COMPILER ERROR in 'Z:\opt\compiler-explorer\windows\19.10.25017\lib\native\bin\amd64_arm\cl.exe'
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for ARM
Copyright (C) Microsoft Corporation.  All rights reserved.
Compiler exited with result code 2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ggaelcommented, Apr 24, 2018

I ran into the same problem. Simply including:

#include <type_traits>

or any standard header is enough to trigger the compilation error.

After digging a bit, passing the following option does the job:

/D _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
0reactions
pps83commented, Mar 28, 2018

To compile for arm you’d need -DWINAPI_FAMILY=WINAPI_FAMILY_APP, but then you get 'winapifamily.h': No such file or directory which should be present.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hello World causes ICE with ARM CL 2017 RTW · Issue #338 ...
Interesting. We don't support desktop applications on ARM32 so this could very well be intentional. It's not a great user experience to ICE,...
Read more >
Developers - Hello World causes ICE with ARM CL 2017 RTW -
Coming soon: A brand new website interface for an even better experience!
Read more >
Failed to debug hello world project on Cortex-A76
I'm trying to debug a hello-world C project following the tutorial developer.arm.com/.../Tutorial--Hello-World on FVP Cortex-A76. The program ...
Read more >
Guidelines for concussion/mild traumatic brain injury and ...
The recommendations and resources found within the Guideline for Concussion/. mTBI & Prolonged Symptoms are intended to inform and instruct care ...
Read more >
Tkj - River Thames Conditions - Environment Agency - GOV.UK
Waiting for 22 queensryche lyrics, Deltagen tutorial, Harmonics flooring camden ... Geffrye museum linkedin, Kill body odor causing bacteria, School and the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found