[parsec-users] glib compilation error

Christian Bienia cbienia at CS.Princeton.EDU
Thu Mar 27 14:26:19 EDT 2008


Hello Mahin,

I remember I had trouble compiling glib on Itanium with icc. I worked around 
that by using the precompiled version that came with my system instead of the 
version that comes with PARSEC. If you want to do the same you have to edit 
the dependencies of the packages in file parsec.conf so glib is no longer 
listed. PARSEC will then simply skip the package. Otherwise it's probably 
best to send your question to the glib mailing list.

- Chris



On Wednesday 26 March 2008 10:22 pm, Mahin Mahmoodi wrote:
> Hi,
>
> Icc compiler generates the following undefined references.  Any idea where
> the following symbols are defined?
>
> Thanks,
> Mahin
>
> .................
> /parsec-1.0/./pkgs/libs/glib/src/gobject/glib-genmarshal.c(856): remark
> #181: argument is incompatible with corresponding format string conversion
>         g_fprintf (bout, "%u.%u.%u", GLIB_MAJOR_VERSION,
> GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
>
> /bin/sh ../libtool --mode=link /opt/intel/cc/10.1.008/bin/icc
> -gcc-name=/usr/bin/gcc -I/usr/include/c++/4.1.2 -O3 -funroll-loops
> -prefetch -DPARSEC_VERSION=1.0 -Wall  -L/opt/intel/cc/10.1.008/lib64
> -L/opt/intel/cc/10.1.008/lib -o glib-genmarshal  glib-genmarshal.o
> ../glib/libglib-2.0.la
> mkdir .libs
> /opt/intel/cc/10.1.008/bin/icc -gcc-name=/usr/bin/gcc
> -I/usr/include/c++/4.1.2 -O3 -funroll-loops -prefetch -DPARSEC_VERSION=1.0
> -Wall -o glib-genmarshal glib-genmarshal.o  -L/opt/intel/cc/10.1.008/lib64
> -L/opt/intel/cc/10.1.008/lib ../glib/.libs/libglib-2.0.a
> ../glib/.libs/libglib-2.0.a(gatomic.o): In function
> `g_atomic_pointer_compare_and_exchange':
> /usr/users/1/mahmoodi/parsec-1.0/./pkgs/libs/glib/src/glib/gatomic.c:(.text
>+ 0x122): undefined reference to `__sync_bool_compare_and_swap'
> ../glib/.libs/libglib-2.0.a(gatomic.o): In function
> `g_atomic_int_compare_and_exchange':
> /usr/users/1/mahmoodi/parsec-1.0/./pkgs/libs/glib/src/glib/gatomic.c:(.text
>+ 0x1a2): undefined reference to `__sync_bool_compare_and_swap'
> ../glib/.libs/libglib-2.0.a(gatomic.o): In function `g_atomic_int_add':
> /usr/users/1/mahmoodi/parsec-1.0/./pkgs/libs/glib/src/glib/gatomic.c:(.text
>+ 0x222): undefined reference to `__sync_fetch_and_add'
> ../glib/.libs/libglib-2.0.a(gatomic.o): In function
> `g_atomic_int_exchange_and_add':
> /usr/users/1/mahmoodi/parsec-1.0/./pkgs/libs/glib/src/glib/gatomic.c:(.text
>+ 0x2a2): undefined reference to `__sync_fetch_and_add'
> make[2]: *** [glib-genmarshal] Error 1
> make[2]: Leaving directory
> `/parsec-1.0/pkgs/libs/glib/obj/ia64-linux.icc/gobject'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/parsec-1.0/pkgs/libs/glib/obj/ia64-linux.icc'
> make: *** [all] Error 2
> [PARSEC] Error: 'env make' failed.
>
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users



More information about the parsec-users mailing list