On Thu, Oct 11, 2007 at 06:30:59PM +0200, Jacek Herold wrote:
> Hello
> 
> I'm trying to compile the gettext package and following error appears:
> 
> 
> make[3]: Entering directory `/sources/gettext-0.16.1/gettext-tools/src'
> make  all-am
> make[4]: Entering directory `/sources/gettext-0.16.1/gettext-tools/src'
> /bin/sh ../libtool --tag=CC   --mode=link gcc -m32 -mcpu=ultrasparc 
> -mtune=ultrasparc  -fopenmp -g -O2   -o msgmerge msgmerge-msgmerge.o 
> msgmerge-msgl-fsearch.o msgmerge-plural-count.o libgettextsrc.la  -lm -fopenmp
> gcc -m32 -mcpu=ultrasparc -mtune=ultrasparc -fopenmp -g -O2 -o .libs/msgmerge 
> msgmerge-msgmerge.o msgmerge-msgl-fsearch.o msgmerge-plural-count.o -fopenmp  
> ./.libs/libgettextsrc.so 
> /sources/gettext-0.16.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so -lc 
> -lm
> /usr/lib64/gcc/sparc64-unknown-linux-gnu/4.2.1/../../../../lib/libgomp.so: 
> undefined reference to `__sync_val_compare_and_swap_4'
> /usr/lib64/gcc/sparc64-unknown-linux-gnu/4.2.1/../../../../lib/libgomp.so: 
> undefined reference to `__sync_lock_test_and_set_4'
> /usr/lib64/gcc/sparc64-unknown-linux-gnu/4.2.1/../../../../lib/libgomp.so: 
> undefined reference to `__sync_bool_compare_and_swap_4'
> /usr/lib64/gcc/sparc64-unknown-linux-gnu/4.2.1/../../../../lib/libgomp.so: 
> undefined reference to `__sync_add_and_fetch_4'
> collect2: ld returned 1 exit status
> make[4]: *** [msgmerge] Error 1
 I don't have any sparc systems, but google suggests these __sync_
functions are internal to gcc.  On this powerpc box a quick
 find /usr/lib/gcc/*/* | xargs strings | grep '__sync_'
finds most, or all, of them.  What it doesn't do is tell me the
name of the library they are in.

 So, it looks as if either gcc or ld has a problem.  You seem to be
installing the basic system software, so you should have 'find' and
'xargs' installed.  But, you need to restrict the search to 32-bit
libraries - possibly, those are in /32 subdirectories.  If you
logged the install of gcc, you should be able to identify the
relevant directories easily.  The first suggestion, in case you
haven't guessed, is that they either didn't get installed, or were
overwritten by 64-bit versions.  I can vaguely remember having that
sort of problem on multilib, probably when a new version of gcc came
out.

 If they are there, I'm not the best person to advise on how 'ld'
searches, but hopefully somebody knows.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to