| Summary: | No warning that the toolchain and machine do not match | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Laszlo Papp <lpapp> |
| Component: | devtools / tool chain | Assignee: | Laurentiu Palcu <laurentiu.palcu> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, meta.mr.watcher, meta.watcher, poky.bs.watcher, poky.watcher, ross.burton |
| Version: | 1.4 | ||
| Target Milestone: | 1.5 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Laszlo Papp
2013-07-25 06:02:41 UTC
Currently, the TARGET_PREFIX that you set is not taken into account. It's overwritten with CSL_TARGET_SYS, in tcmode-external-sourcery.inc +20. So, technically, MACHINE setting will be in sync with TARGET_PREFIX. The issue, however, is that the external toolchain does not provide a compiler for this architecture. In this case, there's already an error message printed if MACHINE is set to qemux86 for an arm toolchain: ERROR: Failed to obtain CodeSourcery toolchain version: Execution of '/home/lau/Personal/tests/ext_toolchain/CodeSourcery/Sourcery_G++_Lite/bin/i686-pc-linux-gnu-gcc -v' failed: command not found So, we can add another message to ask user to double check his MACHINE setting and the external toolchain to see that they match but it will only be redundant. There is no any redundancy. That error message is unclear, and that is why I had to spend a few days to figure it out. Surely, as I already wrote, a proper error message would have been a time saver. I would not have needed to waste a few days with it as it would have been clear right up front. Patch under review on the ML, waiting merge. Please paste a link next time in the bugreport. |