On 28 Aug 2009, at 5:17 PM, Igor Peshansky wrote:

> Jim LaGrone <jlagr...@cs.uh.edu> wrote on 08/28/2009 05:40:00 PM:
>
>> On Aug 28, 2009, at 2:33 PM, Igor Peshansky wrote:
>>
>>> Jim LaGrone <jlagr...@cs.uh.edu> wrote on 08/28/2009 08:51:06 AM:
>>>
>>>> System info:
>>>>
>>>> Intel Core2Duo
>>>> CentOS 5.2 (inside VMWare Fusion on a Mac)
>>>> Apache Ant version 1.7.1 compiled on June 27 2008
>>>> java version "1.5.0_19"
>>>>
>>>> X10 info:
>>>>
>>>> svn co https://x10.svn.sourceforge.net/svnroot/x10/branches/x10-1.7
>>>>
>>>
> http://dist.codehaus.org/x10/binaryReleases/1.7.6/pgas-1.7.6_linux_x86.tgz
>>>>
>>>> After
>>>>
>>>>>  export LOCAL_POLYGLOT_JAR=../polyglot/lib/polyglot-epl.jar
>>>>
>>>>
>>>> and
>>>>
>>>>>  cd polyglot && ant clobber eclipse-plugin-jar
>>>>
>>>>
>>>> this
>>>>
>>>>>  cd x10.dist && ant distclean dist
>>>>
>>>>
>>>> returns the following:
>>>>
>>>>
>>>>> build-cpp:
>>>>>   [exec] g++ -g -DX10_USE_BDWGC  -I/home/jlagrone/x10-1.7/
>>>>> x10.dist//include -I. -I/home/jlagrone/x10-1.7/x10.runtime.17/src-
>>>>> cpp/bdwgc/install/include -Igen -ansi -pedantic -Wall -Wextra - 
>>>>> Wno-
>>>>> long-long -Wno-unused-parameter -pthread   -c -o x10/lang/Fun.o  
>>>>> x10/
>>>>> lang/Fun.cc
>>>>>   [exec] Regenerating XRX cc/h/inc files
>>>>>   [exec] mkdir -p gen
>>>>>   [exec] cd ../src-x10 && find * -name .svn -prune -o -name \*.x10
>>>>> -print | \
>>>>>   [exec]        xargs "/home/jlagrone/x10-1.7/x10.dist"/bin/x10c+
>>>>> + -
>>>
>>>>> c -J-ea -rtdev -disable CheckNativeAnnotations -commandlineonly -
>>>>> sourcepath . -d ../src-cpp/gen
>>>>>   [exec] In file included from ./x10aux/serialization.h:7,
>>>>>   [exec]                  from ./x10/lang/Object.h:9,
>>>>>   [exec]                  from x10/lang/Fun.cc:5:
>>>>>   [exec] ./x10aux/pgas.h:13:35: error: x10/pgasrt_x10.h: No such
>>>>> file or directory
>>>>>   [exec] ./x10aux/pgas.h: In function ‘void x10aux::barrier()’:
>>>>>   [exec] ./x10aux/pgas.h:39: error: ‘x10rt_barrier’ was not
>>>>> declared in this scope
>>>>>   [exec] ./x10aux/pgas.h: In function ‘x10_int
>>>>> x10aux::num_places()’:
>>>>>   [exec] ./x10aux/pgas.h:43: error: ‘x10rt_nplaces’ was not
>>>>> declared in this scope
>>>>>   [exec] ./x10aux/pgas.h: In function ‘void x10aux::event_probe 
>>>>> ()’:
>>>>>   [exec] ./x10aux/pgas.h:47: error: ‘x10rt_probe’ was not declared
>>>>> in this scope
>>>>>   [exec] ./x10aux/pgas.h: In function ‘x10_int x10aux::here()’:
>>>>>   [exec] ./x10aux/pgas.h:51: error: ‘x10rt_here’ was not declared
>>>>> in this scope
>>>>>   [exec] ./x10aux/pgas.h: In function ‘void x10aux::shutdown()’:
>>>>>   [exec] ./x10aux/pgas.h:67: error: ‘x10rt_finalize’ was not
>>>>> declared in this scope
>>>>>   [exec] make: *** [x10/lang/Fun.o] Error 1
>>>>>   [exec] make: *** Waiting for unfinished jobs....
>>>>>   [exec] touch gen/all-cpp-generated
>>>>>
>>>>> BUILD FAILED
>>>>> /home/jlagrone/x10-1.7/x10.dist/build.xml:141: The following error
>>>>> occurred while executing this line:
>>>>> /home/jlagrone/x10-1.7/x10.runtime.17/build.xml:205: exec
>>>>> returned: 2
>>>>>
>>>>> Total time: 4 minutes 53 seconds
>>>>
>>>> Any suggestions?
>>>
>>> The build cannot find the PGAS headers.
>>>
>>> Did you untar the corresponding build of PGAS into x10.dist?
>>
>>
>> I did it again.
>>
>>   jlagr...@centos:x10.dist$ tar xvf ~/pgas-1.7.6_linux_x86.tgz
>>   bin/
>>   bin/launcher
>>   bin/daemon
>>   bin/manager
>>   include/
>>   include/x10/
>>   include/x10/pgasrt_x10.h
>>   include/x10/x10.h
>>   include/pgasrt_hbrd.h
>>   include/pgasrt_misc.h
>>   include/xlupc_types.h
>>   include/pgasrt.h
>>   include/pgasrt_types.h
>>   include/pgasrt_tsp.h
>>   include/pgasrt_smp.h
>>   include/pgasrt_config.h
>>   include/pgasrt_tspcoll.h
>>   include/pgasrt_smpcoll.h
>>   include/pgasrt_hbrdcoll.h
>>   lib/
>>   lib/libupcrts_sockets.a
>>   lib/libxlpgas_sockets.a
>>
>> then cd x10.dist && ant distclean dist yields
>>
>>      [exec]                  from x10/lang/Fun.cc:5:
>>      [exec] ./x10aux/pgas.h:13:35: error: x10/pgasrt_x10.h: No such
>> file or directory
>>      [exec] ./x10aux/pgas.h: In function ‘void x10aux::barrier()’:
>>      [exec] ./x10aux/pgas.h:39: error: ‘x10rt_barrier’ was not
>> declared in this scope
>>      [exec] ./x10aux/pgas.h: In function ‘x10_int
>> x10aux::num_places()’:
>>      [exec] ./x10aux/pgas.h:43: error: ‘x10rt_nplaces’ was not
>> declared in this scope
>>      [exec] ./x10aux/pgas.h: In function ‘void x10aux::event_probe 
>> ()’:
>>      [exec] ./x10aux/pgas.h:47: error: ‘x10rt_probe’ was not declared
>> in this scope
>>      [exec] ./x10aux/pgas.h: In function ‘x10_int x10aux::here()’:
>>      [exec] ./x10aux/pgas.h:51: error: ‘x10rt_here’ was not declared
>> in this scope
>>      [exec] ./x10aux/pgas.h: In function ‘void x10aux::shutdown()’:
>>      [exec] ./x10aux/pgas.h:67: error: ‘x10rt_finalize’ was not
>> declared in this scope
>>      [exec] make: *** [x10/lang/Fun.o] Error 1
>>      [exec] make: *** Waiting for unfinished jobs....
>>      [exec] make: *** [gen/all-cpp-generated] Terminated
>>
>>
>> Any suggestions?
>
> Hmm.  The g++ command line seems to point to the right include
> directory, but the header is not found...

Is x10/pgasrt_x10.h suppose to be autogenerated?

> Try setting and exporting X10LIB in your environment to explicitly
> point to x10.dist, and see if that helps.

Didn't work.

> Beyond that, we'd have to
> debug the g++ command line -- perhaps invoke that command directly
> from x10.runtime.17/src-cpp?

I tried make in this directory with similar result.

make[1]: Entering directory `/home/jlagrone/x10/x10.runtime.17/src-cpp'
g++ -g  -I/home/jlagrone/x10/x10.dist/include -I. -Igen -ansi - 
pedantic -Wall -Wextra -Wno-long-long -Wno-unused-parameter -pthread - 
c gen/Dummy.cc -o gen/Dummy.o
In file included from ./x10rt17.h:9,
                  from gen/Dummy.h:4,
                  from gen/Dummy.cc:1:
./x10aux/pgas.h:13:35: error: x10/pgasrt_x10.h: No such file or  
directory
./x10aux/pgas.h: In function ‘void x10aux::barrier()’:
./x10aux/pgas.h:39: error: ‘x10rt_barrier’ was not declared in this  
scope
./x10aux/pgas.h: In function ‘x10_int x10aux::num_places()’:
./x10aux/pgas.h:43: error: ‘x10rt_nplaces’ was not declared in this  
scope
./x10aux/pgas.h: In function ‘void x10aux::event_probe()’:
./x10aux/pgas.h:47: error: ‘x10rt_probe’ was not declared in this scope
./x10aux/pgas.h: In function ‘x10_int x10aux::here()’:
./x10aux/pgas.h:51: error: ‘x10rt_here’ was not declared in this scope
./x10aux/pgas.h: In function ‘void x10aux::shutdown()’:
./x10aux/pgas.h:67: error: ‘x10rt_finalize’ was not declared in this  
scope
gen/x10/util/HashMap.h: In member function ‘void  
x10::util::HashMap<x10__K, x10__V>::rehash() [with x10__K =  
x10aux::ref<x10::runtime::Clock_c>, x10__V = int]’:
gen/Dummy.cc:289:   instantiated from here
gen/x10/util/HashMap.h:620: warning: unused variable ‘oldSize’
make[1]: *** [gen/Dummy.o] Error 1
make[1]: Leaving directory `/home/jlagrone/x10/x10.runtime.17/src-cpp'
make: *** [gen/all-o-generated] Error 2

> Maybe the double '/' in the -I argument
> is confusing g++?

I fixed this with X10LIB env variable with no success.


Jim



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to