Bug 1548671 - rockboxUtility does not compile on ppc64le
Summary: rockboxUtility does not compile on ppc64le
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: ppc64le
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: NotReady
Depends On:
Blocks: PPCTracker
TreeView+ depends on / blocked
 
Reported: 2018-02-24 10:38 UTC by philippe ventrillon
Modified: 2018-03-09 10:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description philippe ventrillon 2018-02-24 10:38:28 UTC
The full logs are in the build report :
https://koji.fedoraproject.org/koji/taskinfo?taskID=25277186

This is the actual cause of the failure :
gcc -MG -MM -MT /builddir/build/BUILD/RockboxUtility-v1.4.0/buildrbutil/build//libs///libspeex/rbspeexdec.o -m64 -DHAVE_CONFIG_H -DROCKBOX_VOICE_ENCODER -I ../../lib/rbcodec/codecs/libspeex -O3 -fomit-frame-pointer -Wno-unused-parameter -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -o /builddir/build/BUILD/RockboxUtility-v1.4.0/buildrbutil/build//libs///libspeex/rbspeexdec.d rbspeexdec.c
gcc: error: unrecognized command line option '-mmacosx-version-min=10.4'


It seems the build system thinks this is a MAC

Comment 1 Dan Horák 2018-02-24 11:11:37 UTC
Yup, looks as a wrong assumption (if ppc, then mac) by the buildsystem, it should be reported upstream.

Comment 2 philippe ventrillon 2018-02-24 11:32:22 UTC
Yes i am going to report the bug upstream
My first goal was to have a bug to be able to place an excludeArch tag in my .spec file while still being conformant to package guidelines.

Comment 3 Ralf Corsepius 2018-02-24 12:15:52 UTC
If you have a closer look into the build.log, you'll notice that this package does not honor Fedora's CFLAGS at all.

Comment 4 Robert-André Mauchin 2018-02-25 00:14:53 UTC
Just a few info :
 - Not needed: Group:, Packager:
 - Use the %{qmake_qt5} macro
 - Use correct format for %changelog (that's where you put your name)

Comment 5 Jason Tibbitts 2018-02-27 19:54:07 UTC
Why is this filed as a package review?

Comment 6 philippe ventrillon 2018-03-04 19:24:14 UTC
Thank you for your help and acomments.

I have tried to set a %{ qmake_qt4 } macro instead of invoking qt-make directly. Unfortunately it makes the program to not compile anymore.
I get lots of errors like : 
/usr/bin/ld: /home/ventrill/projects/rpm/rbutil5/RockboxUtility-v1.4.0/buildrbutil/build//libs//librbspeex.a(rbspeex.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


I think i will need time and help from upstream to investigate this.


I opened this bug to have a number to place in the spec file nearby the excludeArch tag. When i opened the bug package review seemed to me the most suitable.


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