LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-02-2010, 12:24 PM   #1
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Rep: Reputation: 75
Compiling glibc using slackbuild


Hi!

Im trying to recompile glibc from a working slackware-current system using source from a slackware mirror. I'm doing it for testing purpose only. Never done that before, so i'm not sure if i'm doing it right. I get the following error:
Code:
make[2]: Entering directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1/iconvdata'
../Makeconfig:85: ../i486/config.make: No such file or directory
/bin/sh: line 0: cd: ../i486: No such file or directory
The GNU C library has not been configured.
Run `configure' to configure it before building.
Try `configure --help' for more details.
make[2]: *** No rule to make target `../i486/config.status', needed by `../i486/config.make'.  Stop.
make[2]: Leaving directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1/iconvdata'
make[1]: *** [iconvdata/subdir_lib] Error 2
make[1]: Leaving directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1'
make: *** [all] Error 2
make -r PARALLELMFLAGS="" CVSOPTS="" -C .. objdir=`pwd` all
make[1]: Entering directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1'
make  subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1/csu'
make[2]: Leaving directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1/csu'
make[2]: Entering directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1/csu'
../Makeconfig:85: ../i486/config.make: No such file or directory
/bin/sh: line 0: cd: ../i486: No such file or directory
The GNU C library has not been configured.
Run `configure' to configure it before building.
Try `configure --help' for more details.
make[2]: *** No rule to make target `../i486/config.status', needed by `../i486/config.make'.  Stop.
make[2]: Leaving directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/glibc-tmp-a44be92860d34519b0c9a4500878e2e6/glibc-2.11.1'
make: *** [all] Error 2
Can anyone tell me what am I doing wrong?

Thanks in advance.
 
Old 10-02-2010, 12:31 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Did you run ./configure before running `make`?

I suggest examining the SlackBuild script from the CD or DVD or from a mirror, and look at the options given to the configure script first too, so you end up with a working glibc that's properly configured for Slackware.

Also note that using the `configure` + `make` + `make install` method will not produce a Slackware package, AND it will (if done as root especially) overwrite some or all of your working glibc on your system, unless you're safely inside a chrooted build environment, so you very likely DO NOT want to run `make install`. For learning purposes, run `configure` and `make` only.

Please have a look at the SlackBuild script - that will learn you some stuff you will want to know.

EDIT - I see (upon opening my eyes and re-reading!) your thread title says "..slackbuild.." so maybe showing us the exact sequence of commands you're running before this happens, will indicate something wrong. It appears that a SlackBuild script is not being used here.

Last edited by GrapefruiTgirl; 10-02-2010 at 12:37 PM.
 
Old 10-02-2010, 02:01 PM   #3
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 75
Quote:
It appears that a SlackBuild script is not being used here.
It IS being used.
Quote:
maybe showing us the exact sequence of commands you're running before this happens
Code:
# ./glibc.SlackBuild
Or to be completely exact:
Code:
LC_ALL=C LANG=C ./glibc.SlackBuild
just to produce english output, because i use localized system.
Quote:
Please have a look at the SlackBuild script - that will learn you some stuff you will want to know.
Well, I do want to learn, so i looked there to before running it :-)
 
