Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315429 - Some packages build fails with distcc
Summary: Some packages build fails with distcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 09:18 UTC by Illya Bilash
Modified: 2010-04-19 13:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Distcc server emerge --info (emerge-info-server.txt,4.25 KB, text/plain)
2010-04-15 09:29 UTC, Illya Bilash
Details
Distcc client emerge --info (emerge-info-client.txt,3.23 KB, text/plain)
2010-04-15 09:30 UTC, Illya Bilash
Details
dev-libs:libmcrypt build log (20100415-080344.log,252.29 KB, text/plain)
2010-04-15 09:30 UTC, Illya Bilash
Details
media-libs:freetype build log (20100415-081215.log,546.96 KB, text/plain)
2010-04-15 09:31 UTC, Illya Bilash
Details
media-libs:libpng build log (20100415-081030.log,281.67 KB, text/plain)
2010-04-15 09:31 UTC, Illya Bilash
Details
media-libs:t1lib build log (20100415-080640.log,229.76 KB, text/plain)
2010-04-15 09:32 UTC, Illya Bilash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Illya Bilash 2010-04-15 09:18:13 UTC
I'm trying to emerge apache and php. Comilation fails:

* The following 6 packages have failed to build or install:
 *
 *  ('ebuild', '/', 'dev-libs/libmcrypt-2.5.8-r1', 'merge'), Log file:
 *   '/var/log/portage/dev-libs:libmcrypt-2.5.8-r1:20100415-080344.log'
 *  ('ebuild', '/', 'dev-lang/php-5.2.13', 'merge')
 *  ('ebuild', '/', 'media-libs/t1lib-5.1.2', 'merge'), Log file:
 *   '/var/log/portage/media-libs:t1lib-5.1.2:20100415-080640.log'
 *  ('ebuild', '/', 'media-libs/libpng-1.2.40', 'merge'), Log file:
 *   '/var/log/portage/media-libs:libpng-1.2.40:20100415-081030.log'
 *  ('ebuild', '/', 'media-libs/freetype-2.3.11', 'merge'), Log file:
 *   '/var/log/portage/media-libs:freetype-2.3.11:20100415-081215.log'
 *  ('ebuild', '/', 'net-analyzer/net-snmp-5.4.2.1-r1', 'merge'), Log file:
 *   '/var/log/portage/net-analyzer:net-snmp-5.4.2.1-r1:20100415-083516.log'

With FEATURES='-distcc' compilation success.
P.S. I had problems on other (not all) packages too. I'm sure, that distcc works, bekause gentoo-sources and some other packages compilation success. (sorry for my english)
Comment 1 Illya Bilash 2010-04-15 09:29:42 UTC
Created attachment 227871 [details]
Distcc server emerge --info
Comment 2 Illya Bilash 2010-04-15 09:30:19 UTC
Created attachment 227873 [details]
Distcc client emerge --info
Comment 3 Illya Bilash 2010-04-15 09:30:55 UTC
Created attachment 227875 [details]
dev-libs:libmcrypt build log
Comment 4 Illya Bilash 2010-04-15 09:31:20 UTC
Created attachment 227877 [details]
media-libs:freetype build log
Comment 5 Illya Bilash 2010-04-15 09:31:42 UTC
Created attachment 227879 [details]
media-libs:libpng build log
Comment 6 Illya Bilash 2010-04-15 09:32:03 UTC
Created attachment 227881 [details]
media-libs:t1lib build log
Comment 7 Myckel Habets 2010-04-16 05:14:06 UTC
All packages fail due to the following type of error:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/freetype-2.3.11/work/freetype-2.3.11/objs/.libs/ftsystem.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/media-libs/freetype-2.3.11/work/freetype-2.3.11/objs/.libs/ftsystem.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

Logs also mention:
This profile has not been tested thoroughly and is not considered to be
a supported server profile at this time.  For a supported server
profile, please check the Hardened project (http://hardened.gentoo.org).

This profile is merely a convenience for people who require a more
minimal profile, yet are unable to use hardened due to restrictions in
the software being used on the server. This profile should also be used
if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
applies to you, then it doesn't and you should probably be using
Hardened, instead.
Comment 8 Illya Bilash 2010-04-16 07:36:04 UTC
Thanks, I will switch to hardened profile or choose a different one.
Comment 9 Illya Bilash 2010-04-19 13:17:35 UTC
Changing profile didn't help.
I have changed CFLAGS by adding "-fPIC" and have success compilation of these packages.
Comment 10 Illya Bilash 2010-04-19 13:20:08 UTC
Sorry, i forgot to specify info about profile.

I didn't try to use hardened profile (it seems not suitable for me). 
I'm using amd64/10.0 profile now