Bug #120

gcc 3.4.5 error with -msse

Added by ejh over 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hi,
compiling pkgsrc xorg fails
the error is reproduced below.

Take a simple program like:

#include <xmmintrin.h>
int main(int argc, char* argv[])
{
}

try to compile it
cc -msse c.c
note that at least on my
DragonFly 1.4.2-RELEASE #0: Mon Mar 20 10:12:18 CST 2006 system
using
gcc version 3.4.5 20050809 (prerelease) [DragonFly] (propolice, visibility)
that the following errors appear (there are many more)

In file included from c.c:1:
/usr/include/xmmintrin.h:41: error: mode `V4SF' applied to inappropriate type
/usr/include/xmmintrin.h:44: error: mode `V4SF' applied to inappropriate type
/usr/include/xmmintrin.h: In function `_mm_add_ss':
/usr/include/xmmintrin.h:94: error: incompatible type for argument 1 of `__builtin_ia32_addss'
/usr/include/xmmintrin.h:94: error: incompatible type for argument 2 of `__builtin_ia32_addss'
/usr/include/xmmintrin.h:94: error: can't convert between vector values of different size

My guess is an error in the gcc configuration.

Cheers,

eric haug
Saint Louis University

History

#1 Updated by corecode over 8 years ago

Eric.J.Haug wrote:

> My guess is an error in the gcc configuration.

Did you upgrade from an older version? My guess that there is a stale
header lying around in /usr/include. If so we need to clean this out
with make update.

cheers
simon

Also available in: Atom PDF