Bug#224593: gcc-3.3: xmmintrin.h has a "#include <emmintrin.h>" but emmintrin.h does not exist
severity 224593 grave
thanks
At Sat, 20 Dec 2003 12:51:50 +0100,
Antoine Sirinelli wrote:
> Package: gcc-3.3
> Version: 1:3.3.3-0pre0
> Severity: normal
> Tags: patch sid
>
> I cannot compile a program using xmmintrin.h because the file
> emmintrin.h is not present on my system. I applied this patch and it
> works :
This bug is also problem for glibc because the current glibc package
can't compile it on i386:
make[4]: Leaving directory `/home/data/gotom/debian/custom/glibc/cvs/build/glibc_2.3.2.ds1-
11.test1/glibc-2.3.2.ds1/build-tree/glibc-2.3.2/elf'
gcc-3.3 tst-alignmod.c -c -std=gnu99 -D__USE_STRING_INLINES -O2 -O3 -Wall -Winline -Wstrict
-prototypes -Wwrite-strings -fstrict-aliasing -g -g0 -march=i686 -mcpu=i686 -pipe -mpreferr
ed-stack-boundary=2 -fomit-frame-pointer -fPIC -msse -malign-double -mpreferred-stack-boun
dary=4 -I../include -I. -I/home/data/gotom/debian/custom/glibc/cvs/build/glibc_2.3.2.ds1-
11.test1/glibc-2.3.2.ds1/build-tree/i386-i686/elf -I.. -I../libio -I../nptl -I/home/data/go
tom/debian/custom/glibc/cvs/build/glibc_2.3.2.ds1-11.test1/glibc-2.3.2.ds1/build-tree/i386-
i686 -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/un
ix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps
/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I.
./nptl/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sys
deps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdep
s/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysde
ps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl
/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sy
sdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/
ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i
486-linux/3.3.3/include -isystem /home/data/gotom/debian/custom/glibc/cvs/build/glibc_2.3.2
.ds1-11.test1/glibc-2.3.2.ds1/debian/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include .
./include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -o /home/data/gotom/debian/cus
tom/glibc/cvs/build/glibc_2.3.2.ds1-11.test1/glibc-2.3.2.ds1/build-tree/i386-i686/elf/tst-a
lignmod.os -MD -MP -MF /home/data/gotom/debian/custom/glibc/cvs/build/glibc_2.3.2.ds1-11.te
st1/glibc-2.3.2.ds1/build-tree/i386-i686/elf/tst-alignmod.os.dt
In file included from ../sysdeps/i386/i686/tst-stack-align.h:24,
from tst-alignmod.c:21:
/usr/lib/gcc-lib/i486-linux/3.3.3/include/xmmintrin.h:1227:23: emmintrin.h: No such file or
directory
make[3]: *** [/home/data/gotom/debian/custom/glibc/cvs/build/glibc_2.3.2.ds1-11.test1/glibc
-2.3.2.ds1/build-tree/i386-i686/elf/tst-alignmod.os] Error 1
> --- xmmintrin.h 2003-12-20 12:45:51.000000000 +0100
> +++ /usr/lib/gcc-lib/i486-linux/3.3.3/include/xmmintrin.h 2003-12-19 20:44:10.000000000 +0100
> @@ -1224,7 +1224,7 @@
> } while (0)
>
> /* For backward source compatibility. */
> -#include <emmintrin.h>
> +//#include <emmintrin.h>
>
> #endif /* __SSE__ */
> #endif /* _XMMINTRIN_H_INCLUDED */
Another way is to include emmintrin.h for debian gcc package with
modifying gcc-3.3 debian/rules.d/binary-gcc.mk. I don't know it's
valid fix or not.
Regards,
-- gotom
Reply to: