Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11873 closed defect (fixed)

cannot compile erlang from latest trunc

Reported by: anonymous Owned by: acinonyx
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

I cannot compile erlang from the latest trunk. It compiled successfully before revision 32710. here is the compile log.

make[7]: Entering directory `/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang'
if [ ! -d "/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/priv/" ];then mkdir "/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/priv/"; fi
CLASSPATH=/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/ javac  -d /media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/priv/ OtpAuthException.java
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpException.java:24: warning: The serializable class OtpException does not declare a static final serialVersionUID field of type long
	public abstract class OtpException extends Exception {
	                      ^^^^^^^^^^^^
1 problem (1 warning)
CLASSPATH=/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/ javac  -d /media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/priv/ OtpErlangDecodeException.java
OtpErlangDecodeException.java:28: warning: The serializable class OtpErlangDecodeException does not declare a static final serialVersionUID field of type long
	public class OtpErlangDecodeException extends OtpErlangException {
	             ^^^^^^^^^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpException.java:24: warning: The serializable class OtpException does not declare a static final serialVersionUID field of type long
	public abstract class OtpException extends Exception {
	                      ^^^^^^^^^^^^
2 problems (2 warnings)
CLASSPATH=/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/ javac  -d /media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/priv/ OtpErlangExit.java
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpException.java:24: warning: The serializable class OtpException does not declare a static final serialVersionUID field of type long
	public abstract class OtpException extends Exception {
	                      ^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangObject.java:174: warning: Unnecessary cast from byte to int
	abc[k] += ((int)b[j+0] & 0xFF) + ((int)b[j+1]<<8 & 0xFF00)
	           ^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangObject.java:174: warning: Unnecessary cast from byte to int
	abc[k] += ((int)b[j+0] & 0xFF) + ((int)b[j+1]<<8 & 0xFF00)
	                                  ^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangObject.java:175: warning: Unnecessary cast from byte to int
	+ ((int)b[j+2]<<16 & 0xFF0000) + ((int)b[j+3]<<24);
	   ^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangObject.java:175: warning: Unnecessary cast from byte to int
	+ ((int)b[j+2]<<16 & 0xFF0000) + ((int)b[j+3]<<24);
	                                  ^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangObject.java:181: warning: Unnecessary cast from byte to int
	abc[k] += (int)b[j]<<n & m;
	          ^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangDecodeException.java:28: warning: The serializable class OtpErlangDecodeException does not declare a static final serialVersionUID field of type long
	public class OtpErlangDecodeException extends OtpErlangException {
	             ^^^^^^^^^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java:1019: warning: The local variable n is never read
	final int n = read4BE();
	          ^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java:1087: error: The constructor String(int[], int, int) is undefined
	return new String(intbuf, 0, intbuf.length);
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java:28: warning: The import java.util.Arrays is never used
	import java.util.Arrays;
	       ^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java:47: warning: The field OtpOutputStream.eform is never read locally
	private static final DecimalFormat eform = new DecimalFormat("e+00;e-00");
	                                   ^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java:48: warning: The field OtpOutputStream.ten is never read locally
	private static final BigDecimal ten = new BigDecimal(10.0);
	                                ^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java:49: warning: The field OtpOutputStream.one is never read locally
	private static final BigDecimal one = new BigDecimal(1.0);
	                                ^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpOutputStream.java:745: warning: The local variable charbuf is never read
	final char[] charbuf = s.toCharArray();
	             ^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangPort.java:43: warning: The constructor OtpErlangPort(OtpSelf) is never used locally
	private OtpErlangPort(final OtpSelf self) {
	        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangFun.java:22: warning: The import java.util.Arrays is never used
	import java.util.Arrays;
	       ^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangList.java:404: error: The constructor String(int[], int, int) is undefined
	return new String(values, 0, values.length);
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java:276: warning: The parameter from is never read
	protected void sendBuf(final OtpErlangPid from, final OtpErlangPid dest,
	                                          ^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java:509: warning: The label tick_loop is never explicitly referenced
	tick_loop: do {
	^^^^^^^^^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangInt.java:59: warning: The local variable j is never read
	final int j = intValue();
	          ^
/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMD5.java:147: warning: The method dumpstate() from the type OtpMD5 is never used locally
	private void dumpstate() {
	             ^^^^^^^^^^^
21 problems (2 errors, 19 warnings)
make[7]: *** [/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/priv/com/ericsson/otp/erlang/OtpErlangExit.class] Error 1
make[7]: Leaving directory `/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang'
make[6]: *** [opt] Error 2
make[6]: Leaving directory `/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src'
make[5]: *** [opt] Error 2
make[5]: Leaving directory `/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface'
make[4]: *** [opt] Error 2
make[4]: Leaving directory `/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib'
make[3]: *** [tertiary_bootstrap_build] Error 2
make[3]: Leaving directory `/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01'
make[2]: *** [/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/.built] Error 2
make[2]: Leaving directory `/media/OpenWRT/trunk/feeds/packages/lang/erlang'
make[1]: *** [package/feeds/packages/erlang/host/compile] Error 2
make[1]: Leaving directory `/media/OpenWRT/trunk'
make: *** [package/feeds/packages/erlang/compile] Fehler 2

the errors are:

/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java:1087: error: The constructor String(int[], int, int) is undefined
	return new String(intbuf, 0, intbuf.length);
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/media/OpenWRT/trunk/build_dir/host/otp_src_R15B01/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangList.java:404: error: The constructor String(int[], int, int) is undefined
	return new String(values, 0, values.length);
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by acinonyx

  • Owner changed from developers to acinonyx
  • Status changed from new to accepted

comment:2 Changed 6 years ago by acinonyx

  • Resolution set to fixed
  • Status changed from accepted to closed

Should be fixed in r32748

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.