Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure when using XCC toolchain #13710

Closed
sathishkuttan opened this issue Feb 24, 2019 · 1 comment · Fixed by #13675
Closed

Build failure when using XCC toolchain #13710

sathishkuttan opened this issue Feb 24, 2019 · 1 comment · Fixed by #13675
Labels
area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@sathishkuttan
Copy link
Collaborator

Describe the bug
With commit 9c2ac77, XCC is invoked with -nostdinc flag and this causes compilation errors. The -nostdinc flag seems to make XCC not look for header files in XtensaTools/xtensa-elf/include

To Reproduce
Steps to reproduce the behavior:

  1. cd $ZEPHYR_BASE/tests/boards/intel_s1000_crb
  2. mkdir build; cd build
  3. cmake -DBOARD=intel_s1000_crb ..
  4. make
  5. See error

Expected behavior
Build successful

Impact
Can no longer build using XCC

Screenshots or console output

../../../../../include/toolchain/xcc.h:21:32: error: xtensa/config/core.h: No such file or directory
../../../../../arch/xtensa/include/xtensa_context.h:26:34: error: xtensa/config/tie.h: No such file or directory
../../../../../arch/xtensa/include/xtensa_context.h:27:32: error: xtensa/corebits.h: No such file or directory
../../../../../arch/xtensa/include/xtensa_context.h:28:37: error: xtensa/config/system.h: No such file or directory
../../../../../arch/xtensa/include/xtensa_context.h:29:40: error: xtensa/xtruntime-frames.h: No such file or directory

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: Xtensa
  • Commit SHA or Version used: 9c2ac77

Additional context
Temporarily removing -nostdinc flag for experimentation made the build successful.

@sathishkuttan sathishkuttan added bug The issue is a bug, or the PR is fixing a bug area: Xtensa Xtensa Architecture labels Feb 24, 2019
@nashif nashif added the priority: high High impact/importance bug label Feb 24, 2019
@nashif
Copy link
Member

nashif commented Feb 24, 2019

this should fix it: #13675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants