bin/57975: include/xmmintrin.h defines __v4si twice

Lars Eggert larse at
Mon Oct 13 13:40:12 PDT 2003

>Number:         57975
>Category:       bin
>Synopsis:       include/xmmintrin.h defines __v4si twice
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 13 13:40:08 PDT 2003
>Originator:     Lars Eggert
>Release:        FreeBSD 5.1-CURRENT i386
System: FreeBSD 5.1-CURRENT FreeBSD 5.1-CURRENT #1: Wed Oct 8 10:18:33 PDT 2003 larse at i386

include/xmmintrin.h defines __v4si twice, once in line 45, and once
again in line 1113 inside an __SSE2__ ifdef block. This causes errors
when building ports that define __SSE2__, such as multimedia/ffmpeg.

[root at nik: /usr/ports/multimedia/ffmpeg] make
===>  Building for ffmpeg-0.4.8
gmake -C libavcodec all
gmake[1]: Entering directory `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.8/libavcodec'
cc -O -pipe -mmmx -msse -msse2 -march=pentium4 -I/usr/local/include  -O3 -ffast-math -fomit-frame-pointer -g -O3 -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -msse -c -o i386/fft_sse.o i386/fft_sse.c
In file included from i386/fft_sse.c:24:
/usr/include/xmmintrin.h:1113: error: redefinition of `__v4si'
/usr/include/xmmintrin.h:45: error: `__v4si' previously declared here
gmake[1]: *** [i386/fft_sse.o] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.8/libavcodec'
gmake: *** [lib] Error 2
*** Error code 2
Stop in /usr/ports/multimedia/ffmpeg.

I locally fixed this by removing the second definition of __v4si. Not
sure what the right solution is, because xmmintrin.h is contributed code
from gcc. 


More information about the freebsd-bugs mailing list