Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2014 13:10:51 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Chris H <bsd-lists@bsdforge.com>
Cc:        FreeBSD CURRENT <current@freebsd.org>, FreeBSD ports <freebsd-ports@FreeBSD.org>
Subject:   Re: What is xmmintrin.h, and why aren't ports finding it?
Message-ID:  <88093924-8327-450B-A086-F60C8155E9DC@FreeBSD.org>
In-Reply-To: <afe571fad65d19e5c1f84160966b4465@ultimatedns.net>
References:  <afe571fad65d19e5c1f84160966b4465@ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 07 Nov 2014, at 04:36, Chris H <bsd-lists@bsdforge.com> wrote:
> 
> Greetings,
> Working on a recent 11-CURRENT install
> (11-CURRENT #1 amd64 r274134 Nov 5 12:56:14 PST 2014)
> svn info /usr/ports Revision: 372176
> 
> Given the above, and the fact that I have installed lang/gcc-48.
> Is there any reason that any port wanting to include xmmintrin.h
> fails to find it? Even though dmesg && messages reflects the fact
> that gcc48 is included within my $PATH?

What you have in your PATH does not matter.  The xmmintrin.h header
contains SSE intrinsics, and should automatically be found by your gcc
4.8 port.  Normally it is located in:

/usr/local/lib/gcc48/gcc/i386-portbld-freebsd11.0/4.8.4/include/xmmintrin.h

or if you have a slightly different gcc version, just run:

find /usr/local/lib/gcc48 -name xmmintrin.h

to find it.  If you run:

gcc48 -v -x c -c /dev/null -o /dev/null

it should show you the paths it searches for include files (look for the
"#include <...> search starts here:" line).  For example, on my system
this shows:

#include <...> search starts here:
 /usr/local/lib/gcc48/gcc/i386-portbld-freebsd11.0/4.8.4/include
 /usr/local/include
 /usr/local/lib/gcc48/gcc/i386-portbld-freebsd11.0/4.8.4/include-fixed
 /usr/include
End of search list.

The directory where you found xmmintrin.h should be listed in the search
directories.

-Dimitry




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88093924-8327-450B-A086-F60C8155E9DC>