tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc from tools fails on GNU/Linux



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

I use to include my GNU/Linux machines CPUs when building
packages by using distcc.

I build the toolchain the standard way:

$ ./build.sh -j4 -m amd64 -T /home/netbsd/tools tools

This worked OOB until I upgraded some of my NetBSD machines to
NetBSD 6.0. I then upgraded the toolchain in the Linux machine
to -rnetbsd-6-0, but distcc stopped working. Digging a little bit,
I discovered that gcc was failing because it couldn't find `cc1'.
`cc1' is located here:

tools/libexec/gcc/x86_64--netbsd/4.5.3/cc1

whereas:

$ tools/x86_64--netbsd/bin/gcc -print-search-dirs
install: /home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/x86_64--netbsd/4.5.3/ programs: =/home/netbsd/tools/x86_64--netbsd/bin/../libexec/gcc/x86_64--netbsd/4.5.3/:/home/netbsd/tools/x86_64--netbsd/bin/../libexec/gcc/:/home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/x86_64--netbsd/4.5.3/:/home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/bin/ libraries: =/home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/x86_64--netbsd/4.5.3/:/home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/:/home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/lib/x86_64--netbsd/4.5.3/:/home/netbsd/tools/x86_64--netbsd/bin/../lib/gcc/x86_64--netbsd/4.5.3/../../../../x86_64--netbsd/lib/

Adding a symlink in tools/x86_64--netbsd/ did the trick:

lrwxrwxrwx 1 root root 10 Dec 11 17:49 tools/x86_64--netbsd/libexec -> ../libexec

But as this used to work before, I presume something broke.

Is this worth a PR?

Thanks,

- ------------------------------------------------------------------
Emile "iMil" Heitor .°. <imil@{home.imil.net,NetBSD.org,gcu.info}>
                                                                _
              | http://imil.net        | ASCII ribbon campaign ( )
              | http://www.NetBSD.org  |  - against HTML email  X
              | http://gcu.info        |              & vCards / \

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (NetBSD)

iD8DBQFQx3srFG3BlGWyzUIRAmpfAJ9kLWzPNuk2ODoWDhVdYtpQJa9QpACdElgt
YvDJVxyw4WW1irYGnuhftsc=
=RXTf
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index