View previous topic :: View next topic |
Author |
Message |
melbell n00b
Joined: 07 Mar 2003 Posts: 10
|
Posted: Wed Mar 19, 2003 8:58 pm Post subject: Problem emerging dev-libs/libxml2-2.5.2 |
|
|
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 |
|
|
xod n00b
Joined: 09 Mar 2003 Posts: 11 Location: Los Angeles, USA
|
Posted: Fri Apr 04, 2003 7:22 am Post subject: You are using -03 (zero-three) instead of -O3 (oscar-three) |
|
|
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 |
|
|
xod n00b
Joined: 09 Mar 2003 Posts: 11 Location: Los Angeles, USA
|
Posted: Fri Apr 04, 2003 8:36 am Post subject: Got it to compile properly. |
|
|
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 |
|
|
|
|
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
|
|