build fails - what next?

2006-02-14 Thread karan malhi
I followed the steps on the incubator website to build classlib from 
source. Build fails. What should I do next? Should I file a JIRA. I 
tried asking questions on the IRC channel but looks like that channel is 
just for general chat and not serious issues


--
Karan Singh



Re: build fails - what next?

2006-02-14 Thread karan malhi

Alexey,
Thanks for such a quick response. I have copied the errors below:

compile.api:
[echo] Compiling api classes from 
/home/karan/projects/Harmony/modules/security2/src/common/javasrc, 
/home/karan/projects/Harmony/modules/security2/src/linux/javasrc
   [javac] Compiling 1 source file to 
/home/karan/projects/Harmony/modules/security2/build/classes

   [javac] --
   [javac] 1. ERROR in 
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java

   [javac]  (at line 63)
   [javac] encodedParams = (byte []) s.readUnshared();
   [javac] 
   [javac] The method readUnshared() is undefined for the type 
ObjectInputStream

   [javac] --
   [javac] 2. ERROR in 
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java

   [javac]  (at line 64)
   [javac] encryptedContent = (byte []) s.readUnshared();
   [javac]
   [javac] The method readUnshared() is undefined for the type 
ObjectInputStream

   [javac] --
   [javac] 3. ERROR in 
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java

   [javac]  (at line 65)
   [javac] sealAlg = (String) s.readUnshared();
   [javac]  
   [javac] The method readUnshared() is undefined for the type 
ObjectInputStream

   [javac] --
   [javac] 4. ERROR in 
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java

   [javac]  (at line 66)
   [javac] paramsAlg = (String) s.readUnshared();
   [javac]
   [javac] The method readUnshared() is undefined for the type 
ObjectInputStream

   [javac] --
   [javac] 4 problems (4 errors)

BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:299: 
Compile failed; see the compiler error output for details.



Alexey Petrenko wrote:


First of all you can add error message to your post :)

--
Alexey A. Petrenko
Intel Middleware Products Division
 



--
Karan Singh



Re: build fails - what next?

2006-02-14 Thread Alexey Petrenko
I can not reproduce your errors on my machine with latest sources.

So you can try to update your sources and check the build environment.

Which commnad do you run for building? I've tried to run ant from
classlib/trunk/make directory.

--
Alexey A. Petrenko
Intel Middleware Products Division


Re: build fails - what next?

2006-02-14 Thread karan malhi
I just tried to follow the steps to build classlib. Here is the link to 
the page I followed the instructions from.


http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html

I ran ant from the Harmony/make folder

Alexey Petrenko wrote:


I can not reproduce your errors on my machine with latest sources.

So you can try to update your sources and check the build environment.

Which commnad do you run for building? I've tried to run ant from
classlib/trunk/make directory.

--
Alexey A. Petrenko
Intel Middleware Products Division
 



--
Karan Singh



Re: build fails - what next?

2006-02-14 Thread Alexey Petrenko
[javac] 1. ERROR in
 /home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java
[javac]  (at line 63)
[javac] encodedParams = (byte []) s.readUnshared();
[javac] 
[javac] The method readUnshared() is undefined for the type
 ObjectInputStream

What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division


Re: build fails - what next?

2006-02-14 Thread Tim Ellison
Can you tell us which JDK you are using build the code? and which platform?

FWIW I just tried building the code (at SVN revision 377734) with Sun's
JDK 1.4.2 and it worked ok.

Regards,
Tim

karan malhi wrote:
 I just tried to follow the steps to build classlib. Here is the link to
 the page I followed the instructions from.
 
 http://incubator.apache.org/harmony/subcomponents/classlibrary/build_classlib.html
 
 
 I ran ant from the Harmony/make folder
 
 Alexey Petrenko wrote:
 
 I can not reproduce your errors on my machine with latest sources.

 So you can try to update your sources and check the build environment.

 Which commnad do you run for building? I've tried to run ant from
 classlib/trunk/make directory.

 -- 
 Alexey A. Petrenko
 Intel Middleware Products Division
  

 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.


Re: build fails - what next?

2006-02-14 Thread karan malhi

