Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1251422

Summary: Invalid -march=native for gcc on ppc/s390
Product: [Fedora] Fedora Reporter: Rafael Fonseca <rdossant>
Component: atanksAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: gwync, mjuszkie
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: atanks-6.3-3.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-11 16:03:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765, 1071880, 922257, 1051573    
Attachments:
Description Flags
patch + spec changeset none

Description Rafael Fonseca 2015-08-07 09:35:33 UTC
Description of problem: atanks fails to build on ppc and s390 because '-march=native' is not a valid flag for gcc on these platforms.


Version-Release number of selected component (if applicable): 6.3-1


How reproducible: try to koji-build atanks on ppc64/s390x


Actual results: g++ fails with the following errors:

PPC: # make
Compiling obj/network.o
/usr/lib64/ccache/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.3\" -DNETWORK -I/usr/include -march=native -Wall -Wextra -Wpedantic -std=c++11 -pthread -O2 -o obj/network.o -c src/network.cpp
g++: error: unrecognized command line option ‘-march=native’
Makefile:284: recipe for target 'obj/network.o' failed
make: *** [obj/network.o] Error 1

S390x: # g++ -march=native
g++: error: unrecognized argument in option ‘-march=native’
g++: note: valid arguments to ‘-march=’ are: g5 g6 z10 z196 z9-109 z9-ec z900 z990 zEC12
g++: fatal error: no input files
compilation terminated.

Comment 1 Marcin Juszkiewicz 2015-09-24 09:50:47 UTC
also on aarch64

Comment 2 Marcin Juszkiewicz 2015-09-24 09:51:53 UTC
Created attachment 1076426 [details]
patch + spec changeset

This fixes issue.

Comment 3 Marcin Juszkiewicz 2015-10-01 11:15:20 UTC
pushed to rawhide

Comment 4 Fedora Update System 2015-10-08 10:07:30 UTC
atanks-6.3-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-69de455c28

Comment 5 Fedora Update System 2015-10-09 13:56:03 UTC
atanks-6.3-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update atanks'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-69de455c28

Comment 6 Fedora Update System 2015-10-11 16:03:26 UTC
atanks-6.3-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.