WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] building gcc (w/ gcj)  (Read 7419 times)

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: building gcc (w/ gcj)
« Reply #15 on: February 02, 2014, 03:43:30 AM »
Ah - building on 32 isn't a half bad idea, now that you mention it. I think I've since killed that gcj build, though =( I don't have the static libs that I need anymore. The .so libs are in the pdftk extension, but then I'd have to learn how to make those static ... [gulp].

I'm not sure I've been using glibc_apps - I'll try that one next. It's 11pm where I am though, so it will have to wait until tomorrow afternoon.

Thanks again for the assistance, all. I'll keep you posted.

[EDIT: ok, that was quick. I'm already using building with glibc_apps. I'll keep thinking. #$*! ]
« Last Edit: February 02, 2014, 03:46:07 AM by dentonlt »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14634
Re: building gcc (w/ gcj)
« Reply #16 on: February 02, 2014, 03:01:25 PM »
I found the problem - in fact there were two...

The ppl-dev extension's *.la files were messed up, although I don't think this has anything to do with the problem (corrected version posted)

One of the header files (gcc/config/i386/linux64.h) in the gcc-4.7.2 source believes ld-linux* is in /lib64 instead of /lib - correcting this fixes the problem and gcc-java compiles without further issues, except that it installs the libs in /usr/local/lib64 even if you tell it not to. Not a big deal to move the dynamic libs, but the *.la files will need adjusting.
« Last Edit: February 02, 2014, 03:36:59 PM by Juanito »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10992
Re: building gcc (w/ gcj)
« Reply #17 on: February 03, 2014, 01:44:57 AM »
Hm, you didn't use the pure64 patches? Or symlink lib64 to lib?
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14634
Re: building gcc (w/ gcj)
« Reply #18 on: February 03, 2014, 03:57:14 AM »
The specs file normally takes care of the linking and I'd rather avoid the symlink if possible - this is the first time I saw this kind of problem.

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: building gcc (w/ gcj)
« Reply #19 on: February 03, 2014, 12:22:57 PM »
First chance I've had to check the forum - in short, awesome. Thanks so much for digging on it, Juanito. I'll re-try the build myself later today.

Since it's obscure, do you mind explaining how you tracked down the bug? I was at a loss since the conftest.c file is immediately removed by make. =/

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14634
Re: building gcc (w/ gcj)
« Reply #20 on: February 03, 2014, 01:55:42 PM »
I'd seen something similar when building the toolchain for tc-5.x, I though the gcc specs file took care of this, but apparently not for compiling gcc itself.

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: building gcc (w/ gcj)
« Reply #21 on: February 03, 2014, 09:38:58 PM »
Just about to start a build attempt. I downloaded the new ppl-dev, but tce-load gives me an md5sum error. Probably just needs a new .md5.txt, yes? Repeated downloads give a consistent:

cb9a872163f35650914518c2b3815eef  /tce/ppl-dev.tcz

I'll take it as stable.

DLT

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: building gcc (w/ gcj)
« Reply #22 on: February 04, 2014, 01:26:59 AM »
Success! For reference, build script attached (requires bash).

Thanks again, gentlemen - really very much appreciated.