[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre VM 
version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free Software 
Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java
  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
   



What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 



--
Karan Singh



Re: build fails - what next?

2006-02-14 Thread Geir Magnusson Jr

That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:

[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre VM 
version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free Software 
Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  


What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 





Re: build fails - what next?

2006-02-14 Thread karan malhi

I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: The 
following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free Software 
Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  



What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 







--
Karan Singh



Re: build fails - what next?

2006-02-14 Thread Alexey Petrenko
JAVA_HOME will not help if you want to run ant on different JDK.
set JAVACMD to the full path to java executable.

--
Alexey A. Petrenko
Intel Middleware Products Division


Re: build fails - what next?

2006-02-14 Thread Geir Magnusson Jr

ok.  Now we're making progress.

Did you look at what that line in the xml document is?  It's the c/c++ 
compiler.


There's a file outerr.txt  That should have more information about 
what exactly failed...


Can you look there and report back?


karan malhi wrote:

I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: The 
following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free Software 
Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  



What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 









Re: build fails - what next?

2006-02-14 Thread Geir Magnusson Jr
Please - always provide at least a snippet of the note to which you are 
replying (including author) to make it easy for someone to read the 
thread...




Alexey Petrenko wrote:

JAVA_HOME will not help if you want to run ant on different JDK.
set JAVACMD to the full path to java executable.

--
Alexey A. Petrenko
Intel Middleware Products Division




Re: build fails - what next?

2006-02-14 Thread Oliver Deakin

Hi Karan,

Line 72 of jaasnix.xml is:
exec executable=${compiler.name} output=${tmp}/outerr.txt 
failonerror=true


so its a call to the make command on your system. It also produces 
output from the make into ${tmp}/outerr.txt, which I believe
expands to modules/security2/build/tmp/outerr.txt (at least that is 
where it appears on my machine). Inside that file there
should be error messages from the build which will be more helpful for 
diagnosing the problem.


--
Oliver Deakin
IBM United Kingdom Limited



karan malhi wrote:

I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: The 
following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free Software 
Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  



What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 











Re: build fails - what next? -- outerr.txt

2006-02-14 Thread karan malhi

Below are the contents of the file outerr.txt

gcc: installation problem, cannot exec 'cc1plus': No such file or directory

I dont know why it is still saying gcc problem. I specified a JAVACMD 
variable to point to the java executable under jdk1.5/bin,  as Alexey 
had mentioned in a previous email.


Geir Magnusson Jr wrote:


ok.  Now we're making progress.

Did you look at what that line in the xml document is?  It's the c/c++ 
compiler.


There's a file outerr.txt  That should have more information about 
what exactly failed...


Can you look there and report back?


karan malhi wrote:


I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: 
The following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free 
Software Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  




What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 











--
Karan Singh



Re: build fails - what next? -- outerr.txt

2006-02-14 Thread Geir Magnusson Jr
It has nothing to do w/ Java.  That's the C++ compiler for GCC.  Your 
installation of GCC is incomplete it appears - it doesn't seem to have 
C++ installed.


(Hey Tim... what was that you were saying about C++??)

geir



karan malhi wrote:

Below are the contents of the file outerr.txt

gcc: installation problem, cannot exec 'cc1plus': No such file or directory

I dont know why it is still saying gcc problem. I specified a JAVACMD 
variable to point to the java executable under jdk1.5/bin,  as Alexey 
had mentioned in a previous email.


Geir Magnusson Jr wrote:


ok.  Now we're making progress.

Did you look at what that line in the xml document is?  It's the c/c++ 
compiler.


There's a file outerr.txt  That should have more information about 
what exactly failed...


Can you look there and report back?


karan malhi wrote:


I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: 
The following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free 
Software Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  




What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 













Re: build fails - what next? -- outerr.txt

2006-02-14 Thread Alexey Petrenko
 I specified a JAVACMD variable to point to the java executable
 under jdk1.5/bin,  as Alexey had mentioned in a previous email.
Did it build Java part after that?

--
Alexey A. Petrenko
Intel Middleware Products Division


Re: build fails - what next? -- outerr.txt

2006-02-14 Thread karan malhi
I dont know why it is still saying gcc problem. I specified a JAVACMD 
variable to point to the java executable under jdk1.5/bin,  as Alexey 
had mentioned in a previous email. 


I didnt realize it was a gcc issue and not a gcj issue. Sorry

Geir Magnusson Jr wrote:


ok.  Now we're making progress.

Did you look at what that line in the xml document is?  It's the c/c++ 
compiler.


There's a file outerr.txt  That should have more information about 
what exactly failed...


Can you look there and report back?


karan malhi wrote:


I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: 
The following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free 
Software Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  




What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 











--
Karan Singh



Re: build fails - what next? -- outerr.txt

2006-02-14 Thread Geir Magnusson Jr

no problem.  We're here to help. This stuff isn't always obvious...

karan malhi wrote:
I dont know why it is still saying gcc problem. I specified a JAVACMD 
variable to point to the java executable under jdk1.5/bin,  as Alexey 
had mentioned in a previous email. 


I didnt realize it was a gcc issue and not a gcj issue. Sorry

Geir Magnusson Jr wrote:


ok.  Now we're making progress.

Did you look at what that line in the xml document is?  It's the c/c++ 
compiler.


There's a file outerr.txt  That should have more information about 
what exactly failed...


Can you look there and report back?


karan malhi wrote:


I set JAVA_HOME to jdk1.5 and the build still fails

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1033)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version = 
1.5.0_06-b05 vendor = Sun Microsystems Inc.


BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error 
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following 
error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/build.xml:331: 
The following error occurred while executing this line:
/home/karan/projects/Harmony/modules/security2/make/native/linux/jaasnix.xml:72: 
exec returned: 1



Geir Magnusson Jr wrote:


That's the problem.  As far as I know, GCJ isn't quite complete yet...



karan malhi wrote:


[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
VM version = 4.0.2 20051125 (Red Hat 4.0.2-8) vendor = Free 
Software Foundation, Inc.



Alexey Petrenko wrote:


  [javac] 1. ERROR in
/home/karan/projects/Harmony/modules/security2/src/common/javasrc/javax/crypto/SealedObject.java 


  [javac]  (at line 63)
  [javac] encodedParams = (byte []) s.readUnshared();
  [javac] 
  [javac] The method readUnshared() is undefined for the type
ObjectInputStream
  




What JVM do you use to run ant? It seems that there is no
ObjectInputStream.readUnshared method in your JVM...

--
Alexey A. Petrenko
Intel Middleware Products Division
 













Re: build fails - what next?

2006-02-14 Thread Stuart Ballard
Geir Magnusson Jr geir at pobox.com writes:
 
 That's the problem.  As far as I know, GCJ isn't quite complete yet...
 

[javac]  (at line 63)
[javac] encodedParams = (byte []) s.readUnshared();
[javac] 
[javac] The method readUnshared() is undefined for the type
  ObjectInputStream

http://www.kaffe.org/~stuart/japi/htmlout/cvs/h-jdk14-classpath#err_missing_java_io

Congratulations! You managed to hit one of the only two missing methods in
Classpath's implementation of java.io. Might want to report what this breaks on
the Classpath list - they're usually quick to fix holes like this if they break
a real app, especially if it's a Free one.

Of course, getting it fixed is an entirely different issue from getting it into
gcj in a released version of your distro...

Stuart.



Re: build fails - what next? -- outerr.txt

2006-02-14 Thread Alexey Petrenko
So Java part is built and you got troubles with gcc...


2006/2/14, karan malhi [EMAIL PROTECTED]:
 Alexey,
 I have set the JAVACMD variable to point to java executable explicitly
 as you can see below:
 [EMAIL PROTECTED] make]$ echo $JAVACMD
 /home/karan/jdk1.5.0_06/bin/java

 Below is the complete output after running ant.

 [EMAIL PROTECTED] make]$ ant
 Buildfile: build.xml

 default:
  [echo]
  [echo] 
  [echo] Building Java component archives...
  [echo] 

 clean-bin:
