Bug 539127
| Summary: | cmake-2.8.0 changes "-Dfoo" to just "foo" when passing wx-config --cflags output to gcc | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | FTBFS <ftbfs> | ||||||||||||||
| Component: | vavoom | Assignee: | Hans de Goede <hdegoede> | ||||||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||
| Severity: | high | Docs Contact: | |||||||||||||||
| Priority: | high | ||||||||||||||||
| Version: | rawhide | CC: | dtimms, hdegoede, orion, pertusus, rdieter | ||||||||||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||||||||||
| Target Release: | --- | ||||||||||||||||
| Hardware: | All | ||||||||||||||||
| OS: | Linux | ||||||||||||||||
| URL: | http://linux.dell.com/files/fedora/FixBuildRequires/mock-results/ | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||
| Last Closed: | 2009-11-20 18:25:21 UTC | Type: | --- | ||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||
| Embargoed: | |||||||||||||||||
| Bug Depends On: | |||||||||||||||||
| Bug Blocks: | 538681 | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
FTBFS
2009-11-19 16:54:06 UTC
Setting to ASSIGNED per Fedora Bug Triage workflow. https://fedoraproject.org/wiki/BugZappers/BugStatusWorkFlow Created attachment 371760 [details]
root.log
root.log for i386
Created attachment 371761 [details]
build.log
build.log for i386
Created attachment 371762 [details]
mock.log
mock.log for i386
Created attachment 371763 [details]
root.log
root.log for x86_64
Created attachment 371764 [details]
build.log
build.log for x86_64
Created attachment 371765 [details]
mock.log
mock.log for x86_64
The problem with vavoom not building from source, is that even though wx-config outputs this:
[hans@localhost F-12]$ wx-config --cflags
-I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread
cmake-2.8.0 invokes gcc like this:
cd /home/hans/projects/fedora/vavoom/devel/vavoom-1.30/utils/vlaunch && /usr/lib64/ccache/c++ -DHAVE_INTTYPES_H=1 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 _FILE_OFFSET_BITS=64 _LARGE_FILES __WXGTK__ -o CMakeFiles/vlaunch.dir/vlaunch.o -c /home/hans/projects/fedora/vavoom/devel/vavoom-1.30/utils/vlaunch/vlaunch.cpp
c++: _FILE_OFFSET_BITS=64: No such file or directory
c++: _LARGE_FILES: No such file or directory
c++: __WXGTK__: No such file or directory
In file included from /usr/include/wx-2.8/wx/wxprec.h:13,
from /home/hans/projects/fedora/vavoom/devel/vavoom-1.30/utils/vlaunch/vlaunch.cpp:28:
/usr/include/wx-2.8/wx/defs.h:42:13: error: #error "No Target! You should use wx-config program for compilation flags!"
<snip lots more errors>
Notice how all the "-Dfoo" options in the wx-config --cflags output have become
just "foo" when passed to gcc.
To reproduce this install the cmake 2.8.0 packages from dist-f13 and then try to build vavoom.
This is apparently a designed change in upstream. See the cmake mailing list for details. vavoom needs to change to use "UsewxWidgets.cmake" rather than "FindwxWidgets.cmake". Orion, thanks for the info. This is fixex in vavoom-1.30-4.fc13, closing. |