FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-30-2012, 02:01 AM
bibop554 -
 
Default eglibc fails to build from source

Hi all,
I try to build eglibc from source but it fails. I'm on Debian squeeze 6.0.3I downloaded�[eglibc_2.11.3.orig.tar.gz] and�[eglibc_2.11.3-2.diff.gz] from�http://packages.debian.org/squeeze/libc6
Then:gzip -d eglibc_2.11.3-2.diff.gztar xf eglibc_2.11.3.orig.tar.gzcd eglibc-2.11.3/patch < ../eglibc_2.11.3-2.diff � � � � � � � � � � �<- no errors
cd ../build/ � � � � � � � � � � � � � � � � � � � � � � � � <- build/ is an empty directory../eglibc-2.11.3/configure --prefix=$(pwd) � � �<- no fatal errormake -j 10

The compilation fails with the following error:make[2]: *** No rule to make target `../manual/errno.texi', needed by `../sysdeps/gnu/errlist.c'. �Stop.make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/bibop554/compile_libc/eglibc-2.11.3/stdio-common'make[1]: *** [stdio-common/subdir_lib] Error 2make[1]: Leaving directory `/home/bibop554/compile_libc/eglibc-2.11.3'
make: *** [all] Error 2
Not sure if i made an error somewhere or if it is a bug.Any help would be appreciated. Feel free to ask more information
Thanks
 
Old 04-30-2012, 03:48 AM
"Christofer C. Bell"
 
Default eglibc fails to build from source

On Sun, Apr 29, 2012 at 9:01 PM, bibop554 - <bibop554@gmail.com> wrote:
> Hi all,
>
> I try to build eglibc from source but it fails. I'm on Debian squeeze 6.0.3
> I downloaded*[eglibc_2.11.3.orig.tar.gz] and*[eglibc_2.11.3-2.diff.gz]
> from*http://packages.debian.org/squeeze/libc6

Did you install the build dependencies?

$ apt-get build-dep eglibc

> Not sure if i made an error somewhere or if it is a bug.
> Any help would be appreciated. Feel free to ask more information

>From the apt-get man page:

build-dep causes apt-get to install/remove packages in an attempt to
satisfy the build dependencies for a source package.

Try again after doing that and see what happens.

--
Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAOEVnYvfGEh4MuSFgqu8=k06ZDYomqSPohUu1qdLyET28DMkZ Q@mail.gmail.com">http://lists.debian.org/CAOEVnYvfGEh4MuSFgqu8=k06ZDYomqSPohUu1qdLyET28DMkZ Q@mail.gmail.com
 
Old 04-30-2012, 05:23 AM
Sven Joachim
 
Default eglibc fails to build from source

On 2012-04-30 04:01 +0200, bibop554 - wrote:

> I try to build eglibc from source but it fails. I'm on Debian squeeze 6.0.3
> I downloaded [eglibc_2.11.3.orig.tar.gz] and [eglibc_2.11.3-2.diff.gz] from
> http://packages.debian.org/squeeze/libc6
> Then:
> gzip -d eglibc_2.11.3-2.diff.gz
> tar xf eglibc_2.11.3.orig.tar.gz
> cd eglibc-2.11.3/
> patch < ../eglibc_2.11.3-2.diff <- no errors

A simpler and less error-prone way to unpack the source would be to use
"dpkg-source -x eglibc_2.11.3-2.dsc".

> cd ../build/ <- build/ is
> an empty directory
> ../eglibc-2.11.3/configure --prefix=$(pwd) <- no fatal error
> make -j 10
>
> The compilation fails with the following error:
> make[2]: *** No rule to make target `../manual/errno.texi', needed by
> `../sysdeps/gnu/errlist.c'. Stop.
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory
> `/home/bibop554/compile_libc/eglibc-2.11.3/stdio-common'
> make[1]: *** [stdio-common/subdir_lib] Error 2
> make[1]: Leaving directory `/home/bibop554/compile_libc/eglibc-2.11.3'
> make: *** [all] Error 2
>
> Not sure if i made an error somewhere or if it is a bug.

The Debian diff does not patch the source directly, but uses a patch
system named quilt. You need to install the quilt package and then run
"make -f debian/rules patch".

The unpatched source does not build because Debian had to remove the
documentation, and the upstream build system is not prepared for that.

Cheers,
Sven


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87397llrnn.fsf@turtle.gmx.de">http://lists.debian.org/87397llrnn.fsf@turtle.gmx.de
 
Old 04-30-2012, 09:54 AM
bibop554
 
Default eglibc fails to build from source

Same error. But eglibc now compile with the method proposed by Sven JoachimThanks

On Mon, Apr 30, 2012 at 5:48 AM, Christofer C. Bell <christofer.c.bell@gmail.com> wrote:

On Sun, Apr 29, 2012 at 9:01 PM, bibop554 - <bibop554@gmail.com> wrote:


> Hi all,

>

> I try to build eglibc from source but it fails. I'm on Debian squeeze 6.0.3

> I downloaded*[eglibc_2.11.3.orig.tar.gz] and*[eglibc_2.11.3-2.diff.gz]

> from*http://packages.debian.org/squeeze/libc6



Did you install the build dependencies?



$ apt-get build-dep eglibc



> Not sure if i made an error somewhere or if it is a bug.

> Any help would be appreciated. Feel free to ask more information



>From the apt-get man page:



build-dep causes apt-get to install/remove packages in an attempt to

satisfy the build dependencies for a source package.



Try again after doing that and see what happens.



--

Chris





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/CAOEVnYvfGEh4MuSFgqu8k06ZDYomqSPohUu1qdLyET28DMkZQ @mail.gmail.com
 
Old 04-30-2012, 10:00 AM
bibop554 -
 
Default eglibc fails to build from source

It works !

Is there a good documentation somewhere about the "official" method for building eglibc for debian ?
i was not aware of this way of patching source and the "classical" way (patch, configure) that i used does not show any error although the compilation failed. It is a little misleading for a beginner.

Thanks
On Mon, Apr 30, 2012 at 7:23 AM, Sven Joachim <svenjoac@gmx.de> wrote:

On 2012-04-30 04:01 +0200, bibop554 - wrote:



> I try to build eglibc from source but it fails. I'm on Debian squeeze 6.0.3

> I downloaded [eglibc_2.11.3.orig.tar.gz] and [eglibc_2.11.3-2.diff.gz] from

> http://packages.debian.org/squeeze/libc6

> Then:

> gzip -d eglibc_2.11.3-2.diff.gz

> tar xf eglibc_2.11.3.orig.tar.gz

> cd eglibc-2.11.3/

> patch < ../eglibc_2.11.3-2.diff * * * * * * * * * * *<- no errors



A simpler and less error-prone way to unpack the source would be to use

"dpkg-source -x eglibc_2.11.3-2.dsc".



> cd ../build/ * * * * * * * * * * * * * * * * * * * * * * * * <- build/ is

> an empty directory

> ../eglibc-2.11.3/configure --prefix=$(pwd) * * *<- no fatal error

> make -j 10

>

> The compilation fails with the following error:

> make[2]: *** No rule to make target `../manual/errno.texi', needed by

> `../sysdeps/gnu/errlist.c'. *Stop.

> make[2]: *** Waiting for unfinished jobs....

> make[2]: Leaving directory

> `/home/bibop554/compile_libc/eglibc-2.11.3/stdio-common'

> make[1]: *** [stdio-common/subdir_lib] Error 2

> make[1]: Leaving directory `/home/bibop554/compile_libc/eglibc-2.11.3'

> make: *** [all] Error 2

>

> Not sure if i made an error somewhere or if it is a bug.



The Debian diff does not patch the source directly, but uses a patch

system named quilt. *You need to install the quilt package and then run

"make -f debian/rules patch".



The unpatched source does not build because Debian had to remove the

documentation, and the upstream build system is not prepared for that.



Cheers,

* * * Sven





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/87397llrnn.fsf@turtle.gmx.de
 
Old 04-30-2012, 11:01 AM
Brian
 
Default eglibc fails to build from source

On Mon 30 Apr 2012 at 12:00:32 +0200, bibop554 - wrote:

> It works !
>
> Is there a good documentation somewhere about the "official" method for
> building eglibc for debian ?

The Debian wiki should provide helpful advice and another useful page
is

http://raphaelhertzog.com/2010/12/15/howto-to-rebuild-debian-packages/

> i was not aware of this way of patching source and the "classical" way
> (patch, configure) that i used does not show any error although the
> compilation failed. It is a little misleading for a beginner.

Someone recently guided me through rebuilding a package with

sudo apt-get build-dep <package_name>

apt-get source <package_name>

quilt import /path/to/patch; quilt push

debuild -us -uc

The system used was only a basic install so I needed devscripts and
fakeroot.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120430110137.GI3883@desktop">http://lists.debian.org/20120430110137.GI3883@desktop
 
Old 04-30-2012, 01:26 PM
Jon Dowland
 
Default eglibc fails to build from source

On Mon, Apr 30, 2012 at 12:01:37PM +0100, Brian wrote:
> sudo apt-get build-dep <package_name>

If you would prefer to be able to remove the build dependencies afterwards
easily, you could do (assuming one has devscripts and gdebi installed):

mk-build-deps
sudo gdebi install <the generated .deb file>
sudo dpkg -i <the generated .deb file>
rm <the generated .deb file>

> apt-get source <package_name>
>
> quilt import /path/to/patch; quilt push

^^ this step would only be needed if you were applying a patch
not already in the Debian packaging; if the patch is part of the packaging
this step could be skipped.

> debuild -us -uc

Add -jN to enable parallel builds if you have a modern CPU (N=7 is quite good
for basic Intel i-era chips, or quad core 2 duos). This can massively speed
up building and rebuilding packages.

> The system used was only a basic install so I needed devscripts and
> fakeroot.

You probably also needed build-essential.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120430132441.GC7795@debian">http://lists.debian.org/20120430132441.GC7795@debian
 

Thread Tools




All times are GMT. The time now is 10:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org