[delete] Deleting 1645 files from /home/karan/projects/Harmony/bin
[delete] Deleted 85 directories from /home/karan/projects/Harmony/bin

 clean-layout:
[delete] Deleting 34 files from /home/karan/projects/Harmony/deploy

 clean-package:
[delete] Deleting 11 files from /home/karan/projects/Harmony/components
[delete] Deleted 1 directory from /home/karan/projects/Harmony/components

 clean:

 copy-resources:
 [mkdir] Created dir: /home/karan/projects/Harmony/bin
  [copy] Copying 2 files to /home/karan/projects/Harmony/bin

 compile:
 [javac] Compiling 1280 source files to /home/karan/projects/Harmony/bin
 [javac] Note: Some input files use or override a deprecated API.
 [javac] Note: Recompile with -Xlint:deprecation for details.

 package:
 [mkdir] Created dir: /home/karan/projects/Harmony/components
   [jar] Building jar:
 /home/karan/projects/Harmony/components/archive.jar
   [jar] Building jar:
 /home/karan/projects/Harmony/components/kernel-stubs.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/luni.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/nio.jar
   [jar] Building jar:
 /home/karan/projects/Harmony/components/nio_char.jar
   [jar] Building jar:
 /home/karan/projects/Harmony/components/security.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/x-net.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/text.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/math.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/regex.jar
   [jar] Building jar: /home/karan/projects/Harmony/components/sql.jar

 layout:
  [copy] Copying 2 files to
 /home/karan/projects/Harmony/deploy/jre/lib/boot
  [copy] Copying 11 files to
 /home/karan/projects/Harmony/deploy/jre/lib/boot
  [copy] Copying 1 file to
 /home/karan/projects/Harmony/deploy/jre/lib/boot
  [copy] Copying 18 files to /home/karan/projects/Harmony/deploy/jre/bin
  [copy] Copying 2 files to
 /home/karan/projects/Harmony/deploy/jre/lib/security

 default:
  [echo]
  [echo] 
  [echo] Building native libs and executables...
  [echo] 

 init:

 windows-properties:

 linux-properties:

 properties:

 overlay-oss:
 [unzip] Expanding:
 /home/karan/projects/Harmony/depends/oss/fdlibm_5.2.zip into
 /home/karan/projects/Harmony/native-src/linux.IA32/fdlibm
 [unzip] Expanding:
 /home/karan/projects/Harmony/depends/oss/zlib_1.2.3.zip into
 /home/karan/projects/Harmony/native-src/linux.IA32/zlib
 [unzip] Expanding:
 /home/karan/projects/Harmony/depends/oss/linux.IA32/icu4c-3.4-harmony.zip
 into /home/karan/projects/Harmony/native-src/linux.IA32

 make-clean:

 make-all:

 timestamp:
  [echo] build-date=20060214
  [echo] build-time=20060214_1115)
  [echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
  [echo] with java home = /home/karan/jdk1.5.0_06/jre VM version =
 1.5.0_06-b05 vendor = Sun Microsystems Inc.

 setname.win:

 setname.linux:

 init:
  [echo] platform name=lnx
  [echo] if.x86_64=${if.x86_64}
  [echo] if.x86=true
  [echo] if.ipf=${if.ipf}
  [echo] create base dirs...

 init.java_home:
  [echo] JAVA_HOME=/home/karan/jdk1.5.0_06

 init.win:

 init.linux:

 compile.api:
  [echo] Compiling api classes from
 /home/karan/projects/Harmony/modules/security2/src/common/javasrc,
 /home/karan/projects/Harmony/modules/security2/src/linux/javasrc

 build.jars:

 build.one.jar:

 build.one.jar:

 build.one.jar:

 build.native:
  [echo]
 jni_h.path=/home/karan/projects/Harmony/native-src/linux.IA32/include
  [echo]
 jni_md_h.path=/home/karan/projects/Harmony/native-src/linux.IA32/include

 init:
  [echo] native_compiler.name=gcc
  [echo] library.name=jaasnix
  [echo]
 ntvlibname.path=/home/karan/projects/Harmony/modules/security2/src/linux/other/jaasnix

 compile.linux.native:
  [echo] make linux native...
  [echo]
 path.to.build.native=/home/karan/projects/Harmony/modules/security2/src/linux/other/jaasnix

 BUILD FAILED
 /home/karan/projects/Harmony/make/build.xml:41: The following error
 occurred while executing this line:
 /home/karan/projects/Harmony/native-src/build.xml:103: The following
 error 

Re: build fails - what next? -- outerr.txt

2006-02-14 Thread karan malhi

The build was successful. The problem was with gcc-c++.
Thanks for all the help.

Alexey Petrenko wrote:


So Java part is built and you got troubles with gcc...


2006/2/14, karan malhi [EMAIL PROTECTED]:
 


Alexey,
I have set the JAVACMD variable to point to java executable explicitly
as you can see below:
   [EMAIL PROTECTED] make]$ echo $JAVACMD
   /home/karan/jdk1.5.0_06/bin/java

