Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 239496
Alias:
Product:
Component:
Status: RESOLVED
Resolution: WONTFIX
Assigned To: PMS/EAPI Bugs <pms-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christian Parpart <trapni@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 239496 depends on: Show dependency tree
Bug 239496 blocks: 206822
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-10-04 04:45 0000
the most common use-case might remain to multilib ebuilds, or to badly designed
filenames in a source tree.
however, what happens is, when you compile two files named equally (or even
same content BUT different compile flags), than ccache returns a wrong binary
on second compile.
in my case, the foo.c gets compiled for two ABIs (amd64 first, then x86) and
the second compile however produces the first ABIs output, as ccache doesn't
seem to care about the different cflags.
Instead of telling the users not to enable ccache when compiling package foo,
i'd rather recomment supporting explicit ccache-disabling per ebuild.

RESTRICT="ccache"

Any thoughts?

------- Comment #1 From Zac Medico 2008-10-04 05:57:46 0000 -------
This should do the trick:

export CCACHE_DISABLE=1

------- Comment #2 From Martin Väth 2008-10-04 07:28:17 0000 -------
(In reply to comment #0)
> as ccache doesn't seem to care about the different cflags.

There must be wrong something else: ccache _does_ care about cflags.

------- Comment #3 From Christian Parpart 2008-10-13 20:01:04 0000 -------
(In reply to comment #2)
> (In reply to comment #0)
> > as ccache doesn't seem to care about the different cflags.
> 
> There must be wrong something else: ccache _does_ care about cflags.
> 

well, that's why i've passed -DABI=.... to it, but somehow, ppl still filled
ccache-related compile issues. *maybe* their cache/system screwed up.

However, just like endusers are able to set FEATURES=ccache/distcc, i'd welcome
to see a RESTRICT=ccache/distcc aswell.

------- Comment #4 From SpanKY 2008-11-02 05:52:42 0000 -------
so to spread misinformation out there, you propose adding a RESTRICT for a
feature that lacks a real bug/example of where it causes a problem ?

------- Comment #5 From SpanKY 2008-11-03 06:21:29 0000 -------
actually, i just realized that we're talking about RESTRICT here which means
you're proposing having ebuild authors add this to their ebuilds.  the last
thing we want is random people throwing this RESTRICT around.  if there was
real need for this, we'd have a real bug report to look at.  until that
happens, there's no point in introducing this as a RESTRICT which will most
likely be wrong 99% of the time.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug