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

distro-wide architecture set overriden by buildsystem #1533

Closed
389-ds-bot opened this issue Sep 12, 2020 · 2 comments
Closed

distro-wide architecture set overriden by buildsystem #1533

389-ds-bot opened this issue Sep 12, 2020 · 2 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48202


The distro-wide architecture set in CFLAGS is overriden by 389-ds-base
buildsystem. It tries to set -march to non-existing values on s390(x), for ppc*
such compiler option doesn't even exist. The buildsystem should touch the
-march options at all. See also
https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags

from build logs
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1851358
...
gcc -Wall -Wno-unknown-pragmas -std=c99 -march=s390 -c -I"src" -I"inc" -fpic
-O0 -g -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m31
-march=z9-109 -mtune=z10  -o obj/queue_queue.o src/queue/queue_queue.c
gcc: error: unrecognized argument in option '-march=s390'
gcc: note: valid arguments to '-march=' are: g5 g6 z10 z196 z9-109 z9-ec z900
z990 zEC12
...

and
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2559662
...
gcc -Wall -Wno-unknown-pragmas -std=c99 -march=ppc64le -c -I"src" -I"inc" -fpic
-O0 -g -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64
-mcpu=power7 -mtune=power8  -o obj/queue_new.o src/queue/queue_new.c
gcc -MM -std=c99 -I"src" -I"inc" src/stack/stack_delete.c >obj/stack_delete.d
cc1: error: unrecognized command line option '-march=ppc64le'
...


Version-Release number of selected component (if applicable):
389-ds-base-1.3.4.0-1.fc22
@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.3.4.1 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2015-06-24 23:08:00

Fixed for the version and newer: 389-ds-base-1.3.4.1-1.fc22

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2017-02-11 23:01:05

Metadata Update from @nhosoi:

  • Issue assigned to nhosoi
  • Issue set to the milestone: 1.3.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant