LinuxQuestions.org
Review your favorite Linux distribution.
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 04-21-2014, 02:48 AM   #61
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249

Original Poster
Rep: Reputation: Disabled

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.
 
Old 04-21-2014, 03:21 AM   #62
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
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?
 
Old 04-21-2014, 03:33 AM   #63
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-21-2014, 04:09 AM   #64
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 04-21-2014, 04:28 AM   #65
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249

Original Poster
Rep: Reputation: Disabled
For native build you must bootstrap.
 
Old 04-24-2014, 11:57 AM   #66
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 04-24-2014, 05:49 PM   #67
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 494

Rep: Reputation: 81
@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
 
Old 04-24-2014, 06:17 PM   #68
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 04-24-2014, 11:59 PM   #69
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 494

Rep: Reputation: 81
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).
 
Old 04-25-2014, 01:24 AM   #70
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 04-25-2014, 08:54 AM   #71
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 04-25-2014, 10:11 AM   #72
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
Quote:
Originally Posted by tuxbg View Post
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.
 
Old 04-25-2014, 01:54 PM   #73
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 494

Rep: Reputation: 81
@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...
Attached Files
File Type: txt binutils.SlackBuild.txt (6.1 KB, 9 views)
File Type: txt gcc.SlackBuild.txt (28.0 KB, 6 views)
 
Old 04-25-2014, 02:21 PM   #74
hendrickxm
Member
 
Registered: Feb 2014
Posts: 77

Rep: Reputation: Disabled
Thanks, I will try building with your slackbuilds sunday evening. I am gone cycling this weekend.
 
Old 04-26-2014, 11:09 AM   #75
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hendrickxm View Post
...
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Multilib issue: error upgrading glibc. System unusable. Slackware64 current val3xiv Slackware 2 05-21-2013 07:20 AM
Slackware64 -current (multilib) -- Wrong GCC version slaka Slackware 2 05-13-2013 10:39 AM
slackware64-current libtool using path to old version of GCC JazzItSelf Slackware 6 11-21-2011 11:35 PM
slackware64-current glibc resolver bug? fancylad Slackware 8 01-31-2010 04:47 PM
Blacklisting gcc/glibc with slackpkg in multilib-current damgar Slackware 1 01-04-2010 11:15 PM


All times are GMT -5. The time now is 11:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration