Bug 3448 - Random strange build errors
Summary: Random strange build errors
Status: RESOLVED DUPLICATE of bug 3454
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 16:05 UTC by Mike Cvet
Modified: 2006-11-21 21:35 UTC (History)
1 user (show)

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 Mike Cvet 2006-11-02 16:05:06 UTC
Occasionally, after making a non-critical change in frysk and running 'make',
the following error is presented:

frysk/bindir/fstack.o: In function `fstack$4::notifyFile(java::lang::String*)':
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:154:
undefined reference to `frysk::proc::Manager::class$'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:154:
undefined reference to `frysk::proc::Manager::host'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:159:
undefined reference to `frysk::proc::Manager::eventLoop'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:162:
undefined reference to `frysk::proc::ProcId::class$'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:162:
undefined reference to `frysk::proc::ProcId::ProcId(int)'
frysk/bindir/fstack.o: In function `fstack::main(JArray<java::lang::String*>*)':
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:182:
undefined reference to
`frysk::util::StacktraceObserver::class$'/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:182:
undefined reference to
`frysk::util::StacktraceObserver::StacktraceObserver(frysk::proc::Proc*,
frysk::event::Event*)'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:190:
undefined reference to `frysk::proc::Manager::class$'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:190:
undefined reference to `frysk::proc::Manager::eventLoop'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:191:
undefined reference to `frysk::util::StacktraceObserver::toPrint()'
frysk/bindir/fstack.o: In function `fstack$5::execute()':
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:186:
undefined reference to `frysk::proc::Manager::class$'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fstack.java:186:
undefined reference to `frysk::proc::Manager::eventLoop'
frysk/bindir/fstack.o:(.data.rel+0x5a4): undefined reference to
`frysk::proc::Proc::class$'
collect2: ld returned 1 exit status
make[2]: *** [frysk/bindir/fstack] Error 1
make[2]: *** Waiting for unfinished jobs....
frysk/bindir/fcrash.o: In function `fcrash::finit$()':
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fcrash.java:54:
undefined reference to `frysk::util::FCrash::class$'
/home/yyz/mcvet/workspace/frysk/frysk-core/frysk/bindir/fcrash.java:54:
undefined reference to `frysk::util::FCrash::FCrash()'
frysk/bindir/fcrash.o:(.data.rel+0x3e4): undefined reference to
`frysk::util::FCrash::class$'
collect2: ld returned 1 exit status
make[2]: *** [frysk/bindir/fcrash] Error 1
make[2]: Leaving directory `/notnfs/build/frysk-core'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/notnfs/build/frysk-core'
make: *** [all-recursive] Error 1


This requires a deletion of the build directory and a re-runnning of the autogen
script to rectify.
Comment 1 Nurdin Premji 2006-11-03 15:54:51 UTC
There was an issue with the way we were testing classes for main files.
previously we used a "grep main" sort of thing and now we are using a jv-scan
--find_main which is a little more robust and avoids finding the word main
inside a string quote or comment for example.

This was marked as Bug 3454
Can you confirm that this fixes your issue.
Comment 2 Andrew Cagney 2006-11-21 21:35:37 UTC

*** This bug has been marked as a duplicate of 3454 ***