Bug 807561

Summary: mingw-cmake error when compiling .rc
Product: [Fedora] Fedora Reporter: Ivan Romanov <drizt72>
Component: mingw32-filesystemAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: drizt72, erik-fedora, fedora-mingw, kalevlember, lfarkas, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mingw32-filesystem-69-5.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-15 23:54:24 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:
Attachments:
Description Flags
rc test project none

Description Ivan Romanov 2012-03-28 07:20:59 UTC
Created attachment 573252 [details]
rc test project

I am compiling my cmake project but am geting the error with i686-pc-mingw32-windres. The project has a integrated icon.

I wrote a test project to check compiling with integrated icon. Below output of compiling this project.

[taurus@lix rctest]$ mingw32-cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/i686-pc-mingw32-gcc
-- Check for working C compiler: /usr/bin/i686-pc-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/i686-pc-mingw32-g++
-- Check for working CXX compiler: /usr/bin/i686-pc-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
CMake Warning: The variable, 'BUILD_SHARED_LIBS', specified manually, was not used during the generation.
CMake Warning: The variable, 'CMAKE_INSTALL_LIBDIR', specified manually, was not used during the generation.
CMake Warning: The variable, 'INCLUDE_INSTALL_DIR', specified manually, was not used during the generation.
CMake Warning: The variable, 'LIB_INSTALL_DIR', specified manually, was not used during the generation.
CMake Warning: The variable, 'SHARE_INSTALL_PREFIX', specified manually, was not used during the generation.
CMake Warning: The variable, 'SYSCONF_INSTALL_DIR', specified manually, was not used during the generation.
-- Build files have been written to: /home/taurus/devel/rctest
[taurus@lix rctest]$ make
/usr/bin/cmake -H/home/taurus/devel/rctest -B/home/taurus/devel/rctest --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/taurus/devel/rctest/CMakeFiles /home/taurus/devel/rctest/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/taurus/devel/rctest'
make -f CMakeFiles/rctest.dir/build.make CMakeFiles/rctest.dir/depend
make[2]: Entering directory `/home/taurus/devel/rctest'
cd /home/taurus/devel/rctest && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/taurus/devel/rctest /home/taurus/devel/rctest /home/taurus/devel/rctest /home/taurus/devel/rctest /home/taurus/devel/rctest/CMakeFiles/rctest.dir/DependInfo.cmake --color=
Scanning dependencies of target rctest
make[2]: Leaving directory `/home/taurus/devel/rctest'
make -f CMakeFiles/rctest.dir/build.make CMakeFiles/rctest.dir/build
make[2]: Entering directory `/home/taurus/devel/rctest'
/usr/bin/cmake -E cmake_progress_report /home/taurus/devel/rctest/CMakeFiles 1
[ 50%] Building CXX object CMakeFiles/rctest.dir/main.cpp.obj
/usr/bin/i686-pc-mingw32-g++    -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields    -o CMakeFiles/rctest.dir/main.cpp.obj -c /home/taurus/devel/rctest/main.cpp
/usr/bin/cmake -E cmake_progress_report /home/taurus/devel/rctest/CMakeFiles 2
[100%] Building RC object CMakeFiles/rctest.dir/rctest.rc.res
/usr/bin/i686-pc-mingw32-windres    /foCMakeFiles/rctest.dir/rctest.rc.res /home/taurus/devel/rctest/rctest.rc
/usr/bin/i686-pc-mingw32-windres: '/foCMakeFiles/rctest.dir/rctest.rc.res': No such file
/usr/bin/i686-pc-mingw32-windres: can't open `/foCMakeFiles/rctest.dir/rctest.rc.res' for input
make[2]: *** [CMakeFiles/rctest.dir/rctest.rc.res] Error 1
make[2]: Leaving directory `/home/taurus/devel/rctest'
make[1]: *** [CMakeFiles/rctest.dir/all] Error 2
make[1]: Leaving directory `/home/taurus/devel/rctest'
make: *** [all] Error 2

I get this on F15. F16 hasn't such error. On F16 compiling works nice.
I've attached test project.

I've applied deciding for F15 package from https://bugzilla.redhat.com/show_bug.cgi?id=652435#c5. Also I've applied this patch to F16 branch. It should be reverted.

Comment 1 Fedora Update System 2012-03-28 18:40:59 UTC
mingw32-filesystem-69-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/mingw32-filesystem-69-5.fc15

Comment 2 Fedora Update System 2012-03-31 03:03:34 UTC
Package mingw32-filesystem-69-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mingw32-filesystem-69-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4982/mingw32-filesystem-69-5.fc15
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-04-15 23:54:24 UTC
mingw32-filesystem-69-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.