Old 10-03-2010, 12:59 PM   #4
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
???
Quote:
../Makeconfig:85: ../i486/config.make: No such file or directory
/bin/sh: line 0: cd: ../i486: No such file or directory
The GNU C library has not been configured.
Run `configure' to configure it before building.
 
Old 10-03-2010, 01:20 PM   #5
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 75
Well, i'm surprised too, because configure is definitely being run by the slackbuild script! Any ideas? I've found only one similar error - on gentoo bugzilla, here's a link:

http://bugs.gentoo.org/86771

But it doesn't help me at all.

If someone using slackware-current or slackware-13.1 simply ran glibc slackbuild, and than report what happenned - it could be of some use to me.

Thanks for your replies.

Last edited by alekow; 10-03-2010 at 01:31 PM.
 
Old 10-03-2010, 01:30 PM   #6
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
current64, gcc-4.4.5: http://pastebin.com/ib58YxdN

Edit: That was for gcc. Sorry...

Last edited by BrZ; 10-03-2010 at 01:32 PM.
 
Old 10-03-2010, 04:02 PM   #7
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 75
So, could you try with glibc and see if it creates a package? It did compile for me for some time... The error occured while compiling iconvdata, which is not the first part of code.
 
Old 10-03-2010, 04:14 PM   #8
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Sorry friend,gcc is still going, but I can confirm that glibc-2.12.1 built fine here...
Attached Thumbnails
Click image for larger version

Name:	Captura de tela - 03-10-2010 - 18:09:11.png
Views:	37
Size:	96.0 KB
ID:	4760  
 
1 members found this post helpful.
Old 10-04-2010, 12:15 AM   #9
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 75
Well, that's... good. Anyone with 32-bit? Maybe current?
 
Old 10-04-2010, 10:05 AM   #10
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Rep: Reputation: 29
Using the glibc.SlackBuild from the Slackware 13.1 (32bit) DVD I created glibc-2.11.1-i486 with GCC 4.4.4.
Now what?^^
 
1 members found this post helpful.
Old 10-04-2010, 10:49 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Depends.

If you wished to install it, do:
Code:
installpkg <package-name-you-just-made>
HOWEVER: You already have this package installed, so theoretically, you would want to upgrade the package. Notice the % sign in the middle. Format is: upgradepkg oldpkg%newpkg
Code:
upgradepkg glibc%</path/to/your/new/package>
HOWEVER #TWO: Again, you already have this installed, so theoretically you don't really want to install this anyhow.. If there's anything wrong with your new package, then installing it might bork your system.


But, for learning purposes, if that's what this is, then use `installpkg` or `upgradepkg` and see what happens.
 
Old 10-04-2010, 01:51 PM   #12
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Rep: Reputation: 29
@GrapefruiTgirl thanks for you answer, but I just build it because alekow wanted someone to do so. (And I wanted to try out my new CPU.) ^^
 
Old 10-04-2010, 01:54 PM   #13
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 230

Original Poster
Rep: Reputation: 75
Quote:
Using the glibc.SlackBuild from the Slackware 13.1 (32bit) DVD I created glibc-2.11.1-i486 with GCC 4.4.4.
Now what?^^
Then I guess something must be wrong with my slackware source tree, or i don't know... Tried compiling it on slackware-current and a clean installation of 13.1 with the same result... I'll re-download the source and try one more time ;-)
________________________
EDIT:

Nope, exactly the same error, so it's not it. A hardware problem maybe??? It get's boring...

Last edited by alekow; 10-04-2010 at 01:58 PM.
 
Old 10-04-2010, 01:55 PM   #14
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Oops! I thought I was replying to the OP! Sorry folks for the confusion!

Last edited by GrapefruiTgirl; 10-04-2010 at 01:56 PM. Reason: Edited post as I had replied wrongly to the wrong person!
 
Old 10-04-2010, 02:37 PM   #15
Squall90
Member
 
Registered: Oct 2009
Distribution: Currently several distros :S
Posts: 148

Rep: Reputation: 29
Quote:
Originally Posted by alekow View Post
Nope, exactly the same error, so it's not it. A hardware problem maybe??? It get's boring...
And you have a full installation? This is really weird.
Which user do you use when you run SlackBuilds?
 
  


Reply

Tags
glibc, slackbuild



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
Compiling k9copy (SlackBuild.org) Woodsman Slackware 9 04-01-2008 12:25 AM
Compiling XFE File Manager Using SlackBuild.org or src2pkg Woodsman Slackware 17 12-29-2007 05:23 PM
Compiling qt and KDE 3.5.5 using Pat,s Slackbuild Harp00 Slackware 3 10-13-2006 04:48 AM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration