Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tried to fix a dependency conflict I made it worse [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 107

PostPosted: Sat Oct 26, 2013 10:47 am    Post subject: Tried to fix a dependency conflict I made it worse [SOLVED] Reply with quote

started with

Code:
emerge --pretend --update --deep world


Code:
These are the packages that would be merged, in order:

Calculating dependencies           ... done!                   
[ebuild  N     ] net-print/cups-filters-1.0.34-r1  USE="jpeg png tiff -perl -static-libs -zeroconf"

WARNING: One or more updates have been skipped due to a dependency conflict:

app-text/poppler:0

  (app-text/poppler-0.24.2::gentoo, ebuild scheduled for merge) conflicts with
    <app-text/poppler-0.24:=[cxx,jpeg,lcms,tiff,xpdf-headers(+)] required by (net-print/cups-filters-1.0.34-r1::gentoo, ebuild scheduled for merge)


which I tried to fix with
Code:
emerge -avC app-text/poppler
emerge @preserved-rebuild


but that failed to rebuild poppler

Code:
Calculating dependencies                                        ... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 3) app-text/poppler-0.24.2
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.
 * poppler-0.24.2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...            [ ok ]
>>> Unpacking source...
>>> Unpacking poppler-0.24.2.tar.xz to /var/tmp/portage/app-text/poppler-0.24.2/work
>>> Source unpacked in /var/tmp/portage/app-text/poppler-0.24.2/work
>>> Preparing source in /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2 ...
 * Detected FreeType at /usr/lib64:/usr
>>> Working in BUILD_DIR: "/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_GTK_TESTS=OFF -DBUILD_QT4_TESTS=OFF -DBUILD_QT5_TESTS=OFF -DBUILD_CPP_TESTS=OFF -DENABLE_SPLASH=ON -DENABLE_ZLIB=ON -DENABLE_XPDF_HEADERS=ON -DENABLE_LIBCURL=OFF -DENABLE_CPP=ON -DENABLE_LIBOPENJPEG=ON -DENABLE_utils=ON -DENABLE_UTILS=ON -DENABLE_Utils=ON -DWITH_cairo=ON -DWITH_CAIRO=ON -DWITH_Cairo=ON -DWITH_GObjectIntrospection=OFF -DWITH_jpeg=ON -DWITH_JPEG=ON -DWITH_Jpeg=ON -DWITH_png=ON -DWITH_PNG=ON -DWITH_Png=ON -DWITH_qt4=ON -DWITH_QT4=ON -DWITH_Qt4=ON -DWITH_QT5=OFF -DWITH_tiff=ON -DWITH_TIFF=ON -DWITH_Tiff=ON -DENABLE_CMS=lcms2 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build/gentoo_rules.cmake  /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_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:61 (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/app-text/poppler-0.24.2/work/poppler-0.24.2_build/CMakeFiles/CMakeTmp

 

  Run Build Command:/usr/bin/gmake "cmTryCompileExec1884204620/fast"

  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec1884204620.dir/build.make
  CMakeFiles/cmTryCompileExec1884204620.dir/build

  gmake[1]: Entering directory
  `/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build/CMakeFiles/CMakeTmp'


  /usr/bin/cmake -E cmake_progress_report
  /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building C object
  CMakeFiles/cmTryCompileExec1884204620.dir/testCCompiler.c.o

  /usr/bin/x86_64-pc-linux-gnu-gcc -DNDEBUG -march=k8 -O2 -pipe -o
  CMakeFiles/cmTryCompileExec1884204620.dir/testCCompiler.c.o -c
  /var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build/CMakeFiles/CMakeTmp/testCCompiler.c


   * gcc-config: Active gcc profile is invalid!

  gcc-config: error: could not run/locate 'x86_64-pc-linux-gnu-gcc'

  gmake[1]: Leaving directory
  `/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build/CMakeFiles/CMakeTmp'


  gmake[1]: *** [CMakeFiles/cmTryCompileExec1884204620.dir/testCCompiler.c.o]
  Error 1

  gmake: *** [cmTryCompileExec1884204620/fast] Error 2

 

 

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


