Bug 1259702 - g++: error: unrecognized command line option ‘-posix’
Summary: g++: error: unrecognized command line option ‘-posix’
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARM64, F-ExcludeArch-aarch64
TreeView+ depends on / blocked
 
Reported: 2015-09-03 12:00 UTC by Marcin Juszkiewicz
Modified: 2015-09-03 12:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-09-03 12:42:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.