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

rpmbuild failure for fedora #112

Closed
gcongiu opened this issue Nov 8, 2023 · 0 comments
Closed

rpmbuild failure for fedora #112

gcongiu opened this issue Nov 8, 2023 · 0 comments

Comments

@gcongiu
Copy link
Contributor

gcongiu commented Nov 8, 2023

I am looking into building rpms of what is currently in the papi repository. However, when I put the new papi-7.0.1.tar.gz from "make dist-targz" the rpmbuild configure doesn't work because of the followig patch git commit 0cc7bf1

Author: Giuseppe Congiu <gcongiu@icl.utk.edu> 2023-09-29 09:33:00
Committer: Giuseppe Congiu <gcongiu@icl.utk.edu> 2023-10-24 08:44:56
Parent: d9ffaf2 (Merge pull request #101 from anustuvicl/2023.10.19-cuda_fix_papi_command_line_segfault)
Child: 8d80048 (sde_lib: do not build with debug symbols by default)
Branches: coverity202311, master, remotes/origin/master
Follows:
Precedes:

configure: do not build with debug symbols by default

Remove -g being added by default in configure.

End up getting the following error message in config.log for the "rpmbuild -ba papi.spec"

configure:3180: checking whether we are cross compiling
configure:3188: gcc -o conftest -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes conftest.c >&5
configure:3192: $? = 0
configure:3199: ./conftest
configure:3203: $? = 0
configure:3218: result: no
configure:3223: checking for suffix of object files
configure:3246: gcc -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g conftest.c >&5
configure:3250: $? = 0
configure:3272: result: o

For the time being I have patched out that change out so that I can build things on Fedora.

gcongiu added a commit to gcongiu/papi that referenced this issue Nov 8, 2023
gcongiu added a commit to gcongiu/papi that referenced this issue Nov 8, 2023
gcongiu added a commit to gcongiu/papi that referenced this issue Nov 8, 2023
gcongiu added a commit that referenced this issue Nov 8, 2023
@gcongiu gcongiu closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant