Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem emerging dev-libs/libxml2-2.5.2
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
melbell
n00b
n00b


Joined: 07 Mar 2003
Posts: 10

PostPosted: Wed Mar 19, 2003 8:58 pm    Post subject: Problem emerging dev-libs/libxml2-2.5.2 Reply with quote

When I try and emerge this, these are the errors that I see before it fails.

If you need anything else let me know.

=========================

gcc: unrecognized option `-03'
nanohttp.c: In function `xmlNanoHTTPConnectAttempt':
nanohttp.c:808: `len' undeclared (first use in this function)
nanohttp.c:808: (Each undeclared identifier is reported only once
nanohttp.c:808: for each function it appears in.)
make[2]: *** [nanohttp.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .libs/xpath.lo xpath.lo
make[2]: Leaving directory `/var/tmp/portage/libxml2-2.5.2/work/libxml2-2.5.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libxml2-2.5.2/work/libxml2-2.5.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-libs/libxml2-2.5.2 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)
[/quote]
_________________
><> ><> ><> ><> ><> ><> ><>

...i am because HE allows me to be...

><> ><> ><> ><> ><> ><> ><>
Back to top
View user's profile Send private message
xod
n00b
n00b


Joined: 09 Mar 2003
Posts: 11
Location: Los Angeles, USA

PostPosted: Fri Apr 04, 2003 7:22 am    Post subject: You are using -03 (zero-three) instead of -O3 (oscar-three) Reply with quote

Quote:
gcc: unrecognized option `-03'


But even if you change "0" to "O", you might still see emerge fail...

I am having a similar problem while using the following gcc settings:

Code:
CFLAGS="-march=athlon -O3 -fomit-frame-pointer -finline-functions -finline-limit=450 -funroll-loops -falign-functions=64 -falign-loops=5 -falign-jumps=5 -mmmx -m3dnow -fno-rename-registers -mfpmath=sse"


Where I get basically the same error as you anyways. At some point it must have compiled fine because this came up on an "emerge -uU world" (update, -u, but don't downgrade, -U)

Code:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -march=athlon -O3 -fomit-frame-pointer -finline-functions -finline-limit=450 -funroll-loops -falign-functions=64 -falign-loops=5 -falign-jumps=5 -mmmx -m3dnow -fno-rename-registers -mfpmath=sse -Wall -c nanohttp.c  -fPIC -DPIC
cc1: warning: SSE instruction set disabled, using 387 arithmetics
nanohttp.c: In function `xmlNanoHTTPConnectAttempt':
nanohttp.c:808: `len' undeclared (first use in this function)
nanohttp.c:808: (Each undeclared identifier is reported only once
nanohttp.c:808: for each function it appears in.)
make[2]: *** [nanohttp.lo] Error 1


I'm gonna try it again now with simpler CFLAGS and see if it emerges properly.

VTY, x
Back to top
View user's profile Send private message
xod
n00b
n00b


Joined: 09 Mar 2003
Posts: 11
Location: Los Angeles, USA

PostPosted: Fri Apr 04, 2003 8:36 am    Post subject: Got it to compile properly. Reply with quote

Libxml2-2.5.2 emerged successfully.

It turns out that only the newer athlons have sse, so the "-mfpmath=sse" CFLAG was incorrect. After disabling it, libxml2 compiled fine. How is your system doing?

VTY, x
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