xg du | 3 Dec 2008 03:03
Picon

a problem of making libXML2

I meet a problem when making the libXML2-2.7.2(multilib64) according cblfs' method. I used the clfs multilib system and install the python2.5.2(multilib32 and multilib64) also according the cblfs' method.
what should I do to fix this error ?
 
CC="gcc -m64" USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 && make
then I got the message below: 
 
 
make  all-recursive
make[1]: Entering directory `/sources/libxml2-2.7.2'
Making all in include
make[2]: Entering directory `/sources/libxml2-2.7.2/include'
Making all in libxml
make[3]: Entering directory `/sources/libxml2-2.7.2/include/libxml'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/sources/libxml2-2.7.2/include/libxml'
make[3]: Entering directory `/sources/libxml2-2.7.2/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/sources/libxml2-2.7.2/include'
make[2]: Leaving directory `/sources/libxml2-2.7.2/include'
Making all in .
make[2]: Entering directory `/sources/libxml2-2.7.2'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/sources/libxml2-2.7.2'
Making all in doc
make[2]: Entering directory `/sources/libxml2-2.7.2/doc'
Making all in devhelp
make[3]: Entering directory `/sources/libxml2-2.7.2/doc/devhelp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/sources/libxml2-2.7.2/doc/devhelp'
Making all in examples
make[3]: Entering directory `/sources/libxml2-2.7.2/doc/examples'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/sources/libxml2-2.7.2/doc/examples'
make[3]: Entering directory `/sources/libxml2-2.7.2/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/sources/libxml2-2.7.2/doc'
make[2]: Leaving directory `/sources/libxml2-2.7.2/doc'
Making all in example
make[2]: Entering directory `/sources/libxml2-2.7.2/example'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/sources/libxml2-2.7.2/example'
Making all in xstc
make[2]: Entering directory `/sources/libxml2-2.7.2/xstc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/sources/libxml2-2.7.2/xstc'
Making all in python
make[2]: Entering directory `/sources/libxml2-2.7.2/python'
Making all in .
make[3]: Entering directory `/sources/libxml2-2.7.2/python'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -m64 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.5 -I../include -I../include -I../python    -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT libxml.lo -MD -MP -MF .deps/libxml.Tpo -c -o libxml.lo libxml.c
 gcc -m64 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.5 -I../include -I../include -I../python -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT libxml.lo -MD -MP -MF .deps/libxml.Tpo -c libxml.c  -fPIC -DPIC -o .libs/libxml.o
In file included from /usr/include/python2.5/Python.h:8,
                 from libxml.c:14:
/usr/include/python2.5/pyconfig.h:1:1: error: unterminated #ifndef
In file included from /usr/include/python2.5/pyport.h:4,
                 from /usr/include/python2.5/Python.h:57,
                 from libxml.c:14:
/usr/include/python2.5/pyconfig.h:1:1: error: unterminated #ifndef
In file included from /usr/include/python2.5/Python.h:84,
                 from libxml.c:14:
/usr/include/python2.5/intobject.h:44: warning: ISO C90 does not support 'long long'
In file included from /usr/include/python2.5/Python.h:86,
                 from libxml.c:14:
/usr/include/python2.5/longobject.h:43: warning: ISO C90 does not support 'long long'
/usr/include/python2.5/longobject.h:44: warning: ISO C90 does not support 'long long'
/usr/include/python2.5/longobject.h:45: warning: ISO C90 does not support 'long long'
/usr/include/python2.5/longobject.h:46: warning: ISO C90 does not support 'long long'
/usr/include/python2.5/longobject.h:47: warning: ISO C90 does not support 'long long'
libxml.c: In function 'libxml_xmlValidCtxtGenericErrorFuncHandler':
libxml.c:1748: warning: unused parameter 'severity'
libxml.c: In function 'libxml_xmlValidCtxtGenericWarningFuncHandler':
libxml.c:1775: warning: unused parameter 'severity'
libxml.c: At top level:
libxml.c:2677: warning: no previous prototype for 'libxml_xmlNodeRemoveNsDef'
libxml.c: In function 'libxml_serializeNode':
libxml.c:2764: warning: unused variable 'len'
make[3]: *** [libxml.lo] Error 1
make[3]: Leaving directory `/sources/libxml2-2.7.2/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/libxml2-2.7.2/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/libxml2-2.7.2'
make: *** [all] Error 2
 
