Bug 25239 - Invalid CFLAGS break PowerPC build
Summary: Invalid CFLAGS break PowerPC build
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: PowerPC Linux (All)
: medium normal
Assignee: Jakob Bornecrantz
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2009-11-23 02:40 UTC by bmaass
Modified: 2009-11-23 12:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description bmaass 2009-11-23 02:40:48 UTC
Overview:
Trying to build mesa from git (mesa-9999 from Gentoo Layman X11 overlay) on a ppc64 system fails while making all in src/gallium/drivers/svga with messages:

cc1: error: unrecognized command line option "-msse"
cc1: error: unrecognized command line option "-msse2"


Platform:
Linux 2.6.31-gentoo-r6 on PowerPC 970MP
Comment 1 Ian Romanick 2009-11-23 10:54:00 UTC
What actual version of Mesa is this?  How are is it being built?  Looking at Mesa GIT, the only way -msse or -msse2 are used is if the user specifically adds them to CFLAGS use confgure.sh or if the user uses either the linux-x86 or linux-dri-x86 builds.

My best guess is that the Gentoo build package has some sort of error in it.
Comment 2 Jose Fonseca 2009-11-23 11:22:11 UTC
The problem is the 

  CC = gcc -fvisibility=hidden -msse -msse2

in src/gallium/drivers/svga/Makefile. I think that line should be removed. Assigning to Jakob.
Comment 3 Jakob Bornecrantz 2009-11-23 12:12:13 UTC
Fix in mesa_7_7_branch with commit 86710c3334850eeaeffcac6d538e01fd5c203167. The commit will either be cherry-picked or merged soon.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.