Bug 1869 - in tree build of frysk-imports fails
Summary: in tree build of frysk-imports fails
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 2235
  Show dependency treegraph
 
Reported: 2005-11-15 17:01 UTC by Sami Wagiaalla
Modified: 2006-01-31 16:06 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Wagiaalla 2005-11-15 17:01:55 UTC
The following error message is printed:

  File ./inua/dwarf/DebugAbbrev.java is specified more than once

And from IRC disscusion:

cagney \$(GEN_CLASSDIR)/files: lib${dir}.a
cagney         rm -rf \$(GEN_CLASSDIR)
cagney         mkdir -p \$(GEN_CLASSDIR)
cagney         for d in \$(top_builddir) \$(top_srcdir) ; do \
cagney                 for g in ${dirs} ; do \
cagney                         find \$\$d/\$\$g -name '*.java' -print ; \
cagney                 done ; \
cagney         done > \$@.tmp
cagney         echo TestRunner.java >> \$@.tmp
cagney         mv \$@.tmp \$@
cagney the logic assuming that $(top_builddir) != $(top_srcdir); no a way to
differentiate that?
Comment 1 Andrew Cagney 2005-11-15 17:28:51 UTC
Index: frysk-core/common/ChangeLog
2005-11-15  Andrew Cagney  <cagney@redhat.com>

        * Makefile.gen.sh ($(GEN_CLASSDIR)/files): Filter out duplicate
        directories.

this is a standard trick:

            p=\`cd \$\$d && pwd\` ; \
            case " \$\$dirs " in \
                *\$\$p* ) continue ;; \
            esac ; \
            dirs="\$\$dirs \$\$p" ; \