Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237190 - dev-util/ccache breaks net-analyzer/wireshark-1.0.2, app-office/openoffice build
Summary: dev-util/ccache breaks net-analyzer/wireshark-1.0.2, app-office/openoffice build
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-09 14:47 UTC by Eugene Volchek
Modified: 2009-05-10 01:19 UTC (History)
5 users (show)

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


Attachments
Entire build log (build.log.gz,80.65 KB, text/plain)
2008-09-09 16:09 UTC, Eugene Volchek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Volchek 2008-09-09 14:47:49 UTC
emerge of wireshark fails with output:

i686-pc-linux-gnu-gcc -shared  .libs/plugin.o .libs/packet-wmx.o .libs/wimax_ffb_decoder.o .libs/wimax_fch_decoder.o .libs/wimax_pdu_decoder.o .libs/wimax_cdma_code_decoder.o .libs/wimax_hack_decoder.o .libs/wimax_phy_attributes_decoder.o .libs/mac_hd_generic_decoder.o .libs/mac_hd_type1_decoder.o .libs/mac_hd_type2_decoder.o .libs/mac_mgmt_msg_decoder.o .libs/msg_dcd.o .libs/msg_ucd.o .libs/msg_dlmap.o .libs/msg_ulmap.o .libs/msg_rng_req.o .libs/msg_rng_rsp.o .libs/msg_reg_req.o .libs/msg_reg_rsp.o .libs/msg_dreg.o .libs/msg_dsa.o .libs/msg_dsc.o .libs/msg_dsd.o .libs/msg_arq.o .libs/msg_sbc.o .libs/msg_pkm.o .libs/msg_aas_fbck.o .libs/msg_fpc.o .libs/msg_pmc.o .libs/msg_prc_lt_ctrl.o .libs/msg_aas_beam.o .libs/msg_res_cmd.o .libs/msg_rep.o .libs/msg_clk_cmp.o .libs/msg_dsx_rvd.o .libs/wimax_harq_map_decoder.o .libs/wimax_compact_dlmap_ie_decoder.o .libs/wimax_compact_ulmap_ie_decoder.o .libs/wimax_utils.o .libs/crc.o .libs/crc_data.o .libs/wimax_tlv.o  -L/usr/local/lib  -march=pentium4 -pthread -Wl,-O1 -Wl,-soname -Wl,wimax.so -o .libs/wimax.so
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:.libs/msg_dreg.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:.libs/msg_dreg.o:1: syntax error
collect2: ld returned 1 exit status
make[3]: *** [wimax.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/wireshark-1.0.2/work/wireshark-1.0.2/plugins/wimax'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/wireshark-1.0.2/work/wireshark-1.0.2/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/wireshark-1.0.2/work/wireshark-1.0.2'
make: *** [all] Error 2
 *
 * ERROR: net-analyzer/wireshark-1.0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2856:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-analyzer/wireshark-1.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/wireshark-1.0.2/temp/environment'.
 *

Reproducible: Always

Steps to Reproduce:
1. emerge wireshark
2.
3.

Actual Results:  
emerge fails


Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Timestamp of tree: Tue, 09 Sep 2008 03:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-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.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /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 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ "
LANG="be_BY.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
SYNC="rsync://proj-lx-28/gentoo-portage"
USE="X acl acpi alsa arts bash-completion berkdb bzip2 cli cracklib crypt cups dbus dri fbcon fortran gdbm gif gpm hal iconv isdnlog jpeg kde midi mmx mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3 qt4 readline reflection session spl sse sse2 ssl sysfs tcpd tiff truetype unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-09 14:51:44 UTC
Could you try rebuilding with MAKEOPTS=-j1 please? And do post more of the build output, because the lines where .libs/msg_dreg.o is built are omitted.
Comment 2 Eugene Volchek 2008-09-09 16:09:04 UTC
Created attachment 165033 [details]
Entire build log
Comment 3 Eugene Volchek 2008-09-09 16:17:35 UTC
The problem is in ccache. I tried to turn ccache off and wireshark emerged without a problem. When I turn ccache back on, the problem comes back. So the issue turns into ccache problem.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-09-10 05:47:41 UTC
Do you still reproduce this bug? Have you changed compiler recently?

@toolchain: do you have any ideas why this could happen? As I undrestand compiler change could cause this and if my suspect is correct I think it's good idea to clear ccache on each gcc change. What do you think?
Comment 5 Eugene Volchek 2008-09-10 09:10:53 UTC
I tried to reemerge wireshark with the other CCACHE_DIR and succeeded. It is strange because my system is about a week old and I didn't change gcc and it was initial wireshark emerge. Anyway, my problem has been resolved but ccache potential problem may still remain.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2008-09-10 09:57:29 UTC
Eugene that question was is it possible to reproduce bug you your machine? I think it's good idea to investigate this problem further and ask help on ccache development list, but if you unable to reproduce bug now we'll have to close it as-is.
Comment 7 Eugene Volchek 2008-09-10 16:12:13 UTC
Yes, I can. I did'n clear the cache but change CCACHE_DIR instead. I can reproduce it using old CCACHE_DIR.
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2008-09-10 16:47:40 UTC
you shouldn't need to clear the ccache when you change compilers.  ccache hashes the compiler executable mtime so it won't use cached data created with another compiler version.  worst case situation you have data in cache that can't be used, but it automatically gets wiped as you run out of space.
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2008-09-10 20:41:32 UTC
Thank you Ryan. But then can you suggest further steps how to debug this problem? 
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2008-09-14 12:19:12 UTC
no idea unfortunately.
Comment 11 SpanKY gentoo-dev 2008-09-17 09:24:00 UTC
i imagine a corrupted ccache dir could cause problems as once ccache things its cached files are OK, it wont recheck things
Comment 12 Pacho Ramos gentoo-dev 2008-10-20 20:43:04 UTC
I get the same problem in one of my x86-64 systems when merging openoffice-3.0 with ccache enabled (it success with it disabled):
echo unxlngx6.pro/slo/regimpl.o unxlngx6.pro/slo/regkey.o unxlngx6.pro/slo/registry.o unxlngx6.pro/slo/keyimpl.o unxlngx6.pro/slo/reflread.o unxlngx6.pro/slo/reflwrit.o | xargs -n1 > ../unxlngx6.pro/slb/regcpp.lib
nm: ../unxlngx6.pro/slo/reflwrit.o: File format not recognized
dmake:  Error code 1, while making '../unxlngx6.pro/slb/regcpp.lib'
dmake:  '../unxlngx6.pro/slb/regcpp.lib' removed.
Running processes: 0

1 module(s): 
        registry
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/registry/source

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from registry"

rmdir /tmp/3978
make: *** [stamp/build] Error 1

Can this be handled in this bug report or should I open another one? Thanks
Comment 13 Peter Volkov (RETIRED) gentoo-dev 2008-10-21 06:04:39 UTC
I don't think you need to open new bug. I just CC openoffice maintainer here, so he'll be aware about this bug. At this moment we have no solution for this bug besides idea that this bug is cause by cache corruption.
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-10-21 08:37:59 UTC
for somebody that only changed their CCACHE_DIR, could you please find the files with the matching path and name where one caused the problem, and the other didn't, and attach both .o files?
Comment 15 Mark Loeser (RETIRED) gentoo-dev 2009-05-10 01:19:13 UTC
Robin asked for some info and never got it...I'm putting this to needinfo.