Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542932 - games-board/stockfish-6-r1 does not respect CC
Summary: games-board/stockfish-6-r1 does not respect CC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2015-03-11 16:15 UTC by Nikoli
Modified: 2016-08-25 00:06 UTC (History)
1 user (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 Nikoli 2015-03-11 16:15:57 UTC
>>> Compiling source in /var/tmp/portage/games-board/stockfish-6-r1/work/stockfish-6-src/src ...
make -j9 build ARCH=x86-64-modern debug=no optimize=yes 
make ARCH=x86-64-modern COMP=gcc config-sanity
make[1]: Entering directory '/var/tmp/portage/games-board/stockfish-6-r1/work/stockfish-6-src/src'

Config:
debug: 'no'
optimize: 'yes'
arch: 'x86_64'
bits: '64'
prefetch: 'yes'
bsfq: 'yes'
popcnt: 'yes'
sse: 'yes'
pext: 'no'

Flags:
CXX: g++
CXXFLAGS: -march=corei7-avx -O2 -pipe -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto
LDFLAGS: -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed  -lpthread -march=corei7-avx -O2 -pipe -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto  -lpthread -march=corei7-avx -O2 -pipe -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto

Testing config sanity. If this fails, try 'make help' ...

make[1]: Leaving directory '/var/tmp/portage/games-board/stockfish-6-r1/work/stockfish-6-src/src'
make ARCH=x86-64-modern COMP=gcc all
make[1]: Entering directory '/var/tmp/portage/games-board/stockfish-6-r1/work/stockfish-6-src/src'
g++ -march=corei7-avx -O2 -pipe -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o benchmark.o benchmark.cpp
g++ -march=corei7-avx -O2 -pipe -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto -Wall -Wcast-qual -fno-exceptions -fno-rtti  -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -msse3 -mpopcnt -DUSE_POPCNT -flto   -c -o bitbase.o bitbase.cpp
Comment 1 Michael Orlitzky gentoo-dev 2016-08-25 00:06:01 UTC
I think I fixed this with a hack... this package has a whitelist of compilers that it will accept but I tricked it into thinking we're Travis CI so that it would use the value of $CXX that we tell it to. Let me know if you run into any  problems.

commit 81b7f2c2f3cccfa1d8d51eab895d2bc2b52526d5
Author: Michael Orlitzky <mjo@gentoo.org>
Date:   Wed Aug 24 19:54:16 2016 -0400

    games-board/stockfish: new version 7 that respects $CC; remove old ones.

    There is a new version of this that compiles fine with the existing
    ebuilds. But the build system for this package has a whitelist of
    compilers that makes it hard to get it to respect $CC. Fortunately,
    there's a hack in the makefile to allow the package to build with
    Travis CI, and we can hijack it to force our compiler of choice to be
    used.

    The version 6 ebuilds have been removed, since they were never
    stabilized.

    Gentoo-Bug: 542932

    Package-Manager: portage-2.2.28