You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Sean Qiu <se...@gmail.com> on 2009/03/19 05:48:50 UTC

[java6] Build error about HYTHR 0.2

Hi, All

I'm trying to merge latest updates in M9 to our Java6 branch. I get
following error messages while building  hdk.

1. ant -Dhy.no.thr=true
I got following error while running the test,

/hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
/hdk/jdk/jre/bin/libhyprt.so)
failed to open hyprt library.

2. ant
I can't build the classlib at all, it got following

     [exec]     ../shared/main.o ../shared/cmain.o
../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
-Xlinker --start-group
-L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
-L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
-lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
     [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
\$ORIGIN/ -Xlinker -rpath-link -Xlinker
-L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
     [exec] ../shared/main.o: In function `addDirsToPath':
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1071:
undefined reference to `main_get_executable_name'
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1119:
undefined reference to `main_mem_allocate_memory'
     [exec] ../shared/main.o: In function `main_addVMDirToPath':
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1538:
undefined reference to `main_get_executable_name'
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1559:
undefined reference to `main_mem_allocate_memory'
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1575:
undefined reference to `main_mem_free_memory'
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1579:
undefined reference to `main_mem_free_memory'
     [exec] ../shared/cmain.o: In function `main':
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:113:
undefined reference to `main_open_port_library'
     [exec]
/home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:117:
undefined reference to `main_lookup_name'
     [exec] collect2: ld returned 1 exit status
     [exec] make: *** [../java] Error 1


I've found some discussions about HYTHR 0.2 in
http://issues.apache.org/jira/browse/HARMONY-3090
But I'm not sure the progress.

Suggesion? Comments? Thank you very much.

-- 
Best Regards
Sean, Xiao Xia Qiu

Re: [java6] Build error about HYTHR 0.2

Posted by Regis <xu...@gmail.com>.
Sean Qiu wrote:
> Hi, All
> 
> I'm trying to merge latest updates in M9 to our Java6 branch. I get
> following error messages while building  hdk.
> 
> 1. ant -Dhy.no.thr=true
> I got following error while running the test,
> 
> /hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
> /hdk/jdk/jre/bin/libhyprt.so)
> failed to open hyprt library.
> 
> 2. ant
> I can't build the classlib at all, it got following
> 
>      [exec]     ../shared/main.o ../shared/cmain.o
> ../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
> -Xlinker --start-group
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
> /home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
> -lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
>      [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
> \$ORIGIN/ -Xlinker -rpath-link -Xlinker
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
>      [exec] ../shared/main.o: In function `addDirsToPath':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1071:
> undefined reference to `main_get_executable_name'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1119:
> undefined reference to `main_mem_allocate_memory'
>      [exec] ../shared/main.o: In function `main_addVMDirToPath':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1538:
> undefined reference to `main_get_executable_name'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1559:
> undefined reference to `main_mem_allocate_memory'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1575:
> undefined reference to `main_mem_free_memory'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1579:
> undefined reference to `main_mem_free_memory'
>      [exec] ../shared/cmain.o: In function `main':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:113:
> undefined reference to `main_open_port_library'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:117:
> undefined reference to `main_lookup_name'
>      [exec] collect2: ld returned 1 exit status
>      [exec] make: *** [../java] Error 1
> 
> 
> I've found some discussions about HYTHR 0.2 in
> http://issues.apache.org/jira/browse/HARMONY-3090
> But I'm not sure the progress.
> 
> Suggesion? Comments? Thank you very much.
> 

I don't think property "-Dhy.no.thr=true" should be used, and I can 
build classlib java6 branch several weeks ago, will try to rebuild it.

-- 
Best Regards,
Regis.

Re: [java6] Build error about HYTHR 0.2

Posted by Sean Qiu <se...@gmail.com>.
Mark had helped me with this issue.
Seems it is a PEBKAC[1] :-(

Please ignore it.

[1]http://catb.org/jargon/html/P/PEBKAC.html

2009/3/19 Sean Qiu <se...@gmail.com>:
> 2009/3/19 Mark Hindess <ma...@googlemail.com>
>>
>> In message <94...@mail.gmail.com>,
>> Sean Qiu writes:
>> >
>> > Hi, All
>> >
>> > I'm trying to merge latest updates in M9 to our Java6 branch.
>>
>> Cool.  I'd started doing this but I'd only tested the classlib build so
>> far.  (In fact, I'm not even sure how the java6 federation builds are
>> setup.  I assume you manually svn switch working_classlib to the branch?)
>>
>
> You're right. :-)
>
>> > I get following error messages while building  hdk.
>> >
>> > 1. ant -Dhy.no.thr=true
>> > I got following error while running the test,
>> >
>> > /hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
>> > /hdk/jdk/jre/bin/libhyprt.so)
>> > failed to open hyprt library.
>>
>> This is to be expected.  DRLVM does not support the 0.2 thread api (yet?).
>
>>
>> > 2. ant
>> > I can't build the classlib at all, it got following
>> >
>> >      [exec]     ../shared/main.o ../shared/cmain.o
>> > ../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
>> > -Xlinker --start-group
>> > -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
>> > -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
>> > /home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
>> > -lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
>> >      [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
>> > \$ORIGIN/ -Xlinker -rpath-link -Xlinker
>> > -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
>> >      [exec] ../shared/main.o: In function `addDirsToPath':
>> >      [exec]
>> > /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/lau
>> > ncher/unix/../shared/main.c:1071:
>> > undefined reference to `main_get_executable_name'
>>
>
> Yes, it could be successfully built with -Dhy.no.thread=true as I
> indicated in 1.
>
>> The main_* functions are only defined/required if you built the .o files with
>> HY_NO_THR defined.  But this should only happen if you set -Dhy.no.thread=true.
>> You'd probably get this kind of error if you tried to build with
>> -Dhy.no.thread=true and then build with -Dhy.no.thread=false without doing a
>
> Is that what we do while building federated build?
> The solution seems unnatural to me...
>
> Since HYTHR_0.2 is not supported yet, we'd better make sure the
> default building script can be successful at least.
> Does it make sense?  Or am I missing something?
>
>
>> clean.
>> h
>> Regards,
>>  Mark.
>>
>>
>>
>>
>
>
>
> --
> Best Regards
> Sean, Xiao Xia Qiu
>



-- 
Best Regards
Sean, Xiao Xia Qiu

Re: [java6] Build error about HYTHR 0.2

Posted by Sean Qiu <se...@gmail.com>.
2009/3/19 Mark Hindess <ma...@googlemail.com>
>
> In message <94...@mail.gmail.com>,
> Sean Qiu writes:
> >
> > Hi, All
> >
> > I'm trying to merge latest updates in M9 to our Java6 branch.
>
> Cool.  I'd started doing this but I'd only tested the classlib build so
> far.  (In fact, I'm not even sure how the java6 federation builds are
> setup.  I assume you manually svn switch working_classlib to the branch?)
>

You're right. :-)

> > I get following error messages while building  hdk.
> >
> > 1. ant -Dhy.no.thr=true
> > I got following error while running the test,
> >
> > /hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
> > /hdk/jdk/jre/bin/libhyprt.so)
> > failed to open hyprt library.
>
> This is to be expected.  DRLVM does not support the 0.2 thread api (yet?).

>
> > 2. ant
> > I can't build the classlib at all, it got following
> >
> >      [exec]     ../shared/main.o ../shared/cmain.o
> > ../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
> > -Xlinker --start-group
> > -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
> > -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
> > /home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
> > -lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
> >      [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
> > \$ORIGIN/ -Xlinker -rpath-link -Xlinker
> > -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
> >      [exec] ../shared/main.o: In function `addDirsToPath':
> >      [exec]
> > /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/lau
> > ncher/unix/../shared/main.c:1071:
> > undefined reference to `main_get_executable_name'
>

Yes, it could be successfully built with -Dhy.no.thread=true as I
indicated in 1.

> The main_* functions are only defined/required if you built the .o files with
> HY_NO_THR defined.  But this should only happen if you set -Dhy.no.thread=true.
> You'd probably get this kind of error if you tried to build with
> -Dhy.no.thread=true and then build with -Dhy.no.thread=false without doing a

Is that what we do while building federated build?
The solution seems unnatural to me...

Since HYTHR_0.2 is not supported yet, we'd better make sure the
default building script can be successful at least.
Does it make sense?  Or am I missing something?


> clean.
> h
> Regards,
>  Mark.
>
>
>
>



--
Best Regards
Sean, Xiao Xia Qiu

Re: [java6] Build error about HYTHR 0.2

Posted by Mark Hindess <ma...@googlemail.com>.
In message <94...@mail.gmail.com>,
Sean Qiu writes:
>
> Hi, All
> 
> I'm trying to merge latest updates in M9 to our Java6 branch.

Cool.  I'd started doing this but I'd only tested the classlib build so
far.  (In fact, I'm not even sure how the java6 federation builds are
setup.  I assume you manually svn switch working_classlib to the branch?)

> I get following error messages while building  hdk.
> 
> 1. ant -Dhy.no.thr=true
> I got following error while running the test,
> 
> /hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
> /hdk/jdk/jre/bin/libhyprt.so)
> failed to open hyprt library.

This is to be expected.  DRLVM does not support the 0.2 thread api (yet?).
 
> 2. ant
> I can't build the classlib at all, it got following
> 
>      [exec]     ../shared/main.o ../shared/cmain.o
> ../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
> -Xlinker --start-group
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
> /home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
> -lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
>      [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
> \$ORIGIN/ -Xlinker -rpath-link -Xlinker
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
>      [exec] ../shared/main.o: In function `addDirsToPath':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/lau
> ncher/unix/../shared/main.c:1071:
> undefined reference to `main_get_executable_name'

The main_* functions are only defined/required if you built the .o files with
HY_NO_THR defined.  But this should only happen if you set -Dhy.no.thread=true.
You'd probably get this kind of error if you tried to build with 
-Dhy.no.thread=true and then build with -Dhy.no.thread=false without doing a
clean.
h
Regards,
 Mark.





Re: [java6] Build error about HYTHR 0.2

Posted by Sean Qiu <se...@gmail.com>.
Yes, it is in federated build with DRLVM.

2009/3/19 Regis <xu...@gmail.com>

> Sean Qiu wrote:
>
>> Hi, All
>>
>> I'm trying to merge latest updates in M9 to our Java6 branch. I get
>> following error messages while building  hdk.
>>
>> 1. ant -Dhy.no.thr=true
>> I got following error while running the test,
>>
>> /hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
>> /hdk/jdk/jre/bin/libhyprt.so)
>> failed to open hyprt library.
>>
>> 2. ant
>> I can't build the classlib at all, it got following
>>
>>     [exec]     ../shared/main.o ../shared/cmain.o
>> ../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
>> -Xlinker --start-group
>> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
>> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
>> /home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
>> -lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
>>     [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
>> \$ORIGIN/ -Xlinker -rpath-link -Xlinker
>> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
>>     [exec] ../shared/main.o: In function `addDirsToPath':
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1071:
>> undefined reference to `main_get_executable_name'
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1119:
>> undefined reference to `main_mem_allocate_memory'
>>     [exec] ../shared/main.o: In function `main_addVMDirToPath':
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1538:
>> undefined reference to `main_get_executable_name'
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1559:
>> undefined reference to `main_mem_allocate_memory'
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1575:
>> undefined reference to `main_mem_free_memory'
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1579:
>> undefined reference to `main_mem_free_memory'
>>     [exec] ../shared/cmain.o: In function `main':
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:113:
>> undefined reference to `main_open_port_library'
>>     [exec]
>>
>> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:117:
>> undefined reference to `main_lookup_name'
>>     [exec] collect2: ld returned 1 exit status
>>     [exec] make: *** [../java] Error 1
>>
>>
>> I've found some discussions about HYTHR 0.2 in
>> http://issues.apache.org/jira/browse/HARMONY-3090
>> But I'm not sure the progress.
>>
>> Suggesion? Comments? Thank you very much.
>>
>>
> I just rebuild classlib java6 branch successfully just now, maybe problem
> in federated build script?
>
> --
> Best Regards,
> Regis.
>



-- 
Best Regards
Sean, Xiao Xia Qiu

Re: [java6] Build error about HYTHR 0.2

Posted by Regis <xu...@gmail.com>.
Sean Qiu wrote:
> Hi, All
> 
> I'm trying to merge latest updates in M9 to our Java6 branch. I get
> following error messages while building  hdk.
> 
> 1. ant -Dhy.no.thr=true
> I got following error while running the test,
> 
> /hdk/jdk/jre/bin/libhythr.so: version `HYTHR_0.2' not found (required by
> /hdk/jdk/jre/bin/libhyprt.so)
> failed to open hyprt library.
> 
> 2. ant
> I can't build the classlib at all, it got following
> 
>      [exec]     ../shared/main.o ../shared/cmain.o
> ../shared/launcher_copyright.o ../shared/strbuf.o ../shared/libhlp.o
> -Xlinker --start-group
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin/
> /home/xiaoxia/checkout/hdk6/working_classlib/deploy/lib/libhycommon.a
> -lhythr -lhyprt -Xlinker --end-group -o ../java -lc -lm -ldl \
>      [exec]     -Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker
> \$ORIGIN/ -Xlinker -rpath-link -Xlinker
> -L/home/xiaoxia/checkout/hdk6/working_classlib/deploy/jdk/jre/bin
>      [exec] ../shared/main.o: In function `addDirsToPath':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1071:
> undefined reference to `main_get_executable_name'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1119:
> undefined reference to `main_mem_allocate_memory'
>      [exec] ../shared/main.o: In function `main_addVMDirToPath':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1538:
> undefined reference to `main_get_executable_name'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1559:
> undefined reference to `main_mem_allocate_memory'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1575:
> undefined reference to `main_mem_free_memory'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/main.c:1579:
> undefined reference to `main_mem_free_memory'
>      [exec] ../shared/cmain.o: In function `main':
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:113:
> undefined reference to `main_open_port_library'
>      [exec]
> /home/xiaoxia/checkout/hdk6/working_classlib/modules/luni/src/main/native/launcher/unix/../shared/cmain.c:117:
> undefined reference to `main_lookup_name'
>      [exec] collect2: ld returned 1 exit status
>      [exec] make: *** [../java] Error 1
> 
> 
> I've found some discussions about HYTHR 0.2 in
> http://issues.apache.org/jira/browse/HARMONY-3090
> But I'm not sure the progress.
> 
> Suggesion? Comments? Thank you very much.
> 

I just rebuild classlib java6 branch successfully just now, maybe 
problem in federated build script?

-- 
Best Regards,
Regis.