Comments (2)
This appears to be a result of running the scanner with the collected command line arguments in the output of the build. i.e. CDT sees g++ -c -g -MP -MMD -o example24.o /scratch/eclipse/src/cdt/runtime-CDT/example24/example24.cpp
and uses that to construct a command line to pass to g++
that contains the -MP -MMD
which has the side effect of leaving the errant -.d
file around.
This is an example of the command line:
/usr/bin/g++ -E -P -v -dD -c -g -MP -MMD -o - /scratch/eclipse/src/cdt/runtime-CDT/example24/.sc2298146184504750215.cpp
This is the relevant stacktrace that creates the above g++
process.
Daemon Thread [OutputReader] (Suspended (entry into method <init> in Process))
owns: ConsoleOutputSniffer (id=17990)
ProcessImpl(Process).<init>() line: 96
ProcessImpl.<init>(byte[], byte[], int, byte[], int, byte[], int[], boolean, boolean) line: 338
ProcessImpl.start(String[], Map<String,String>, String, Redirect[], boolean) line: 271
ProcessBuilder.start(ProcessBuilder$Redirect[]) line: 1107
ProcessBuilder.start() line: 1071
GCCToolChain.getScannerInfo(IBuildConfiguration, List<String>, Path, Path) line: 465
GCCToolChain.getScannerInfo(IBuildConfiguration, List<String>, IExtendedScannerInfo, IResource, URI) line: 384
StandardBuildConfiguration(CBuildConfiguration).processLine(String) line: 834
ConsoleOutputSniffer.processLine(String) line: 180
ConsoleOutputSniffer$ConsoleOutputStream.checkLine(boolean) line: 101
ConsoleOutputSniffer$ConsoleOutputStream.write(byte[], int, int) line: 60
ConsoleOutputSniffer$ConsoleOutputStream(OutputStream).write(byte[]) line: 122
ProcessClosure$ReaderThread.run() line: 60
from cdt.
Thanks to @EonDigital for helping identify this issue.
from cdt.
Related Issues (20)
- Migrate from javax.inject|annotation to Jakarta
- *.S files are not preprocessed in managed builds HOT 11
- Switch from "Require-Bundle: org.eclipse.osgi.services" to "Import-Package" directive HOT 1
- Adding new lines above collapsed code breaks the display of collapsed code
- std::optional is not working on Eclipse 4.30.0 HOT 4
- Invalid template Arguments for std::map in Eclipse 2023-12 with GCC version 13.2.0 HOT 5
- Improve workflow for new users when MinGW toolchain not detected HOT 2
- Terminal does not read Eclipse variables used as argument for External Executables HOT 1
- Jenkins CI failing to complete builds HOT 4
- Macro expansion for functions and function pointers
- Add compile-commands.json generation for Managed Build Projects HOT 12
- Remove Build and Clean command fields from Launch Bar Launch Configuration, Build Settings tab
- Fix resource leak warnings for org.eclipse.cdt.core.utils
- Improve localization for `org.eclipse.tools.templates.ui` bundle
- An internal error occurred during: "Launching Eclipse Application". Cannot invoke "java.util.List.stream()" because the return value of "java.util.Map.get(Object)" is null HOT 3
- Binding lookup for Constructor Call vs Method Call
- Platform APIs have been removed breaking CDT build on latest platform dependencies
- NPE after creation of new cmake project
- Enhanced static library presentation within CMake projects
- __attribute__ of declarator is missing from AST
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdt.