Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254033 - net-misc/openvpn-2.0.7-r2 fails to compile with distcc enabled
Summary: net-misc/openvpn-2.0.7-r2 fails to compile with distcc enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-07 01:46 UTC by Tom Lloyd
Modified: 2009-06-21 21:08 UTC (History)
2 users (show)

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


Attachments
Full buildlog (build.log,24.06 KB, text/plain)
2009-01-07 01:48 UTC, Tom Lloyd
Details
net-misc:openvpn-2.0.9:20090608-055253.log.gz [hppa,fail] (20090608-055253.log.gz,4.97 KB, text/plain)
2009-06-09 20:03 UTC, Jeroen Roovers (RETIRED)
Details
Apply CC and CFLAGS in plugin/*/Makefile (openvpn-2.0.9-cc-cflags.patch,1.61 KB, patch)
2009-06-09 21:27 UTC, Jeroen Roovers (RETIRED)
Details | Diff
Sadly patching the sources alone is not enough. (openvpn-2.0.9.ebuild.diff,1.10 KB, patch)
2009-06-09 21:29 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Lloyd 2009-01-07 01:46:42 UTC
net-misc/openvpn-2.0.7-r2 compiles as expected without distcc, but fails if it's turned on.

Compiling machine: powerpc-gentoo-linux-uclibc
Assisting machine: i686-pc-linux-gnu

Attachment with full buildlog to follow.


Reproducible: Always

Steps to Reproduce:
1. FEATURES="distcc" emerge -1 openvpn  # Fails
2. FEATURES="-distcc" emerge -1 openvpn # Works


Actual Results:  
<--- SNIP --->
if powerpc-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.   -I.    -O2 -mcpu=603e -pipe -MT ssl.o -MD -MP -MF ".deps/ssl.Tpo" -c -o ssl.o ssl.c; \
        then mv -f ".deps/ssl.Tpo" ".deps/ssl.Po"; else rm -f ".deps/ssl.Tpo"; exit 1; fi
if powerpc-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.   -I.    -O2 -mcpu=603e -pipe -MT status.o -MD -MP -MF ".deps/status.Tpo" -c -o status.o status.c; \
        then mv -f ".deps/status.Tpo" ".deps/status.Po"; else rm -f ".deps/status.Tpo"; exit 1; fi
if powerpc-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.   -I.    -O2 -mcpu=603e -pipe -MT thread.o -MD -MP -MF ".deps/thread.Tpo" -c -o thread.o thread.c; \
        then mv -f ".deps/thread.Tpo" ".deps/thread.Po"; else rm -f ".deps/thread.Tpo"; exit 1; fi
if powerpc-gentoo-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.   -I.    -O2 -mcpu=603e -pipe -MT tun.o -MD -MP -MF ".deps/tun.Tpo" -c -o tun.o tun.c; \
        then mv -f ".deps/tun.Tpo" ".deps/tun.Po"; else rm -f ".deps/tun.Tpo"; exit 1; fi
powerpc-gentoo-linux-uclibc-gcc  -O2 -mcpu=603e -pipe  -Wl,-z,relro -o openvpn  base64.o buffer.o crypto.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o openvpn.o options.o otime.o packet_id.o perf.o ping.o plugin.o pool.o proto.o proxy.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o   -lssl -lcrypto -llzo2 -ldl
make[1]: Leaving directory `/var/tmp/portage/net-misc/openvpn-2.0.7-r2/work/openvpn-2.0.7'
 * Building down-root plugin
make -j4
gcc -O2 -Wall -fPIC -c -I../.. down-root.c
gcc -O2 -Wall -fPIC -shared -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc
/usr/lib/gcc/powerpc-gentoo-linux-uclibc/3.4.6/../../../../powerpc-gentoo-linux-uclibc/bin/ld: down-root.o: Relocations in generic ELF (EM: 3)
down-root.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
distcc[17279] ERROR: compile (null) on localhost failed
make: *** [down-root.so] Error 1
 *
 * ERROR: net-misc/openvpn-2.0.7-r2 failed.




Portage 2.1.6.4 (uclibc/ppc/hardened, gcc-3.4.6, uclibc-0.9.30-r0,
2.6.26-hardened-r7-muttley-1-misc ppc)
=================================================================
System uname: Linux-2.6.26-hardened-r7-muttley-1-misc-ppc-G2_LE-with-libc0
Timestamp of tree: Sun, 04 Jan 2009 18:15:01 +0000
distcc 3.0 powerpc-gentoo-linux-uclibc [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-gentoo-linux-uclibc"
CFLAGS="-O2 -mcpu=603e -pipe"
CHOST="powerpc-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=603e -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages parallel-fetch
protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-z,relro"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://splig/gentoo-portage"
USE="alsa apache2 bzip2 cgi cli cracklib crypt dri embedded fastcgi hardened
ipv6 mudflap mysql ncurses offensive openmp pcre perl php pic ppc python quotas
readline reflection samba session sni spl sqlite ssl ssp suhosin syslog tcpd
uclibc uclibc-compat unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy
dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear
meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="alias auth_basic authn_alias authn_anon authn_default
authn_file authz_default authz_groupfile authz_host authz_owner authz_user
autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter
headers include info log_config logio mem_cache mime mime_magic negotiation
rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy
proxy_http" APACHE2_MPMS="prefork" CAMERAS="sq905" ELIBC="uclibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tom Lloyd 2009-01-07 01:48:18 UTC
Created attachment 177627 [details]
Full buildlog
Comment 2 Patrick Lauer gentoo-dev 2009-01-07 20:06:18 UTC
Did you create a cross-distcc setup as described in the gentoo docs, or is that just two native distcc installs?
Comment 3 Tom Lloyd 2009-01-07 20:33:17 UTC
I can't remember now, it was a long time ago.  But it works for almost everything else, it's just one or two packages that don't seem to get along with it.  At least one of those was definitely a bug in the package, not my system: #252839

In general, stuff cross-compiles fine with distcc, as long as you have it set up properly.  I know a couple of packages do break, so I guess in that case if they can't be fixed their ebuilds should be modified to specify FEATURES="-distcc".
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-08 15:17:20 UTC
(In reply to comment #3)
> I can't remember now, it was a long time ago.  But it works for almost
> everything else, it's just one or two packages that don't seem to get along
> with it.  At least one of those was definitely a bug in the package, not my
> system: #252839
> 
>  so I guess in that case if they can't be fixed their ebuilds should be
> modified to specify FEATURES="-distcc".

That should not and cannot be done.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-09 20:03:22 UTC
Created attachment 194033 [details]
net-misc:openvpn-2.0.9:20090608-055253.log.gz [hppa,fail]

Confirmed on HPPA with openvpn-2.0.9. It only happens while cross-compiling plugins, and it does so because it ignores CC (and CFLAGS as it happens).

Tue Jun  9 22:01:07 CEST 2009


Performing Global Updates: /keeps/gentoo/portage/profiles/updates/2Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
............................................


Portage 2.1.6.13 (default/linux/hppa/2008.0, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.30-rc4-JeR parisc)
=================================================================
System uname: Linux-2.6.30-rc4-JeR-parisc-PA8700_-PCX-W2-with-glibc2.2
Timestamp of tree: Tue, 09 Jun 2009 15:15:03 +0000
distcc 3.1 hppa2.0-unknown-linux-gnu [enabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.6, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="hppa"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/bind /var/spool/fax/etc /var/spool/torque /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall"
DISTDIR="/keeps/gentoo/distfiles"
FEATURES="autoaddcvs buildpkg cvs distcc distlocks fixpackages notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en nl he"
MAKEOPTS="-j5"
PKGDIR="/keeps/gentoo/packages/elmer"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm/"
PORTDIR="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib abyss accessibility acl ads agg alsa amr amrnb amrwb ao aoss apache2 ares artist-screen asf async asyncns audiofile audit automount avfs bash-completion berkdb bidi bittorrent bittorrent-external bl bluetooth bzip2 c++ cairo caps captury catalogs cblas cdb cddb cdparanoia cdr chardet cjk clarens cli colors cracklib crypt cups curl custom-cflags custom-cxxflags cxx dbi dbtool dbus designer designer-plugin device-mapper dga dia dirac directfb djbfft djvu domainkeys dri drm dts dv dvd dvdr dvdread dxr3 ebook edl elf emacs enca encode esd examples exif expat fame fastbuild fastcgi fbcon ffmpeg filter flac fluidsynth fontconfig fontforge foomaticdb fortran ftp gadu galago gcrypt gd gdbm geant4 geoip ggi gif gimp gimpprint glep glib glut gmp gnome gnutls google-gadgets gphoto2 gpm gps gs gsl gsm gtk gtk2 gtkhtml guidexml hal hepmc hesiod hppa i18n ical icecast iconv icu idea idn imagemagick imlib immqt-bc inquisitio ipv6 isc isdnlog ithreads jack javascript jbig jingle jpeg jpeg2k judy kde kerberos kpathsea lapack lasi latex lcms ldap leim libass libcaca libffi libmms libnotify libotf libsamplerate libwww live lm_sensors logrotate logwatch lua lyrics-screen lzo mad manhole matroska mbrola memcache metis mhash midi mikmod mmap mng modplug motif mozbranding mp3 mplayer mssql mudflap musepack musicbrainz mysql nas nautilus ncurses netpbm network-cron nfconntrack nfs nls nntp nptl nptlonly nsplugin ntlm offensive ogg openal openexr opengl openmp openssl oss ots overlays pam pango pbs pch pcre pdf pdo-external perl php plasma plotutils plugins png policykit portage portaudio postgres povray ppds pppd pulseaudio python pyzord qalculate qdbm qt3 qt3support qt4 quotas raw readline recode reflection rle rpc rrdtool rtc ruby samba sasl scanner schroedinger scim sdl seamonkey server session sid slang slp sms sndfile snmp song-screen soundex speex spell spl sqlite srt srtp ssh ssl startup-notification subtitles subversion suhosin supernodal svg swat sysfs syslog talkfilters tcl tcpd test tftp tga theora threads thumbnail thunar-vfs tidy tiff timidity tk tools truetype tslib tunepimp twolame udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vanim vcd vidix vim-syntax vorbis watchdog wavpack webdav webinstall webkit winbind wlan wma wmf xanim xattr xcb xchattext xcomposite xface xml xml2 xmp xmpi xorg xpm xrandr xscreensaver xsettings xulrunner xv xvid xvmc zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_ftp proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa synaptics tek4957 tslib ur98 virtualbox wacom void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" USERLAND="GNU" VIDEO_CARDS="stifb fbdev matrox dummy"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-09 21:27:06 UTC
Created attachment 194042 [details, diff]
Apply CC and CFLAGS in plugin/*/Makefile
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-09 21:29:27 UTC
Created attachment 194043 [details, diff]
Sadly patching the sources alone is not enough.
Comment 8 Cédric Krier gentoo-dev 2009-06-21 21:08:09 UTC
Fixed in openvpn-2.1_rc15