Re: [rvm-research] Resolving External References
Khaled Z Mahmoud <[email protected]> Wed, 6 Dec 2017 00:17:40 -0500
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <CAER=_eWqKYV=i-PRuyz-+YMRgqCL1=nbJ+YnxSqp9rg9p0-OMw@mail.gmail.com> |
Hi, I am now just experimenting with a simple function system call "int k_poc_sys_call" I have added relevant declarations in : ./rvm/src/org/jikesrvm/runtime/SysCall.java ./rvm/src/org/jikesrvm/runtime/BootRecord.java ./rvm/src/org/jikesrvm/tools/header_gen/GenerateInterfaceDeclarations.java ./tools/bootloader/sys.h ./tools/bootImageRunner/sys.C And I am still getting the error of : [exec] /home/kmahmou1/jikes/jikesrvm/target/FullAdaptiveMarkSweep_x86_64-linux/libjvm.so: undefined reference to `k_poc_sys_call' This function simply returns 0. There is no reference to any external library. On Mon, Dec 4, 2017 at 8:29 PM, Robin Garner <[email protected]> wrote: > Hi Khaled, > > Sounds like you need to add your libraries to the GCC command used to > build the boot image runner. > > You can track down the places where build.xml needs modifying by tracking > one of the other external libraries, such as gcspy or perfevent. Look for > the symbol perfevent.lib and add your libraries wherever you see a > reference to it. > > > You can get a better idea of what to do by looking at the ant task that > caused the failure. Ant prints the name of each task as it executes it, so > this is not hard to identify. > > cheers > > > On 05/12/17 05:32, Khaled Z Mahmoud wrote: > >> Hi, >> >> I think this is not a difficult question. We have some modifications to >> JikesRVM and we do place calls to C code via JNI. >> >> When I compile, I receive the following error: >> >> >> /home/*maikon*/jikes/jikesrvm/target/FullAdaptiveMarkSweep_x86_64-linux/libjvm.so: >> undefined reference to `SetPackageTimeWindowLimit' >> >> >> I am now using the latest version of JikesRVM. I know the so files that >> contain these functions. How shall I resolve this error ? >> >> Thank You >> >> -- >> Regards, >> Khaled Mahmoud >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> >> _______________________________________________ >> Jikesrvm-researchers mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers >> > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jikesrvm-researchers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers > -- Regards, Khaled Mahmoud ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers