From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 12391] New: CMake-based host package fails to include output/host/include
Date: Mon, 09 Dec 2019 22:04:46 +0000 [thread overview]
Message-ID: <bug-12391-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=12391
Bug ID: 12391
Summary: CMake-based host package fails to include
output/host/include
Product: buildroot
Version: 2019.08.1
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: thirtythreeforty at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
Created attachment 8311
--> https://bugs.busybox.net/attachment.cgi?id=8311&action=edit
Work-in-progress package to replicate the issue
I am struggling to package a new version of mfgtools. My work-in-progress is
attached; ideally you can extract this into your working directory and
replicate my error.
mfgtools depends on bzlib.h while building. The compiler (/usr/bin/gcc) cannot
find the bzlib.h file, which at first doesn't make sense... it's in
output/host/include where bzip2 puts it.
/home/ghilliard/Code/buildroot/output/build/host-mfgtools-1.3.102/libuuu/buffer.cpp:43:10:
fatal error: bzlib.h: No such file or directory
#include "bzlib.h"
^~~~~~~~~
The problem is that even though Buildroot passes
-Imy/buildroot/output/host/include into CMake, CMake detects this as an
"implicit include directory" because GCC reports it as such (I think GCC
notices that it has "system" include files, but honestly I am not exactly sure
about its logic). Then, when the compiler is actually called, this include is
omitted by CMake. Without the include, the compiler doesn't implicitly include
the directory at all, and the build fails.
This hasn't been hit before because there are no bzip2-dependant host packages
in the tree that are built with CMake. I do not think this is specific to
mfgtools; rather, it will be hit by the first package that does all of the
following:
- Be a host package
- Use CMake to build
- Include a file in output/host/include, not one of its subdirectories
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2019-12-09 22:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 22:04 bugzilla at busybox.net [this message]
2020-05-19 21:26 ` [Buildroot] [Bug 12391] CMake-based host package fails to include output/host/include bugzilla at busybox.net
2020-05-20 13:47 ` bugzilla at busybox.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-12391-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox