Hi Chris,

Sorry I didn't say this by mail, the patch is meant to be applied on branches/java6.
Cheers,
-- Pierre


On Jan 17, 2011, at 1:11 AM, Mattmann, Chris A (388J) wrote:

Hi Pierre,

Thanks, I tried the patch but unfortunately it failed with the same error. There were like 2 or 3 files where your patch failed to apply to and several intermediate Hunks that failed too, which may be the reason it didn't work. I'm on Mac OS X 10.6.6 -- was your patch intended for that?

Cheers,
Chris

On Jan 16, 2011, at 1:25 PM, Pierre Queinnec wrote:

My patch PATCH-2011-01-16_3 fixes this. I've since switched to a
classic build without any hy.skip.thr or hy.no.thr, and I can now
confirm it builds fine this way with my new patch. It's in JIRA.

As I explain in the issue, it builds but crashes with an LDIE013.
Hope it helps,
--
Pierre Queinnec
CTO, Zenika

Office: +33 1 45 26 19 15
Mobile: +33 6 66 27 10 71



On Jan 16, 2011, at 7:53 PM, Mattmann, Chris A (388J) wrote:

Hey Guys,

I went ahead and updated my Mac Ports, and then ran the compile
again hoping it would get rid of the error. Well, it did get rid of
the error, but now produced a new one :(

Here's what I am seeing:

  [exec]    /usr/local/harmony/target/build/classlib/portlib/native/
port/port_copyright.o /usr/local/harmony/target/build/classlib/
portlib/native/port/hyerror.o /usr/local/harmony/target/build/
classlib/portlib/native/port/hyerrorhelpers.o /usr/local/harmony/
target/build/classlib/portlib/native/port/hyexit.o /usr/local/
harmony/target/build/classlib/portlib/native/port/hyfile.o /usr/
local/harmony/target/build/classlib/portlib/native/port/
hyfiletext.o /usr/local/harmony/target/build/classlib/portlib/ native/
port/hygp.o /usr/local/harmony/target/build/classlib/portlib/native/
port/hymem.o /usr/local/harmony/target/build/classlib/portlib/ native/
port//hymmap.o /usr/local/harmony/target/build/classlib/portlib/
native/port/hynls.o /usr/local/harmony/target/build/classlib/ portlib/
native/port/hynlshelpers.o /usr/local/harmony/target/build/classlib/
portlib/native/port/hyosdump.o /usr/local/harmony/target/build/
classlib/portlib/native/port/hyport.o /usr/local/harmony/target/
build/classlib/portlib/native/port/hyportcontrol.o /usr/local/
harmony/target/build/classlib/portlib/native/port/hyportptb.o /usr/
local/harmony/target/build/classlib/portlib/native/port/
hysharedhelper.o /usr/local/harmony/target/build/classlib/portlib/
native/port/hysl.o /usr/local/harmony/target/build/classlib/portlib/
native/port/hysock.o /usr/local/harmony/target/build/classlib/
portlib/native/port/hystr.o /usr/local/harmony/target/build/ classlib/
portlib/native/port/hystrftime.o /usr/local/harmony/target/build/
classlib/portlib/native/port/hystsl.o /usr/local/harmony/target/
build/classlib/portlib/native/port/hysysinfo.o /usr/local/harmony/
target/build/classlib/portlib/native/port/hytime.o /usr/local/
harmony/target/build/classlib/portlib/native/port/hytlshelpers.o /
usr/local/harmony/target/build/classlib/portlib/native/port/ hytty.o / usr/local/harmony/target/build/classlib/portlib/native/port/ hycpu.o /
usr/local/harmony/target/build/classlib/portlib/native/port/
hyipcmutex.o /usr/local/harmony/target/build/classlib/portlib/ native/
port/hyshmem.o /usr/local/harmony/target/build/classlib/portlib/
native/port/hyshsem.o /usr/local/harmony/target/build/classlib/
portlib/native/port/hyvmem.o  -L/usr/local/harmony/target/hdk/lib/ -
L/usr/local/harmony/target/hdk/jdk/jre/bin/ /usr/local/harmony/
target/hdk/lib/libhycommon.a  -L/opt/local/lib -lc -ldl -liconv
  [exec] Undefined symbols:
  [exec]   "_hythread_startup_library", referenced from:
  [exec]       _hyport_startup_library in hyport.o
  [exec]   "_hythread_allocate_library", referenced from:
  [exec]       _hyport_startup_library in hyport.o
  [exec] ld: symbol(s) not found
  [exec] collect2: ld returned 1 exit status
  [exec] make: *** [/usr/local/harmony/target/hdk/jdk/jre/bin/
libhyprt.dylib] Error 1

My build command was:

ant -Dauto.fetch=true -Dhy.no.thr=yes  all

(note I only added the hy.no.thr property after trying it without,
and then getting this error):


-build-native-thread:
  [echo] Making "" in src/main/native/thread/unix
  [exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -
DIPv6_FUNCTION_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/
local/harmony/target/hdk/include -I/usr/local/harmony/target/hdk/ jdk/
include -I. -I../shared/ -I/opt/local/include -O1 -DNDEBUG -fPIC -
fno-common -arch x86_64 -mmacosx-version-min=10.5 -Werror -c - o /
usr/local/harmony/target/build/classlib/portlib/native/thread/
thread_copyright.o ../shared/thread_copyright.c
  [exec] as -arch x86_64 -o /usr/local/harmony/target/build/
classlib/portlib/native/thread/thrhelp.o x86_64/thrhelp.s
  [exec] x86_64/thrhelp.s:37:Unknown pseudo-op: .type
  [exec] x86_64/thrhelp.s:37:Rest of line ignored. 1st junk
character valued 104 (h).
  [exec] x86_64/thrhelp.s:39:Unknown pseudo-op: .type
  [exec] x86_64/thrhelp.s:39:Rest of line ignored. 1st junk
character valued 99 (c).
  [exec] x86_64/thrhelp.s:41:Unknown pseudo-op: .type
  [exec] x86_64/thrhelp.s:41:Rest of line ignored. 1st junk
character valued 104 (h).
  [exec] x86_64/thrhelp.s:70:Unknown pseudo-op: .size
  [exec] x86_64/thrhelp.s:70:Rest of line ignored. 1st junk
character valued 99 (c).
  [exec] x86_64/thrhelp.s:95:Unknown pseudo-op: .size
  [exec] x86_64/thrhelp.s:95:Rest of line ignored. 1st junk
character valued 104 (h).
  [exec] x86_64/thrhelp.s:120:Unknown pseudo-op: .size
  [exec] x86_64/thrhelp.s:120:Rest of line ignored. 1st junk
character valued 104 (h).
  [exec] make: *** [/usr/local/harmony/target/build/classlib/
portlib/native/thread/thrhelp.o] Error 1

BUILD FAILED
/usr/local/harmony/build.xml:480: The following error occurred while
executing this line:
/usr/local/harmony/classlib/build.xml:339: The following error
occurred while executing this line:
/usr/local/harmony/classlib/modules/portlib/build.xml:149: The
following error occurred while executing this line:
/usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec
returned: 2

Total time: 1 minute 13 seconds


Any thoughts would be appreciated.

Cheers,
Chris
On Jan 16, 2011, at 7:59 AM, Mattmann, Chris A (388J) wrote:

Thanks Charles.

How do I change the error level? I'm using the Ant build?

Cheers,
Chris

On Jan 16, 2011, at 2:09 AM, Charles Lee wrote:

Hi Chris,

It seems a warning becoming to an error. Try to change the error
level. I do
not have a mac, hoping others will help.

On Sun, Jan 16, 2011 at 11:08 AM, Mattmann, Chris A (388J) <
chris.a.mattm...@jpl.nasa.gov> wrote:

Hi Harmony-devs,

First off, great work! I am trying to build Harmony from source
on Mac OS X
10.6.6 and I am receiving some strange error with iconv, and I
can't figure
it out. Anyone have any ideas?

Here is the build command:

ant -Dauto.fetch=true -Dhy.no.thr all


Here is the error:
....snip
[exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -
DIPv6_FUNCTION_SUPPORT
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DHY_NO_THR
-I/usr/local/harmony/target/hdk/include
-I/usr/local/harmony/target/hdk/jdk/include -I. -I../shared/
-I/opt/local/include -DHYPORT_LIBRARY_DEFINE -Imacosx.x86_64 - O1 -
DNDEBUG
-fPIC -fno-common -arch x86_64 -mmacosx-version-min=10.5  -
Werror    -c -o
/usr/local/harmony/target/build/classlib/portlib/native/port/
hyfile.o
hyfile.c
[exec] cc1: warnings being treated as errors
[exec] hyfiletext.c: In function ‘file_write_using_iconv’:
[exec] hyfiletext.c:420: warning: passing argument 2 of
‘libiconv’ from
incompatible pointer type
[exec] hyfiletext.c: In function ‘buf_write_using_iconv’:
[exec] hyfiletext.c:493: warning: passing argument 2 of
‘libiconv’ from
incompatible pointer type
[exec] make: ***
[/usr/local/harmony/target/build/classlib/portlib/native/port/
hyfiletext.o]
Error 1
[exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -
DIPv6_FUNCTION_SUPPORT
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DHY_NO_THR
-I/usr/local/harmony/target/hdk/include
-I/usr/local/harmony/target/hdk/jdk/include -I. -I../shared/
-I/opt/local/include -DHYPORT_LIBRARY_DEFINE -Imacosx.x86_64 - O1 -
DNDEBUG
-fPIC -fno-common -arch x86_64 -mmacosx-version-min=10.5  -
Werror    -c -o
/usr/local/harmony/target/build/classlib/portlib/native/port/
hyfiletext.o
hyfiletext.c

BUILD FAILED
/usr/local/harmony/build.xml:480: The following error occurred
while
executing this line:
/usr/local/harmony/classlib/build.xml:339: The following error
occurred
while executing this line:
/usr/local/harmony/classlib/modules/portlib/build.xml:180: The
following
error occurred while executing this line:
/usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec
returned:
2

Total time: 1 minute 20 seconds
[chipotle:/usr/local/harmony] mattmann%

Here is my config:

[chipotle:/usr/local/harmony] mattmann% ant -version
Apache Ant version 1.8.1 compiled on September 21 2010
[chipotle:/usr/local/harmony] mattmann% which ant
/usr/bin/ant
[chipotle:/usr/local/harmony] mattmann%
[chipotle:/usr/local/harmony] mattmann% ls /usr/share/ant/lib
README                     ant-apache-resolver.pom    ant-jmf.jar
ant-nodeps.jar             ant.pom
ant-antlr.jar              ant-apache-xalan2.pom      ant-jmf.pom
ant-nodeps.pom             ecj.jar
ant-antlr.pom ant-commons-logging.pom ant- jsch.pom
 ant-parent.pom             libraries.properties
ant-apache-bcel.pom ant-commons-net.pom ant- junit.jar
ant-swing.jar              maven-ant-tasks-2.1.1.jar
ant-apache-bsf.pom ant-jai.jar ant- junit.pom
ant-swing.pom
ant-apache-log4j.pom       ant-jai.pom                ant-
launcher.jar
 ant-testutil.jar
ant-apache-oro.pom         ant-javamail.pom           ant-
launcher.pom
 ant-testutil.pom
ant-apache-regexp.pom      ant-jdepend.pom            ant-
netrexx.pom
ant.jar
[chipotle:/usr/local/harmony] mattmann%

[chipotle:/usr/local/harmony] mattmann% gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~89/src/configure -- disable-
checking
--enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/
usr/lib
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
[chipotle:/usr/local/harmony] mattmann%

[chipotle:/usr/local/harmony] mattmann% echo $ANT_OPTS
-Xms256m -Xmx512m
[chipotle:/usr/local/harmony] mattmann%

Any ideas would be greatly appreciated as I wanted to try out
Harmony with
some of my existing projects to test it out.

Thanks!

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattm...@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++




--
Yours sincerely,
Charles Lee


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattm...@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattm...@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattm...@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Reply via email to