_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Joe Ciccone | 3 Dec 2008 14:28
Picon

Re: a problem of making libXML2

xg du wrote:
> I meet a problem when making the libXML2-2.7.2(multilib64) according
> cblfs' method. I used the clfs multilib system and install the
> python2.5.2(multilib32 and multilib64) also according the cblfs' method.
> what should I do to fix this error ?
> CC="gcc -m64" USE_ARCH=64 ./configure --prefix=/usr
> --libdir=/usr/lib64 && make
> then I got the message below:
> [snip]
>
> /usr/include/python2.5/pyconfig.h:1:1: error: unterminated #ifndef
You need to go back and fix this header and create it as per the book,
it's clear that you have a typo.
Simon Haines | 4 Dec 2008 00:01
Picon
Gravatar

Fix for clfs-embedded section 6.8 uClibc-0.9.30

Just to let the community know that there is a bug in the clfs-embedded book (from svn head) in section 6.8.
The faulty command is: make CC="${CC} ${BUILD}"

The idea is to append the "-mabi" or "-m" flag (set in section 6.3) to the CC variable produced by the Makefile's rules. As it is currently written, the command tries to substitute the (non-existent) $CC variable. Rewriting the command with shell escaping to: make CC="\${CC} ${BUILD}" produces the following error:
Rules.mak:138: *** Recusive variable `CC' references itself (eventually). Stop.

If the host and the target are both 32-bit (using the -m32 flag), it is safe to just use the command: make. For cross-compiling to other architectures, try the command: make CFLAGS=${BUILD}. I haven't tested the latter command though.

Cheers,
Simon.


_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Joe Ciccone | 4 Dec 2008 02:32
Picon

Re: Fix for clfs-embedded section 6.8 uClibc-0.9.30

Simon Haines wrote:
> Just to let the community know that there is a bug in the
> clfs-embedded book (from svn head) in section 6.8.
> The faulty command is: make CC="${CC} ${BUILD}"
>
I made the update in r4084. My original thought was to use make
CC="\$(CC) ${BUILD}" but the circular dep on make slipped my mind. I get
so used to using := in Makefiles wherever possible, It saves memory and
cpu usage by evaluating the expression right then and there instead of
waiting the variable is used. But you cant pass the parameter on the
command line.

I instead changed it to make CC="${CLFS_TARGET}-gcc ${BUILD}"

I think it's time to also look into modifying GCC so that the BUILD
variable is no-longer needed. I believe the only architecture this was
put in for was mips. It's probably a much better idea to do some spec
file patching then deal with a environment variable that can be
forgotten. It's just something to think about for the future.
Doug Reiland | 5 Dec 2008 19:48
Picon
Favicon

building packages

 
I am still going thru the document. I am at section 6.4 gcc-4.2.4.
 
First, I hit the SSIZE_MAX undefined error in linux-host.c. I see a couple of hits in the mailing-list, but no real solution. I am surprise there isn't a patch for this if it is really a problem.
 
Second, so far I have built binutils and now gcc twice. I understand the need for this, but am I suppose to create new build directories for these the second time around. Maybe a miss something, and I don't want to get too far down the road. As documented, you end up applying patches twice (getting warnings),  and doing configure twice.
 
binutils errored the second time I built it, saying configuration changed and there is an old config.cache laying around. I ended up doing make distclean and rm all the config.cache files, but I am surprised this isn't documented either.
 
It seems like documentation should tells us to rm the untarr-ed source, untar again, apply patches, rm old build directories or create different ones, ...
If patches are all the same the second phase, don't document the patch steps.
 
 
_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Chris Staub | 5 Dec 2008 20:00

Re: building packages

Doug Reiland wrote:
>  
> I am still going thru the document. I am at section 6.4 gcc-4.2.4.
>  
> First, I hit the SSIZE_MAX undefined error in linux-host.c. I see a 
> couple of hits in the mailing-list, but no real solution. I am surprise 
> there isn't a patch for this if it is really a problem.

It's most likely due to some kind of user error.

> Second, so far I have built binutils and now gcc twice. I understand the 
> need for this, but am I suppose to create new build directories for 
> these the second time around. Maybe a miss something, and I don't want 
> to get too far down the road. As documented, you end up applying patches 
> twice (getting warnings),  and doing configure twice.
>  
> binutils errored the second time I built it, saying configuration 
> changed and there is an old config.cache laying around. I ended up doing 
> make distclean and rm all the config.cache files, but I am surprised 
> this isn't documented either.

Looks like someone is in serious need of closely re-reading the book...

> It seems like documentation should tells us to rm the untarr-ed source,

 From page 5.1...

"Important

After installing each package, both in this and the next chapters, 
delete its source and build directories, unless specifically instructed 
otherwise. Deleting the sources prevents mis-configuration when the same 
package is reinstalled later."

> untar again,

Also on 5.1...

"Important

Before issuing the build instructions for a package, the package should 
be unpacked as user clfs, and a cd into the created directory should be 
performed. The build instructions assume that the bash shell is in use."

Granted, it doesn't say anything about what to do when you install a 
package twice, but then it doesn't need to. You follow the exact same 
basic steps (untar and cd into the source dir) before every package 
installation.

apply patches,

Yet again, page 5.1...

"Several of the packages are patched before compilation, but only when 
the patch is needed to circumvent a problem. A patch is often needed in 
both this and the next chapters, but sometimes in only one or the other. 
Therefore, do not be concerned if instructions for a downloaded patch 
seem to be missing."

rm old build directories or create different
> ones, ...

And once more, surprise surprise, page 5.1. The above-pasted "Important" 
note specifies source AND BUILD dirs are to be removed.

> If patches are all the same the second phase, don't document the patch 
> steps.
>  
Well, since you are told to rm the old source, then you'll need to apply 
the patch(es) again when you install the 2nd time.

Next time, try actually reading the book before complaining about things 
that are supposedly not documented.
Ken Moffat | 5 Dec 2008 20:10

Re: building packages

On Fri, Dec 05, 2008 at 01:48:30PM -0500, Doug Reiland wrote:
> 
>  
> I am still going thru the document. I am at section 6.4 gcc-4.2.4.
>  
> First, I hit the SSIZE_MAX undefined error in linux-host.c. I see a couple of hits in the mailing-list, but
no real solution. I am surprise there isn't a patch for this if it is really a problem.
>  
> Second, so far I have built binutils and now gcc twice. I understand the need for this, but am I suppose to
create new build directories for these the second time around. Maybe a miss something, and I don't want to
get too far down the road. As documented, you end up applying patches twice (getting warnings),  and doing
configure twice. 
>  
> binutils errored the second time I built it, saying configuration changed and there is an old
config.cache laying around. I ended up doing make distclean and rm all the config.cache files, but I am
surprised this isn't documented either.
>  
> It seems like documentation should tells us to rm the untarr-ed source, untar again, apply patches, rm old
build directories or create different ones, ...
> If patches are all the same the second phase, don't document the patch steps.

 Sounds as if you missed the 'Important' note at the bottom of
section 5.1.

 I can see the SSIZE_MAX problem in an old post that google found,
and a workaround, but I've never encountered it.  Putting these two
things together, I tend to believe something has been misconfigured
(because it picked up files from an earlier build).

 If you ever find a patch is already applied, something is seriously
wrong.

ĸen
--

-- 
das eine Mal als Tragödie, das andere Mal als Farce
_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Doug Reiland | 5 Dec 2008 20:28
Picon
Favicon

Re: building packages

ok, your right I missed it big time.
The documentation is very well written.

> Date: Fri, 5 Dec 2008 14:00:07 -0500
> From: chris <at> beaker67.com
> To: clfs-support <at> lists.cross-lfs.org
> Subject: Re: [Clfs-support] building packages
>
> Doug Reiland wrote:
> >
> > I am still going thru the document. I am at section 6.4 gcc-4.2.4.
> >
> > First, I hit the SSIZE_MAX undefined error in linux-host.c. I see a
> > couple of hits in the mailing-list, but no real solution. I am surprise
> > there isn't a patch for this if it is really a problem.
>
> It's most likely due to some kind of user error.
>
> > Second, so far I have built binutils and now gcc twice. I understand the
> > need for this, but am I suppose to create new build directories for
> > these the second time around. Maybe a miss something, and I don't want
> > to get too far down the road. As documented, you end up applying patches
> > twice (getting warnings), and doing configure twice.
> >
> > binutils errored the second time I built it, saying configuration
> > changed and there is an old config.cache laying around. I ended up doing
> > make distclean and rm all the config.cache files, but I am surprised
> > this isn't documented either.
>
> Looks like someone is in serious need of closely re-reading the book...
>
> > It seems like documentation should tells us to rm the untarr-ed source,
>
> From page 5.1...
>
> "Important
>
> After installing each package, both in this and the next chapters,
> delete its source and build directories, unless specifically instructed
> otherwise. Deleting the sources prevents mis-configuration when the same
> package is reinstalled later."
>
> > untar again,
>
> Also on 5.1...
>
> "Important
>
> Before issuing the build instructions for a package, the package should
> be unpacked as user clfs, and a cd into the created directory should be
> performed. The build instructions assume that the bash shell is in use."
>
> Granted, it doesn't say anything about what to do when you install a
> package twice, but then it doesn't need to. You follow the exact same
> basic steps (untar and cd into the source dir) before every package
> installation.
>
> apply patches,
>
> Yet again, page 5.1...
>
> "Several of the packages are patched before compilation, but only when
> the patch is needed to circumvent a problem. A patch is often needed in
> both this and the next chapters, but sometimes in only one or the other.
> Therefore, do not be concerned if instructions for a downloaded patch
> seem to be missing."
>
> rm old build directories or create different
> > ones, ...
>
> And once more, surprise surprise, page 5.1. The above-pasted "Important"
> note specifies source AND BUILD dirs are to be removed.
>
> > If patches are all the same the second phase, don't document the patch
> > steps.
> >
> Well, since you are told to rm the old source, then you'll need to apply
> the patch(es) again when you install the 2nd time.
>
> Next time, try actually reading the book before complaining about things
> that are supposedly not documented.
> _______________________________________________
> Clfs-support mailing list
> Clfs-support <at> lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Christoph Pegel | 13 Dec 2008 15:09

Building a CLFS for the Linksys NSLU2 (ARM arch)

Hi there,

I'd like to know, if anybody ever tried building a CLFS for the
Linksys NSLU2, which uses an XScale-IXP42x processor, thats able to
run both low and big endian arm code.
If theres any experience, tell me :)

Greetings,
Christoph

_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
William Harrington | 13 Dec 2008 19:37
Favicon

Re: Building a CLFS for the Linksys NSLU2 (ARM arch)


On Dec 13, 2008, at 8:09 AM, Christoph Pegel wrote:

> Hi there,
>
> I'd like to know, if anybody ever tried building a CLFS for the
> Linksys NSLU2, which uses an XScale-IXP42x processor, thats able to
> run both low and big endian arm code.
> If theres any experience, tell me :)
>
> Greetings,
> Christoph

If you aren't finding much info or help from other people you might  
try messaging the guys at http://www.nslu2-linux.org

William

Gmane