Bug 172095 - `_mm_malloc' was not declared in this scope
Summary: `_mm_malloc' was not declared in this scope
Status: RESOLVED WORKSFORME
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Fredrik Höglund
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-03 17:53 UTC by wbrana
Modified: 2012-09-11 14:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
build log (11.16 KB, text/plain)
2008-10-03 17:55 UTC, wbrana
Details
missing functions (1.86 KB, text/plain)
2008-10-03 18:34 UTC, wbrana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wbrana 2008-10-03 17:53:43 UTC
Version:           4.1.2 (using Devel)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r2 p1.5, ssp-3.4.6-1.0, pie-8.7.10) 
OS:                Linux
Installed from:    Compiled sources

Build failed:

/mnt/md4/cache/portage/kde-base/ksmserver-4.1.2/work/ksmserver-4.1.2/ksmserver/fadeeffect.cpp:326: error: `_mm_free' was not declared in this scope
/mnt/md4/cache/portage/kde-base/ksmserver-4.1.2/work/ksmserver-4.1.2/ksmserver/fadeeffect.cpp: In member function `void BlendingThread::setImage(XImage*)':
/mnt/md4/cache/portage/kde-base/ksmserver-4.1.2/work/ksmserver-4.1.2/ksmserver/fadeeffect.cpp:337: error: `_mm_malloc' was not declared in this scope
/mnt/md4/cache/portage/kde-base/ksmserver-4.1.2/work/ksmserver-4.1.2/ksmserver/fadeeffect.cpp: In constructor `FadeEffect::FadeEffect(QWidget*, QPixmap*)':
/mnt/md4/cache/portage/kde-base/ksmserver-4.1.2/work/ksmserver-4.1.2/ksmserver/fadeeffect.cpp:479: error: `_mm_malloc' was not declared in this scope
/mnt/md4/cache/portage/kde-base/ksmserver-4.1.2/work/ksmserver-4.1.2/ksmserver/fadeeffect.cpp:479: warning: unused variable '_mm_malloc'
make[2]: *** [ksmserver/CMakeFiles/kdeinit_ksmserver.dir/fadeeffect.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [ksmserver/CMakeFiles/kdeinit_ksmserver.dir/all] Error 2
make: *** [all] Error 2
Comment 1 wbrana 2008-10-03 17:55:34 UTC
Created attachment 27675 [details]
build log
Comment 2 wbrana 2008-10-03 18:34:18 UTC
Created attachment 27676 [details]
missing functions

Attached code from newer gcc isn't included with my gcc.
Comment 3 Fredrik Höglund 2009-01-08 00:21:17 UTC
SVN commit 907374 by fredrik:

Don't build the SSE2 code when gcc 3.x is used, since it doesn't
support _mm_malloc().

BUG: 172095


 M  +1 -1      fadeeffect.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=907374
Comment 4 Hasso Tepper 2009-01-31 08:54:58 UTC
I don't think that the committed fix is a correct one. GCC3 supports SSE2 AFAIK, it just doesn't have _mm_malloc/_mm_free. I haven't tested it myself, but judging from the patch FreeBSD ports have been used for a while [1] I think that I'm right :).

https://kf.athame.co.uk/cgi-bin/viewvc.cgi/trunk/area51/x11/kdebase4-workspace/files/patch-ksmserver_fadeeffect.cpp?revision=4050&view=markup

PS. Please backport it to the 4.2 branch as well.
Comment 5 Myriam Schweingruber 2012-09-08 12:41:28 UTC
I assume this is still valid for KDE 4.9.x? Please set the version field.
Comment 6 wbrana 2012-09-11 14:09:16 UTC
gcc 3 is obsolete