Wind River Support Network

HomeDefectsLIN5-1776
Fixed

LIN5-1776 : wrlinux 5.0.1 - -Wpoison-system-directories option

Created: Jun 28, 2013    Updated: Dec 19, 2017
Resolved Date: Jul 30, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.6
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Toolchain

Description

When doing native compilation on the target, similar warnings are encountered due to missing -Wno-poison-system-directoriesflag from the toolchain.

cc1: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation [-Wpoison-system-directories]
cc1: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation [-Wpoison-system-directories]

Workaround

specify: -Wno-poison-system-directories

Steps to Reproduce

build a wrlinux 5.0.1 project and deploy it on the target.
compile the attached testcase

Other Downloads


Live chat
Online