Below is the complete output after running ant.

[EMAIL PROTECTED] make]$ ant
Buildfile: build.xml

default:
[echo]
[echo] 
[echo] Building Java component archives...
[echo] 

clean-bin:
  [delete] Deleting 1645 files from /home/karan/projects/Harmony/bin
  [delete] Deleted 85 directories from /home/karan/projects/Harmony/bin

clean-layout:
  [delete] Deleting 34 files from /home/karan/projects/Harmony/deploy

clean-package:
  [delete] Deleting 11 files from /home/karan/projects/Harmony/components
  [delete] Deleted 1 directory from /home/karan/projects/Harmony/components

clean:

copy-resources:
   [mkdir] Created dir: /home/karan/projects/Harmony/bin
[copy] Copying 2 files to /home/karan/projects/Harmony/bin

compile:
   [javac] Compiling 1280 source files to /home/karan/projects/Harmony/bin
   [javac] Note: Some input files use or override a deprecated API.
   [javac] Note: Recompile with -Xlint:deprecation for details.

package:
   [mkdir] Created dir: /home/karan/projects/Harmony/components
 [jar] Building jar:
/home/karan/projects/Harmony/components/archive.jar
 [jar] Building jar:
/home/karan/projects/Harmony/components/kernel-stubs.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/luni.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/nio.jar
 [jar] Building jar:
