Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exiv2 0.27.3 fails to build on PPC #1244

Closed
pkubaj opened this issue Jul 9, 2020 · 12 comments
Closed

exiv2 0.27.3 fails to build on PPC #1244

pkubaj opened this issue Jul 9, 2020 · 12 comments
Labels
CMake Configuration issues related with CMake

Comments

@pkubaj
Copy link

pkubaj commented Jul 9, 2020

Describe the bug
Building using GCC 10 on PPC/PPC64 fails with:
cc1plus: error: '-fcf-protection=full' is not supported for this target

To Reproduce
Steps to reproduce the behaviour:

  1. Try building on PPC platforms.

Expected behavior
exiv2 should build.

Desktop (please complete the following information):

  • OS: FreeBSD
  • Compiler & Version GCC 10.1
  • Compilation mode and/or compiler flags
    Default flags.

Additional context
1ea63cc fixed build on arm, ppc needs the same.

@pkubaj pkubaj added the bug label Jul 9, 2020
@pkubaj
Copy link
Author

pkubaj commented Jul 9, 2020

On PPC64 CMAKE_SYSTEM_PROCESSOR apparently is "powerpc64".

@clanmills clanmills self-assigned this Jul 9, 2020
@clanmills clanmills added CMake Configuration issues related with CMake and removed bug labels Jul 9, 2020
@clanmills clanmills added this to the v0.27.4 milestone Jul 9, 2020
@clanmills
Copy link
Collaborator

It never fails to amaze me that two people can report almost the same thing on the same day in code that hasn't been changed for years!

Right now I'm investigating a issue with a build flag on a very elderly Xcode 6.1. I'll apply similar medicine for -fcf-protection=full.

On which branch are you working? I maintain the 0.27-maintenance branch. Can you test my fix when it's available?

@pkubaj
Copy link
Author

pkubaj commented Jul 9, 2020

I'm not using any branch, I just build from FreeBSD ports tree.
And it's not that it got broken "years" ago. 0.27.2 built just fine, the regression happened in 0.27.3.

@clanmills
Copy link
Collaborator

I don't know what FreeBSD ports tree is. I frequently build and test 0.27.3 on FreeBSD on our buildserver. I don't have a PPC machine. Can you test my fix when it's available?

@pkubaj
Copy link
Author

pkubaj commented Jul 9, 2020

Well, I already wrote in my 1st message that PPC need the same that was done for ARM. So the correct fix is putting:
if (NOT (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "powerpc")) in cmake/compilerFlags.cmake.

@clanmills
Copy link
Collaborator

I don't know anything about that "arm" code on master. I deal with the 0.27-maintenance branch.

@clanmills clanmills removed this from the v0.27.4 milestone Jul 9, 2020
@clanmills clanmills removed their assignment Jul 9, 2020
@pkubaj
Copy link
Author

pkubaj commented Jul 9, 2020

Then this commit adding ARM should be merged to 0.27-maintenance. It should also add PPC (and other broken architectures, if there are any).

Anyway, I think -fcf-protection is supported only on x86_64, so it should only be enabled there (but that should be researched first).

@clanmills
Copy link
Collaborator

I've unassigned myself from this and will leave this to the people managing 'master'.

@jtojnar
Copy link
Contributor

jtojnar commented Aug 30, 2020

With #1252 merged, this is likely fixed on master but still an issue in 0.27 branch.

@clanmills
Copy link
Collaborator

clanmills commented Sep 1, 2020

I agree that this is an issue on the 0.27-maintenance branch. I tried to fix this in July. My dyslexia got the better of me. #1245

@ryandesign offered to help. I would very much appreciate some help with both the necessary changes (to support ARM, PPC and Xcode 6.1) and to test the builds. I've set up a VM for Xcode 6.1. Should I buy a raspberry pi? Any suggestions?

@jtojnar
Copy link
Contributor

jtojnar commented Sep 4, 2020

I opened #1271 fixing this for 0.27.

@clanmills
Copy link
Collaborator

I believe #1271 solves this issue. Thanks to @jtojnar for this contribution. I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake Configuration issues related with CMake
Projects
None yet
Development

No branches or pull requests

3 participants