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 1259702

Summary: g++: error: unrecognized command line option ‘-posix’
Product: [Fedora] Fedora Reporter: Marcin Juszkiewicz <mjuszkie>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: davejohansen, jakub, jwakely, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-03 12:42:23 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: 922257    

Description Marcin Juszkiewicz 2015-09-03 12:00:42 UTC
Description of problem:

pdfedit fails to build from source on aarch64 because it is using -posix switch. It works fine on primary architectures but on aarch64 g++ does not know that switch:

13:53 hrw@pinkiepie-rawhide:puchatek-del$ g++ hello.cc -posix
g++: error: unrecognized command line option ‘-posix’

13:55 hrw@puchatek:del$ g++ -posix hello.cc
13:58 hrw@puchatek:del$ 

pinkiepie is aarch64, puchatek is x86-64. Both have same version of g++ installed:

13:58 hrw@puchatek:del$ g++ --version
g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)
13:55 hrw@pinkiepie-rawhide:puchatek-del$ g++ --version
g++ (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4)


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

5.1.1-4

How reproducible:

always

Steps to Reproduce:
1. g++ -posix hello.cc

Actual results:

13:53 hrw@pinkiepie-rawhide:puchatek-del$ g++ hello.cc -posix
g++: error: unrecognized command line option ‘-posix’

Expected results:

source compiled

Additional info:

Comment 1 Jakub Jelinek 2015-09-03 12:22:15 UTC
Just fix up pdfedit not to do it, use portable -D_POSIX_SOURCE instead?
These compatibility options really shouldn't be added to new ports.

Comment 2 Marcin Juszkiewicz 2015-09-03 12:42:23 UTC
Thanks Jakub.

Will patch.