Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

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: vavoomAssignee: Hans de Goede <hdegoede>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: 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 Flags
root.log
none
build.log
none
mock.log
none
root.log
none
build.log
none
mock.log none

Description FTBFS 2009-11-19 16:54:06 UTC
vavoom-1.30-3.fc12.src.rpm Failed To Build From Source against the rawhide tree.  See http://fedoraproject.org/wiki/FTBFS for more information.

Comment 1 FTBFS 2009-11-19 16:54:10 UTC
Setting to ASSIGNED per Fedora Bug Triage workflow.  https://fedoraproject.org/wiki/BugZappers/BugStatusWorkFlow

Comment 2 FTBFS 2009-11-19 16:54:14 UTC
Created attachment 371760 [details]
root.log

root.log for i386

Comment 3 FTBFS 2009-11-19 16:54:16 UTC
Created attachment 371761 [details]
build.log

build.log for i386

Comment 4 FTBFS 2009-11-19 16:54:17 UTC
Created attachment 371762 [details]
mock.log

mock.log for i386

Comment 5 FTBFS 2009-11-19 16:54:19 UTC
Created attachment 371763 [details]
root.log

root.log for x86_64

Comment 6 FTBFS 2009-11-19 16:54:21 UTC
Created attachment 371764 [details]
build.log

build.log for x86_64

Comment 7 FTBFS 2009-11-19 16:54:23 UTC
Created attachment 371765 [details]
mock.log

mock.log for x86_64

Comment 8 Hans de Goede 2009-11-19 21:54:02 UTC
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.

Comment 9 Orion Poplawski 2009-11-19 22:12:05 UTC
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".

Comment 10 Hans de Goede 2009-11-20 18:25:21 UTC
Orion, thanks for the info.

This is fixex in vavoom-1.30-4.fc13, closing.