Compile error?

Darius Buntinas buntinas at mcs.anl.gov
Thu Jun 9 12:58:45 CDT 2005


It looks like you're not linking with the gm library.  You need to add 
-lgm to the linking step of the compile (and possibly a -L <PATH TO GM 
LIB> if the gm lib is not in /usr/lib).

If you use mpicc and mpif77 as your c and fortran compilers, then you 
don't have to worry about the above.

I don't know anything about hpcc, so I can't tell you what you need to 
change in hpcc to do any of the above.

-d

On Thu, 9 Jun 2005, Jong Chun Park wrote:

> Hello? I'm Jong.
>
> Can somebody help me to fix the following compiling error? I'm trying to
> install HPCC on a linux cluster
> which runs RH 8.0 on P3 and MPICH on GM interface. While compiling HPCC, I
> got the following error.
> I don't know what's wrong with it. I'd appreciate any help.
>
> --------------------------------------------------------------------------------------------------------------------
>
> [joumon at ll02 ~/hpcc0.8beta]$ !v
> vi hpl/Make.Linux_P3
> [joumon at ll02 ~/hpcc0.8beta]$ !ma
> make arch=Linux_P3
> mkdir hpl/lib/Linux_P3
> mkdir: cannot create directory `hpl/lib/Linux_P3': File exists
> make: [all] Error 1 (ignored)
> ( cd hpl/lib/arch/build ; make arch=Linux_P3 -f Makefile.hpcc )
> make[1]: Entering directory `/users/joumon/hpcc0.8beta/hpl/lib/arch/build'
> g77 -DHPL_CALL_CBLAS -I../../../include -I../../../include/Linux_P3 -I
> /usr/local/parallel/mpich-gm.pgi/include/ -fomit-frame-pointer -O3
> -funroll-loops -o ../../../../hpcc ../../../lib/Linux_P3/libhpl.a
> /usr/local/lib/libcblas.a /usr/local/lib/libatlas.a -L
> /usr/local/parallel/mpich-gm.pgi/lib -lm -lpthread -lstdc++ -lmpich -lutil
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_regcache_init':
> gmpi_regcache.o(.text+0x4f): undefined reference to `gm_hash_hash_ptr'
> gmpi_regcache.o(.text+0x54): undefined reference to `gm_hash_compare_ptrs'
> gmpi_regcache.o(.text+0x59): undefined reference to `gm_create_hash'
> gmpi_regcache.o(.text+0x6d): undefined reference to `gm_create_lookaside'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_regcache_deregister':
> gmpi_regcache.o(.text+0x91): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0xa4): undefined reference to `gm_deregister_memory'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_regcache_garbage_collector':
> gmpi_regcache.o(.text+0x11c): undefined reference to `gm_hash_remove'
> gmpi_regcache.o(.text+0x153): undefined reference to `gm_lookaside_free'
> gmpi_regcache.o(.text+0x17a): undefined reference to `GM_PAGE_LEN'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_regcache_register':
> gmpi_regcache.o(.text+0x1c2): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0x1d5): undefined reference to `gm_register_memory'
> gmpi_regcache.o(.text+0x211): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0x226): undefined reference to `gm_register_memory'
> gmpi_regcache.o(.text+0x25a): undefined reference to `gm_lookaside_alloc'
> gmpi_regcache.o(.text+0x293): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0x2ba): undefined reference to `gm_hash_insert'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_use_interval':
> gmpi_regcache.o(.text+0x32b): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0x3b7): undefined reference to `gm_hash_find'
> gmpi_regcache.o(.text+0x3da): undefined reference to `GM_PAGE_LEN'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_unuse_interval':
> gmpi_regcache.o(.text+0x49d): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0x4cb): undefined reference to `gm_hash_find'
> gmpi_regcache.o(.text+0x4d1): undefined reference to `GM_PAGE_LEN'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_clear_interval':
> gmpi_regcache.o(.text+0x4ff): undefined reference to `GM_PAGE_LEN'
> gmpi_regcache.o(.text+0x547): undefined reference to `gm_hash_find'
> gmpi_regcache.o(.text+0x55f): undefined reference to `gm_hash_remove'
> gmpi_regcache.o(.text+0x593): undefined reference to `gm_lookaside_free'
> gmpi_regcache.o(.text+0x59c): undefined reference to `GM_PAGE_LEN'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_regcache.o): In
> function `gmpi_clear_all_intervals':
> gmpi_regcache.o(.text+0x603): undefined reference to `gm_destroy_hash'
> gmpi_regcache.o(.text+0x60f): undefined reference to `gm_destroy_lookaside'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(adi2init.o): In function
> `MPID_Init':
> adi2init.o(.text+0x1b1): undefined reference to `gm_get_host_name'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_conf.o): In function
> `gmpi_allocate_port':
> gmpi_conf.o(.text+0xd6): undefined reference to `gm_open'
> gmpi_conf.o(.text+0x14a): undefined reference to `gm_open'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_conf.o): In function
> `gmpi_getconf':
> gmpi_conf.o(.text+0x4a2): undefined reference to
> `gm_blocking_receive_no_spin'
> gmpi_conf.o(.text+0x4ac): undefined reference to `gm_receive'
> gmpi_conf.o(.text+0x542): undefined reference to `gm_get_node_id'
> gmpi_conf.o(.text+0x564): undefined reference to `gm_node_id_to_unique_id'
> gmpi_conf.o(.text+0x5bb): undefined reference to `gm_bzero'
> gmpi_conf.o(.text+0x5cf): undefined reference to `gm_get_host_name'
> gmpi_conf.o(.text+0x624): undefined reference to `gm_bzero'
> gmpi_conf.o(.text+0x69f): undefined reference to `gm_bzero'
> gmpi_conf.o(.text+0x832): undefined reference to `gm_get_host_name'
> gmpi_conf.o(.text+0x86f): undefined reference to `gm_crc'
> gmpi_conf.o(.text+0x88a): undefined reference to `gm_crc'
> gmpi_conf.o(.text+0x9a2): undefined reference to `GM_PAGE_LEN'
> gmpi_conf.o(.text+0xa3a): undefined reference to `GM_PAGE_LEN'
> gmpi_conf.o(.text+0xace): undefined reference to `gm_unique_id_to_node_id'
> gmpi_conf.o(.text+0xc9b): undefined reference to `gm_blocking_receive'
> gmpi_conf.o(.text+0xcaa): undefined reference to `gm_receive'
> gmpi_conf.o(.text+0x1006): undefined reference to
> `gm_blocking_receive_no_spin'
> gmpi_conf.o(.text+0x1010): undefined reference to `gm_receive'
> gmpi_conf.o(.text+0x1091): undefined reference to `gm_get_node_id'
> gmpi_conf.o(.text+0x10b3): undefined reference to `gm_node_id_to_unique_id'
> gmpi_conf.o(.text+0x1105): undefined reference to `gm_bzero'
> gmpi_conf.o(.text+0x1123): undefined reference to `gm_bcopy'
> gmpi_conf.o(.text+0x122c): undefined reference to `gm_bzero'
> gmpi_conf.o(.text+0x124a): undefined reference to `gm_bcopy'
> gmpi_conf.o(.text+0x126f): undefined reference to `gm_ticks'
> gmpi_conf.o(.text+0x129e): undefined reference to `gm_ticks'
> gmpi_conf.o(.text+0x1435): undefined reference to `gm_bzero'
> gmpi_conf.o(.text+0x1adf): undefined reference to `gm_blocking_receive'
> gmpi_conf.o(.text+0x1aee): undefined reference to `gm_receive'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_conf.o): In function
> `MPID_GetConfigInfo':
> gmpi_conf.o(.text+0x1c40): undefined reference to `gm_receive'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_dma_alloc':
> gmpi_priv.o(.text+0x10): undefined reference to `gm_dma_malloc'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_dma_free':
> gmpi_priv.o(.text+0x28): undefined reference to `gm_dma_free'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_drop_send_packet_callback':
> gmpi_priv.o(.text+0x2af): undefined reference to `gm_send_with_callback'
> gmpi_priv.o(.text+0x2c5): undefined reference to `gm_strerror'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_drop_put_data_callback':
> gmpi_priv.o(.text+0x353): undefined reference to
> `gm_directed_send_with_callback'
> gmpi_priv.o(.text+0x369): undefined reference to `gm_strerror'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_flush_fifo':
> gmpi_priv.o(.text+0x6bc): undefined reference to
> `gm_directed_send_with_callback'
> gmpi_priv.o(.text+0x724): undefined reference to `gm_send_with_callback'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_send_packet':
> gmpi_priv.o(.text+0x9d6): undefined reference to `gm_send_with_callback'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_put_data':
> gmpi_priv.o(.text+0xb5d): undefined reference to
> `gm_directed_send_with_callback'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_net_lookup':
> gmpi_priv.o(.text+0xbd6): undefined reference to `gm_receive'
> gmpi_priv.o(.text+0xc15): undefined reference to `gm_unknown'
> gmpi_priv.o(.text+0xcb0): undefined reference to `gm_provide_receive_buffer'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_init':
> gmpi_priv.o(.text+0xd69): undefined reference to
> `gm_allow_remote_memory_access'
> gmpi_priv.o(.text+0xd82): undefined reference to `gm_num_send_tokens'
> gmpi_priv.o(.text+0xd99): undefined reference to `gm_num_receive_tokens'
> gmpi_priv.o(.text+0xe4b): undefined reference to `gm_dma_malloc'
> gmpi_priv.o(.text+0xe62): undefined reference to `gm_dma_malloc'
> gmpi_priv.o(.text+0xeab): undefined reference to `gm_set_acceptable_sizes'
> gmpi_priv.o(.text+0xec9): undefined reference to `gm_set_acceptable_sizes'
> gmpi_priv.o(.text+0x1018): undefined reference to
> `gm_provide_receive_buffer_with_tag'
> gmpi_priv.o(.text+0x1071): undefined reference to `gm_perror'
> gmpi_priv.o(.text+0x10a5): undefined reference to `gm_perror'
> gmpi_priv.o(.text+0x10d9): undefined reference to `gm_num_receive_tokens'
> gmpi_priv.o(.text+0x10ef): undefined reference to `gm_perror'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_finish':
> gmpi_priv.o(.text+0x11e2): undefined reference to `gm_close'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_send_packet_fifo':
> gmpi_priv.o(.text+0x1526): undefined reference to `gm_send_with_callback'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_check_send_status':
> gmpi_priv.o(.text+0x15a6): undefined reference to `gm_node_id_to_host_name'
> gmpi_priv.o(.text+0x15db): undefined reference to `gm_node_id_to_unique_id'
> gmpi_priv.o(.text+0x1613): undefined reference to `gm_strerror'
> gmpi_priv.o(.text+0x169b): undefined reference to `gm_send_with_callback'
> gmpi_priv.o(.text+0x16d6): undefined reference to
> `gm_directed_send_with_callback'
> gmpi_priv.o(.text+0x1726): undefined reference to `gm_drop_sends'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_priv.o): In function
> `gmpi_packet_recv_event':
> gmpi_priv.o(.text+0x1771): undefined reference to `gm_node_id_to_unique_id'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_chself.o): In function
> `MPID_CH_Self_isend':
> gmpi_chself.o(.text+0x162): undefined reference to `gm_bcopy'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_chself.o): In function
> `MPID_CH_Self_send':
> gmpi_chself.o(.text+0x27a): undefined reference to `gm_bcopy'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_smppriv.o): In function
> `smpi_queue_send':
> gmpi_smppriv.o(.text+0x1f6): undefined reference to `gm_lookaside_alloc'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_smppriv.o): In function
> `MPID_SMP_Check_incoming':
> gmpi_smppriv.o(.text+0x85b): undefined reference to `gm_lookaside_free'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_smppriv.o): In function
> `smpi_init':
> gmpi_smppriv.o(.text+0x8cf): undefined reference to `gm_create_lookaside'
> gmpi_smppriv.o(.text+0x951): undefined reference to `GM_PAGE_LEN'
> gmpi_smppriv.o(.text+0xa21): undefined reference to `GM_PAGE_LEN'
> gmpi_smppriv.o(.text+0xb0f): undefined reference to `GM_PAGE_LEN'
> gmpi_smppriv.o(.text+0xc8a): undefined reference to `GM_PAGE_LEN'
> /usr/local/parallel/mpich-gm.pgi/lib/libmpich.a(gmpi_smppriv.o): In function
> `smpi_finish':
> gmpi_smppriv.o(.text+0xfff): undefined reference to `GM_PAGE_LEN'
> gmpi_smppriv.o(.text+0x103f): undefined reference to `gm_destroy_lookaside'
> collect2: ld returned 1 exit status
> make[1]: *** [../../../../hpcc] Error 1
> make[1]: Leaving directory `/users/joumon/hpcc0.8beta/hpl/lib/arch/build'
> make: *** [all] Error 2
>
> <mpich-discuss at mcs.anl.gov>
>




More information about the mpich-discuss mailing list