Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634552 - media-gfx/rawtherapee-5.3 error: unrecognized command line option ‘-03’
Summary: media-gfx/rawtherapee-5.3 error: unrecognized command line option ‘-03’
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Francesco Riosa
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 16:46 UTC by Vit Pelcak
Modified: 2017-10-19 08:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2017-10-17 16:46:57 UTC
Emerge suggests to use:

 * upstream suggest using {C,CXX}FLAGS+="-O3" for better performances
 * see bug#606896#c2

However build fails with:
  Building C object CMakeFiles/cmTC_66d0a.dir/testCCompiler.c.o                                                                                                                                                                             
                                                                                                                                                                                                                                            
  /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -march=native -ggdb -O2 -pipe -03                                                                                                                                                               
  -o CMakeFiles/cmTC_66d0a.dir/testCCompiler.c.o -c                                                                                                                                                                                         
  /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeTmp/testCCompiler.c                                                                                                                                 

  x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-03’

In /etc/portage/package.env:
media-gfx/rawtherapee cxx03.conf

In  /etc/portage/env/cxx03.conf:
CFLAGS="${CFLAGS} -03"
CXXFLAGS="${CXXFLAGS} -03"

Is this wrong? It was working as far as 5.2.

Full log:

>>> Emerging (1 of 1) media-gfx/rawtherapee-5.3::gentoo
 * rawtherapee-5.3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking rawtherapee-5.3.tar.xz to /var/tmp/portage/media-gfx/rawtherapee-5.3/work
>>> Source unpacked in /var/tmp/portage/media-gfx/rawtherapee-5.3/work
>>> Preparing source in /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build"
cmake -C /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DOPTION_OMP=yes -DDOCDIR=/usr/share/doc/rawtherapee-5.3 -DCREDITSDIR=/usr/share/rawtherapee -DLICENCEDIR=/usr/share/rawtherapee -DCACHE_NAME_SUFFIX= -DWITH_SYSTEM_KLT=off -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/gentoo_toolchain.cmake  /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3
loading initial cache file /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/gentoo_common_config.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "/usr/bin/x86_64-pc-linux-gnu-gcc" is not able to compile a
  simple test program.
                                                                                                                                                                                                                                            
  It fails with the following output:                                                                                                                                                                                                       
                                                                                                                                                                                                                                            
   Change Dir: /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeTmp                                                                                                                                    
                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                            
  Run Build Command:"/usr/bin/gmake" "cmTC_66d0a/fast"                                                                                                                                                                                      
                                                                                                                                                                                                                                            
  /usr/bin/gmake -f CMakeFiles/cmTC_66d0a.dir/build.make                                                                                                                                                                                    
  CMakeFiles/cmTC_66d0a.dir/build                                                                                                                                                                                                           
                                                                                                                                                                                                                                            
  gmake[1]: Vstupuje se do adresáře                                                                                                                                                                                                         
  „/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeTmp“                                                                                                                                               
                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                            
  Building C object CMakeFiles/cmTC_66d0a.dir/testCCompiler.c.o                                                                                                                                                                             
                                                                                                                                                                                                                                            
  /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -march=native -ggdb -O2 -pipe -03                                                                                                                                                               
  -o CMakeFiles/cmTC_66d0a.dir/testCCompiler.c.o -c                                                                                                                                                                                         
  /var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeTmp/testCCompiler.c                                                                                                                                 


  x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-03’

  gmake[1]: *** [CMakeFiles/cmTC_66d0a.dir/build.make:66:
  CMakeFiles/cmTC_66d0a.dir/testCCompiler.c.o] Chyba 1

  gmake[1]: Leaving directory
  „/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeTmp“


  gmake: *** [Makefile:126: cmTC_66d0a/fast] Chyba 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:15 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build/CMakeFiles/CMakeError.log".
 * ERROR: media-gfx/rawtherapee-5.3::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3057:  Called cmake-utils_src_configure
 *   environment, line  894:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/rawtherapee-5.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/rawtherapee-5.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/rawtherapee-5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/rawtherapee-5.3/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build'
 * S: '/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3'

>>> Failed to emerge media-gfx/rawtherapee-5.3, Log file:

>>>  '/var/tmp/portage/media-gfx/rawtherapee-5.3/temp/build.log'

 * Messages for package media-gfx/rawtherapee-5.3:

 * upstream suggest using {C,CXX}FLAGS+="-O3" for better performances
 * see bug#606896#c2
 * take a look at https://wiki.gentoo.org/wiki//etc/portage/package.env
 * for suggestion on how to change environment for a single package

 * Messages for package media-gfx/rawtherapee-5.3:

 * ERROR: media-gfx/rawtherapee-5.3::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_configure
 *   environment, line 3057:  Called cmake-utils_src_configure
 *   environment, line  894:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/rawtherapee-5.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/rawtherapee-5.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/rawtherapee-5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/rawtherapee-5.3/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3_build'
 * S: '/var/tmp/portage/media-gfx/rawtherapee-5.3/work/rawtherapee-5.3'
Comment 1 Jonas Stein gentoo-dev 2017-10-19 07:53:28 UTC
Thank you for the report. Please *attach* the logfiles next time
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
Comment 2 Francesco Riosa 2017-10-19 08:27:31 UTC
hi,
  it's "-O3" where "O" is a capitalized letter "o", not "0" the number