Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195918 - Crafty not compiled with SMP support with ${CHOST}" == "x86_64-pc-linux-gnu
Summary: Crafty not compiled with SMP support with ${CHOST}" == "x86_64-pc-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-15 07:30 UTC by HTS
Modified: 2007-12-09 10:31 UTC (History)
0 users

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 HTS 2007-10-15 07:30:52 UTC
The ebuild does not deal with x86_64-pc-linux-gnu and the build just defaults to an unoptimised version.

I noticed this because SMP support is disabled, which is quite critical.

Managed to fix it temporarily on my local machine by adding the following:

if [[ "${CHOST}" == "x86_64-pc-linux-gnu" ]] ; then
    append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
    -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
    -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
    makeopts="${makeopts} CC=gcc CXX=g++ asm=X86_64.o"

But I don't know which would the optimal settings for this arch.
Can you please have a look?

Cheers,
-Julien

Reproducible: Always
Comment 1 Tupone Alfredo gentoo-dev 2007-12-09 10:31:50 UTC
The last version in portage, 21.6, should fix this. Thanks