Re: [xml] libxml2 trouble with GCC 3.0

On Thu, Jun 21, 2001 at 08:37:41AM -0500, Weiqi Gao wrote:

[An earlier message to the same effect was rejected by the mailing list
because I was attaching both the stdout and the stderr of make check,
not realizing that the stdout log is close to 1M in size.]

I'm having trouble again with libxml2 and GCC 3.0.  'make check' fails
with the attached stderr messages.

I reported this a few weeks ago when I'm using a GCC 3.0 snapshot.  Now
that GCC 3.0 has been released, I'm reporting it again.

It may very well be a bug in my environment [stock Red Hat 7.0 + stock
GCC 3.0 on an AMD machine.]  But I'm hoping someone on the list have a
solution to the problem.

  Well William sent me this little note:

----------------- William ---------------
Well, I can't go much further....

When uri.c is compiled with GCC 3.0, some of the generated code is not
correct.  The erroneous code happens when the compilation flags
are -O2 -fPIC, but is okay if the -fPIC is not present.  I didn't check for
other combinations.  I have attached the assembler code which is generated -
first without the -fPIC, followed by the code with the flag set.

I was unable to determine exactly what there is about this particular C
source which triggers the problem.  I guess the best thing is to send it off
to the GCC people, and ask for their help.  In the meantime, I suggest you
notify people NOT to use that compiler.

  So it seems you should avoid GCC 3.0 and wait for a bug-fixed version,
I added a entry point on the subject in the libxml FAQ, this will show
up later today at:


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine
Sep 17-18 2001 Brussels Red Hat TechWorld

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]