Bug 163518 - [patch] x11/babl: unbreak SSE build with clang
Summary: [patch] x11/babl: unbreak SSE build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 00:20 UTC by Jan Beich
Modified: 2012-03-16 03:20 UTC (History)
0 users

See Also:


Attachments
clang.diff (1.71 KB, patch)
2011-12-22 00:20 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2011-12-22 00:20:05 UTC
- unbreak sse detection on amd64
- don't use __builtin* functions directly

How-To-Repeat: $ make CC=clang
  gmake[2]: Entering directory `/usr/ports/x11/babl/work/babl-0.1.6/extensions'
  CC     sse_fixups_la-sse-fixups.lo
sse-fixups.c:96:16: error: use of unknown builtin '__builtin_ia32_movhlps'
           v = g4float_movhl (v, v);
               ^
sse-fixups.c:46:29: note: expanded from:
#define g4float_movhl(a,b)  __builtin_ia32_movhlps(a, b)
                            ^
sse-fixups.c:96:14: error: assigning to 'g4float' from incompatible type 'int';
           v = g4float_movhl (v, v);
             ^ ~~~~~~~~~~~~~~~~~~~~
sse-fixups.c:154:14: error: assigning to 'g4float' from incompatible type 'int';
           v = g4float_movhl (v, v);
             ^ ~~~~~~~~~~~~~~~~~~~~
3 errors generated.
gmake[2]: *** [sse_fixups_la-sse-fixups.lo] Error 1
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-12-22 00:20:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-03-16 03:12:44 UTC
mezz        2012-03-16 03:12:33 UTC

  FreeBSD ports repository

  Modified files:
    x11/babl             Makefile 
  Added files:
    x11/babl/files       patch-sse-fixups.c 
  Log:
  Fix the build with clang.
  
  PR:             ports/163518
  Submitted by:   Jan Beich <jbeich@tormail.net>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.12      +4 -0      ports/x11/babl/Makefile
  1.1       +28 -0     ports/x11/babl/files/patch-sse-fixups.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Jeremy Messenger freebsd_committer freebsd_triage 2012-03-16 03:12:45 UTC
State Changed
From-To: open->closed

Committed, thanks!