Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Erro ao compilar glide-v3
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
macroney
n00b
n00b


Joined: 10 May 2004
Posts: 27
Location: Belford-Roxo - RJ - Brazil

PostPosted: Fri Sep 30, 2005 5:52 pm    Post subject: Erro ao compilar glide-v3 Reply with quote

Tenho um computador com processador AMD k6-II 500, com a placa de video Voodoo3 3000.
No meu /etc/make.conf a variável CFLAGS está configurada da seguinte forma:

CFLAGS="-mcpu=k6-2 -O3 -pipe"

Na hora de compilar o glide, ele usa a flag "m486" ou invés de k6-2, e dá o seguinte erro:

../../../../h3/glide3/src/xdraw2.S:335:1: warning: "LOCAL" redefined
../../../../h3/glide3/src/xdraw2.S:311:1: warning: this is the location of the previous definition
/bin/sh ../../../libtool --mode=compile gcc -c -o xdraw2_3dnow.o xdraw2_3dnow.tmp.S
gcc -c xdraw2_3dnow.tmp.S -fPIC -DPIC -o .libs/xdraw2_3dnow.o
../../../../h3/glide3/src/xdraw2.inc.S: Assembler messages:
../../../../h3/glide3/src/xdraw2.inc.S:815: Error: Macro with this name was already defined
../../../../h3/glide3/src/xdraw2.inc.S:815: Error: Macro with this name was already defined
../../../../h3/glide3/src/xdraw2.inc.S:815: Error: Macro with this name was already defined
make[3]: ** [xdraw2_3dnow.lo] Erro 1
make[3]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3/glide3/src'
make[2]: ** [all-recursive] Erro 1
make[2]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3/glide3'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/h3'
make: ** [all-recursive] Erro 1

!!! ERROR: media-libs/glide-v3-3.10-r4 failed.
!!! Function src_compile, Line 69, Exitcode 2
!!! build.3dfx failed
!!! If you need support, post the topmost build error, NOT this status message.


se adicionarmos o parâmetro "alpha" na variável "USE", ele passa usar a flag k6-II, mas continua a dar o mesmo erro.






No arquivo "/usr/portage/media-libs/glide-v3/glide-v3-3.10-r4.ebuild" a função src_compile
é essa:

src_compile() {
local compilefor=
use voodoo3 \
&& compilefor="h3" \
|| compilefor="h5"
mkdir build
cd build
../configure \
--prefix=/usr \
--enable-fx-glide-hw=${compilefor} \
--enable-fx-dri-build \
`use_enable 3dnow amd3d` \
|| die "configure failed"

# On alpha at least, glide incorrectly guesses 486 processor.
# Fixup the makefiles.
if use alpha; then
find . -type f | xargs grep -le -m486 | \
xargs sed -i -e "s|-m486|${CFLAGS}|"
fi

make -f makefile.autoconf all || die "build.3dfx failed"
}




Porém "alpha" não está descrito no use.desc e não sei se isso é válido.


Agradeço a quem puder ajudar!!!
_________________
""Nada nunca acontece se você não aparece""
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Fri Sep 30, 2005 6:41 pm    Post subject: Reply with quote

It is a bug (https://bugs.gentoo.org/show_bug.cgi?id=55944), you must compile it without 3dnow support:

USE="-3dnow" emerge glide-v3

It should work

Saludos ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese 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