/home/karan/projects/Harmony/components/nio_char.jar
 [jar] Building jar:
/home/karan/projects/Harmony/components/security.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/x-net.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/text.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/math.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/regex.jar
 [jar] Building jar: /home/karan/projects/Harmony/components/sql.jar

layout:
[copy] Copying 2 files to
/home/karan/projects/Harmony/deploy/jre/lib/boot
[copy] Copying 11 files to
/home/karan/projects/Harmony/deploy/jre/lib/boot
[copy] Copying 1 file to
/home/karan/projects/Harmony/deploy/jre/lib/boot
[copy] Copying 18 files to /home/karan/projects/Harmony/deploy/jre/bin
[copy] Copying 2 files to
/home/karan/projects/Harmony/deploy/jre/lib/security

default:
[echo]
[echo] 
[echo] Building native libs and executables...
[echo] 

init:

windows-properties:

linux-properties:

properties:

overlay-oss:
   [unzip] Expanding:
/home/karan/projects/Harmony/depends/oss/fdlibm_5.2.zip into
/home/karan/projects/Harmony/native-src/linux.IA32/fdlibm
   [unzip] Expanding:
/home/karan/projects/Harmony/depends/oss/zlib_1.2.3.zip into
/home/karan/projects/Harmony/native-src/linux.IA32/zlib
   [unzip] Expanding:
/home/karan/projects/Harmony/depends/oss/linux.IA32/icu4c-3.4-harmony.zip
into /home/karan/projects/Harmony/native-src/linux.IA32

make-clean:

make-all:

timestamp:
[echo] build-date=20060214
[echo] build-time=20060214_1115)
[echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
[echo] with java home = /home/karan/jdk1.5.0_06/jre VM version =
1.5.0_06-b05 vendor = Sun Microsystems Inc.

setname.win:

setname.linux:

init:
[echo] platform name=lnx
[echo] if.x86_64=${if.x86_64}
[echo] if.x86=true
[echo] if.ipf=${if.ipf}
[echo] create base dirs...

init.java_home:
[echo] JAVA_HOME=/home/karan/jdk1.5.0_06

init.win:

init.linux:

compile.api:
[echo] Compiling api classes from
/home/karan/projects/Harmony/modules/security2/src/common/javasrc,
/home/karan/projects/Harmony/modules/security2/src/linux/javasrc

build.jars:

build.one.jar:

build.one.jar:

build.one.jar:

build.native:
[echo]
jni_h.path=/home/karan/projects/Harmony/native-src/linux.IA32/include
[echo]
jni_md_h.path=/home/karan/projects/Harmony/native-src/linux.IA32/include

init:
[echo] native_compiler.name=gcc
[echo] library.name=jaasnix
[echo]
ntvlibname.path=/home/karan/projects/Harmony/modules/security2/src/linux/other/jaasnix

compile.linux.native:
[echo] make linux native...
[echo]
path.to.build.native=/home/karan/projects/Harmony/modules/security2/src/linux/other/jaasnix

BUILD FAILED
/home/karan/projects/Harmony/make/build.xml:41: The following error
occurred while executing this line:
/home/karan/projects/Harmony/native-src/build.xml:103: The following
error occurred while executing this line:

Re: build fails - what next? -- outerr.txt

2006-02-14 Thread Tim Ellison
great -- let us know what you do with it!

Regards,
Tim

karan malhi wrote:
 The build was successful. The problem was with gcc-c++.
 Thanks for all the help.
 
 Alexey Petrenko wrote:
 
 So Java part is built and you got troubles with gcc...


 2006/2/14, karan malhi [EMAIL PROTECTED]:
  

 Alexey,
 I have set the JAVACMD variable to point to java executable explicitly
 as you can see below:
[EMAIL PROTECTED] make]$ echo $JAVACMD
/home/karan/jdk1.5.0_06/bin/java

 Below is the complete output after running ant.

 [EMAIL PROTECTED] make]$ ant
 Buildfile: build.xml

 default:
 [echo]
 [echo] 
 [echo] Building Java component archives...
 [echo] 

 clean-bin:
   [delete] Deleting 1645 files from /home/karan/projects/Harmony/bin
   [delete] Deleted 85 directories from /home/karan/projects/Harmony/bin

 clean-layout:
   [delete] Deleting 34 files from /home/karan/projects/Harmony/deploy

 clean-package:
   [delete] Deleting 11 files from
 /home/karan/projects/Harmony/components
   [delete] Deleted 1 directory from
 /home/karan/projects/Harmony/components

 clean:

 copy-resources:
