Page 1 of 1
Undefined reference to __sync_fetch_and_add_4
Posted: 19 May 2012 13:38
by Claupacius
Hi,
I'm trying to make a cross-compilation on Kubuntu.
Everything went smooth until make step.
I get an error :
In function vlc_atomic_add
undefined reference to __sync_fetch_and_add_4.
What can be a problem ?
Thank you in advance.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 21 May 2012 18:14
by Jean-Baptiste Kempf
You need to force march=pentium2 I think.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 24 May 2012 14:35
by Claupacius
Thank you very much for the reply.
This parameter eliminated a problem with linking.
However, during compilation of grain video filter, gcc spit out the following error :
BlockBlendSse2 - undeclared
I think this error is linked to the parameter "pentium2", where SSE2 does not exist yet.
After this error the build process is stopped.
How can I overcome this problem ? Manually remove a compilation of this module ?
Thank you in advance
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 24 May 2012 15:29
by Claupacius
Ok, I tried to change the parameter to "pentium4" and it succeeded.
Thank you once again.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 19 Jun 2012 18:50
by jml674
Sorry to be a pain but I ran into same issue, can you explicitly describe where/how you set the march flag ?
thanks in advance !
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 20 Jun 2012 07:51
by jml674
Figured it out: adding CFLAG env (-march=pentium4) before running configure script.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 23 Jun 2012 16:31
by Jean-Baptiste Kempf
Figured it out: adding CFLAG env (-march=pentium4) before running configure script.
pentium should be enough.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 25 Jun 2012 13:23
by runner0502
after add cflags env , there is another error.
/modules/access/file.c:186: error: implicit declaration of function ‘S_ISSOCK
i try pentium4 or pentium2 or pentium, but same result.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 28 Jun 2012 13:07
by edwardw
after add cflags env , there is another error.
/modules/access/file.c:186: error: implicit declaration of function ‘S_ISSOCK
i try pentium4 or pentium2 or pentium, but same result.
Fixed in latest git, I think.
Re: Undefined reference to __sync_fetch_and_add_4
Posted: 02 Jul 2012 16:56
by runner0502
after add cflags env , there is another error.
/modules/access/file.c:186: error: implicit declaration of function ‘S_ISSOCK
i try pentium4 or pentium2 or pentium, but same result.
Fixed in latest git, I think.
yes, latest git fix this error. thanks.