Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-21-2014, 02:48 AM
|
#61
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep:
|
Yes i bootstrap gcc.Also now i use gcc 4.9.20131027 i tried gcc 4.9.0-RC-20140411 but i can't rebuild my toolchain with that vers.I will wait for 4.9 stable vers.
|
|
|
04-21-2014, 03:21 AM
|
#62
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
I have build gcc with newest fastjar and antlr-runtime. Added a patch for fastjar-0.98 and removed all old patches.
About the bootstrap, I managed to get to finishing chapter 5 LFS and adding aaa_base, pkgtools and start compiling with the bootstrapped toolchain but things go wrong when I try to readjust to the toolchain again, what chroot commands do you use and how do you switch to the toolchain when gcc and binutils are build with the temporary toolchain?
|
|
|
04-21-2014, 03:33 AM
|
#63
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep:
|
Do you cross-compile ?
I rebuild all of my packages on the top of my system.
When i rebuild toolchain,all packages needed to build toolchain must be rebuilded.After that i rebuild my toolchain again.After that i start rebuildin all of my packages.
|
|
|
04-21-2014, 04:09 AM
|
#64
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
Currently I rebuild on top of my installation and don't boorstrap, I just replace the newly compiled packages for the toolchain and rebuild all others after that. As if I were just updating.
I am trying to use a live cd as a host. Then follow the LFS book up to end of ch5 with some changes for tar and tar-1.13. I follow this:
http://www.linuxquestions.org/questi...oolchain-3233/
but there is no post about chapter6. And using the commands from the book from ch6 and replacing creation of folders with aaa_base and adding etc and pkgtools seems to work up to where I need to readjust the toolchain again. I probably need to adjust those commands, but no idea there.
|
|
|
04-21-2014, 04:28 AM
|
#65
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep:
|
For native build you must bootstrap.
|
|
|
04-24-2014, 11:57 AM
|
#66
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
I found a patch for the binutils problem with gcc-4.9.0 here: https://bugzilla.redhat.com/show_bug.cgi?id=1087374
Glibc fails but I did not build a native gcc.
Upgrading glibc was not problem and rebuilding gcc also was possible with the official slackware.
For a native gcc-build, I suppose you need at least add --enable-bootstrap and perhaps remove the --host=.
How does your gcc native rebuild slackbuild look like?
I am trying to figure out the steps of upgrading the toolchain, glibc and binutils seems to work with the slackbuilds as they are, small changes here and there.
|
|
|
04-24-2014, 05:49 PM
|
#67
|
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 543
Rep:
|
@hendrickxm,
Looking at the comments, I saw a lot of failures in some tests. You can try building you chain with binutils-2.24.51.0.3 or form git, as I read somewhere that the daily snapshots are being picked from the old CVS, but don't take that from granted.
From the git sources, to build just the binutils without gdb, add to your ./configure settings:
--disable-gdb \
--disable-sim \
--disable-readline \
--disable-libdecnumber \
If oprofile rebuild fail, add 'sed -i "s|SYNTHESIZE_SYMBOLS\ 1|SYNTHESIZE_SYMBOLS\ 0|g" config.hy' right before the make command.
I think libiberty is now picked from GCC and not binutils anymore...
obs: To build binutils-2.24 with the new GCC on x86_64, you now need to pass WERROR="--enable-werror=no" or it will fail.
Last edited by BrZ; 04-24-2014 at 06:06 PM.
Reason: obs
|
|
|
04-24-2014, 06:17 PM
|
#68
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
I already am rebuilding my toolchain with gcc-4.9.0 and binutils-2.24.51.0.3 is failing, will try with your tips.
The error is with cpp and a missing minix header.
I disabled profile in gcc and I am using libiberty from binutils, it does seem that the gcc version is being used in most distros.
EDIT: binutils-2.24.51.0.3 still fails:
"/lib/cpp" fails sanity check
/lib/cpp --version gives me 4.9.0
Acoording to the config.log minix/config.h is missing.
Last edited by hendrickxm; 04-24-2014 at 06:26 PM.
|
|
|
04-24-2014, 11:59 PM
|
#69
|
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 543
Rep:
|
Something is wrong with your compiler =[
binutils-2.24.51.0.3 built fine (*-2.24.51.0.3.20140127.so). Aside disabling multilib support, building libiberty from GCC and bumping the timezones for glibc (2.19); the build scripts are almost stock. I have some strange compulsion to rebuild libtool after GCC with both 1st and 2nd pass.
~$ cpp --version
cpp (GCC) 4.9.0
Copyright (C) 2014 Free Software Foundation, Inc
The minix/config.h error seems just like a warning. I don't have it here, even in the Linux headers (needed by glibc).
|
|
|
04-25-2014, 01:24 AM
|
#70
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
My slackbuilds are also almost stock.
From a stock slackware I have build and upgraded kernel-headers-3.14.1, glibc-2.19, binutils-2.24.51.0.3, gmp-6.0.0a, mpfr-3.1.2, libmpc-1.0.2.
After that gcc-4.9.0, kernel-headers again and then trying binutils.
Could you post your binutils and gcc slackbuilds, I might have missed something? Thanks.
ure
I don't make a static gcc first. Should I, I just have the --enable-bootstrap in the ./configure.
How can I speed up the slackbuild easily by only building gcc for c and c++.
Last edited by hendrickxm; 04-25-2014 at 01:51 AM.
|
|
|
04-25-2014, 08:54 AM
|
#71
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
After rebuilding gcc with slightly different configure options I also managed to build binutils. Glibc is now spewing an error. I will post my slackbuilds for gcc, binutils and glibc. There may be something wrong in these.
|
|
|
04-25-2014, 10:11 AM
|
#72
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
Quote:
Originally Posted by tuxbg
Do you cross-compile ?
I rebuild all of my packages on the top of my system.
When i rebuild toolchain,all packages needed to build toolchain must be rebuilded.After that i rebuild my toolchain again.After that i start rebuildin all of my packages.
|
So if I understand correctly in your first post. You upgrade your toolchain after you have installed/rebuild with current toolchain all needed packages for it. After that you rebuild all those needed packages again and after that you rebuild your toolchain again and after that rebuild all packages on your system?
Step 1: install (and if wanted rebuild/upgrade some of) all packages needed for upgrading toolchain
Step 2: upgrading toolchain
Step 3: rebuilding needed packages for toolchain
Step 4: rebuilding upgraded toolchain
Step 5: rebuilding system packages
Could I get your gcc, gcc-static and glibc slackbuild please? Then I can start trying your way of upgrading the system.
|
|
|
04-25-2014, 01:54 PM
|
#73
|
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 543
Rep:
|
@hendrickxm,
Please verify the 'sed' to install libiberty headers. It came from GCC 4.8.x and I always forget to verify if it was fixed, but 4.9 built with the headers correctly placed. mpfr cumulative patch (08) fixed some bugs, one linked to GMP 6. If you run 32bit or Alien's multilib some editing is needed...
|
|
|
04-25-2014, 02:21 PM
|
#74
|
Member
Registered: Feb 2014
Posts: 344
Rep:
|
Thanks, I will try building with your slackbuilds sunday evening. I am gone cycling this weekend.
|
|
|
04-26-2014, 11:09 AM
|
#75
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep:
|
Quote:
Originally Posted by hendrickxm
...
I don't make a static gcc first. Should I, I just have the --enable-bootstrap in the ./configure.
How can I speed up the slackbuild easily by only building gcc for c and c++.
|
For native build you must bootstarp
edit your gcc configure to
--enable-languages=c,c++,lto
|
|
|
All times are GMT -5. The time now is 03:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|