Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877089 - app-emulation/punes-0.109: cmake failure due to double CHOST in compiler paths
Summary: app-emulation/punes-0.109: cmake failure due to double CHOST in compiler paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-14 12:07 UTC by Michał Górny
Modified: 2022-10-14 13:25 UTC (History)
4 users (show)

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


Attachments
/var/log/portage/app-emulation:punes-0.109:20221014-104614.log (app-emulation:punes-0.109:20221014-104614.log,10.55 KB, text/plain)
2022-10-14 12:07 UTC, Michał Górny
Details
emerge --info (emerge-info.txt,7.69 KB, text/plain)
2022-10-14 12:08 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-14 12:07:25 UTC
Created attachment 824031 [details]
/var/log/portage/app-emulation:punes-0.109:20221014-104614.log

=== configuring in src/extra/lib7zip-53abfeb (/tmp/portage/app-emulation/punes-0.109/work/puNES-0.109/src/extra/lib7zip-53abfeb)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr'  '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--datarootdir=/usr/share' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/punes-0.109' '--htmldir=/usr/share/doc/punes-0.109/html' '--libdir=/usr/lib64' '--without-opengl-nvidia-cg' '--without-ffmpeg' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-march=znver2 --param=l1-cache-size=32 --param=l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' 'CXX=x86_64-pc-linux-gnu-g++' 'CXXFLAGS=-march=znver2 --param=l1-cache-size=32 --param=l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches' --cache-file=/dev/null --srcdir=.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
[31mCMake Error at CMakeLists.txt:7 (PROJECT):
  The CMAKE_C_COMPILER:

    x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

[0m
[31mCMake Error at CMakeLists.txt:7 (PROJECT):
  The CMAKE_CXX_COMPILER:

    x86_64-pc-linux-gnu-x86_64-pc-linux-gnu-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

[0m
-- Configuring incomplete, errors occurred!
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-14 12:08:04 UTC
Created attachment 824033 [details]
emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2022-10-14 13:05:56 UTC
I'll handle this.
Comment 3 Larry the Git Cow gentoo-dev 2022-10-14 13:25:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2b787f4c316e5d96c836ac7eed46d01673beee

commit dc2b787f4c316e5d96c836ac7eed46d01673beee
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-10-14 13:02:20 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-10-14 13:25:26 +0000

    app-emulation/punes: fix double CHOST + other adjustments
    
    * add several missing deps (qtnetwork:5, udev, X11/Xrandr/xorg-proto),
      lack of qtnetwork:5 caused bug #877089
    * move nvidia-cg-toolkit to RDEPEND, this is linking with its
      libraries and doesn't make sense in BDEPEND
    * prevent QA notices because of unused CMAKE_INSTALL*
    * xdg-utils -> xdg
    
    Note need to export CC="${CHOST}-gcc" to reproduce wrt #877089
    
    Closes: https://bugs.gentoo.org/877089
    Closes: https://bugs.gentoo.org/877091
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../{punes-0.109.ebuild => punes-0.109-r1.ebuild}  | 42 +++++++++++-----------
 1 file changed, 22 insertions(+), 20 deletions(-)