[mkdir] Created dir: /home/karan/projects/Harmony/bin
 [copy] Copying 2 files to /home/karan/projects/Harmony/bin

 compile:
[javac] Compiling 1280 source files to
 /home/karan/projects/Harmony/bin
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.

 package:
[mkdir] Created dir: /home/karan/projects/Harmony/components
  [jar] Building jar:
 /home/karan/projects/Harmony/components/archive.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/kernel-stubs.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/luni.jar
  [jar] Building jar: /home/karan/projects/Harmony/components/nio.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/nio_char.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/security.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/x-net.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/text.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/math.jar
  [jar] Building jar:
 /home/karan/projects/Harmony/components/regex.jar
  [jar] Building jar: /home/karan/projects/Harmony/components/sql.jar

 layout:
 [copy] Copying 2 files to
 /home/karan/projects/Harmony/deploy/jre/lib/boot
 [copy] Copying 11 files to
 /home/karan/projects/Harmony/deploy/jre/lib/boot
 [copy] Copying 1 file to
 /home/karan/projects/Harmony/deploy/jre/lib/boot
 [copy] Copying 18 files to
 /home/karan/projects/Harmony/deploy/jre/bin
 [copy] Copying 2 files to
 /home/karan/projects/Harmony/deploy/jre/lib/security

 default:
 [echo]
 [echo] 
 [echo] Building native libs and executables...
 [echo] 

 init:

 windows-properties:

 linux-properties:

 properties:

 overlay-oss:
[unzip] Expanding:
 /home/karan/projects/Harmony/depends/oss/fdlibm_5.2.zip into
 /home/karan/projects/Harmony/native-src/linux.IA32/fdlibm
[unzip] Expanding:
 /home/karan/projects/Harmony/depends/oss/zlib_1.2.3.zip into
 /home/karan/projects/Harmony/native-src/linux.IA32/zlib
[unzip] Expanding:
 /home/karan/projects/Harmony/depends/oss/linux.IA32/icu4c-3.4-harmony.zip

 into /home/karan/projects/Harmony/native-src/linux.IA32

 make-clean:

 make-all:

 timestamp:
 [echo] build-date=20060214
 [echo] build-time=20060214_1115)
 [echo] on platform=Linux version=2.6.14-1.1656_FC4 arch=i386
 [echo] with java home = /home/karan/jdk1.5.0_06/jre VM version =
 1.5.0_06-b05 vendor = Sun Microsystems Inc.

 setname.win:

 setname.linux:

 init:
 [echo] platform name=lnx
 [echo] if.x86_64=${if.x86_64}
 [echo] if.x86=true
 [echo] if.ipf=${if.ipf}
 [echo] create base dirs...

 init.java_home:
 [echo] JAVA_HOME=/home/karan/jdk1.5.0_06

 init.win:

 init.linux:

 compile.api:
 [echo] Compiling api classes from
 /home/karan/projects/Harmony/modules/security2/src/common/javasrc,
 /home/karan/projects/Harmony/modules/security2/src/linux/javasrc

 build.jars:

 build.one.jar:

 build.one.jar:

 build.one.jar:

 build.native:
 [echo]
 jni_h.path=/home/karan/projects/Harmony/native-src/linux.IA32/include
 [echo]
 jni_md_h.path=/home/karan/projects/Harmony/native-src/linux.IA32/include

 init:
 [echo] native_compiler.name=gcc
 [echo] library.name=jaasnix
 [echo]
 ntvlibname.path=/home/karan/projects/Harmony/modules/security2/src/linux/other/jaasnix


 compile.linux.native:
 [echo] make linux native...
 [echo]
 path.to.build.native=/home/karan/projects/Harmony/modules/security2/src/linux/other/jaasnix


 BUILD FAILED