-- Configuring incomplete, errors occurred!
 * ERROR: app-text/poppler-0.24.2::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 2901:  Called cmake-utils_src_configure
 *   environment, line  679:  Called _execute_optionaly 'src_configure'
 *   environment, line  281:  Called enable_cmake-utils_src_configure
 *   environment, line 1037:  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 '=app-text/poppler-0.24.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/poppler-0.24.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/poppler-0.24.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/poppler-0.24.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build'
 * S: '/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2'

>>> Failed to emerge app-text/poppler-0.24.2, Log file:

>>>  '/var/tmp/portage/app-text/poppler-0.24.2/temp/build.log'

 * Messages for package app-text/poppler-0.24.2:

 * ERROR: app-text/poppler-0.24.2::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 2901:  Called cmake-utils_src_configure
 *   environment, line  679:  Called _execute_optionaly 'src_configure'
 *   environment, line  281:  Called enable_cmake-utils_src_configure
 *   environment, line 1037:  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 '=app-text/poppler-0.24.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/poppler-0.24.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/poppler-0.24.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/poppler-0.24.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2_build'
 * S: '/var/tmp/portage/app-text/poppler-0.24.2/work/poppler-0.24.2'


then tried
emerge -ua --deep --newuse @world
emerge -1 -uN app-text/poppler cups-filters
emerge -1av =app-text/poppler-0.22.5
but all failed in the same way.

FYI I do not need any printing support and I thought I had removed cups before.

any idea what I can do to fix it?
what should I have done in the first place?
_________________
Linux 3.12.13-gentoo #1 SMP x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software


Last edited by bluenuht on Sat Oct 26, 2013 9:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Maitreya
Apprentice
Apprentice


Joined: 11 Jan 2006
Posts: 190

PostPosted: Sat Oct 26, 2013 11:31 am    Post subject: Reply with quote

Could you be so kind to post your info and gcc-config?

emerge wgetpaste
wgetpaste -i -c "gcc-config -l"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31349
Location: 56N 3W

PostPosted: Sat Oct 26, 2013 1:41 pm    Post subject: Reply with quote

bluenuht,
Code:
-- 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:61 (message):
  The C compiler "/usr/bin/x86_64-pc-linux-gnu-gcc" is not able to compile a
  simple test program.


Its not poppler, your gcc is broken.

The usual cause is getting a new gcc and allowing --depclean to remove the old one while it is still active.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 107

PostPosted: Sat Oct 26, 2013 8:03 pm    Post subject: Reply with quote

here is the gccconfig
http://bpaste.net/show/144139/

it does indeed say the profile is invalid.

How can i fix it?

How can I avoid it in the future?
_________________
Linux 3.12.13-gentoo #1 SMP x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31349
Location: 56N 3W

PostPosted: Sat Oct 26, 2013 8:14 pm    Post subject: Reply with quote

bluenuht,

Code:
gcc-config 1
and follow the on screen instructions.

Avoid this by selecting a new gcc before you remove the old one.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bluenuht
Tux's lil' helper
Tux's lil' helper


Joined: 01 Oct 2005
Posts: 107

PostPosted: Sat Oct 26, 2013 9:10 pm    Post subject: Reply with quote

thanks that fixed it.

Would have been helpful if gcc-config -l had noted that that was the fix after detecting no valid profiles.

do we think there should be some kind of automated safe guard on --deplclean for this specific circumstance(looking in the forums it has hit many people over many years)?
_________________
Linux 3.12.13-gentoo #1 SMP x86_64 AMD Phenom(tm) II X4 850 Processor AuthenticAMD GNU/Linux - Sapphire ATI Radeon HD 6450 - 8G DDR3
Pay for Free Open source Software
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31349
Location: 56N 3W

PostPosted: Sat Oct 26, 2013 9:25 pm    Post subject: Reply with quote

bluenuht,

You should never run --depclean without checking what will be removed first.
It removed glibc for me, a long time ago. Thats much more painful to fix.

gcc-gonfig alone is not always the fix for this. Some users have been known to remove gcc entirely.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum