13 Star 18 Fork 163

src-openEuler/glibc

 / 详情

【22.03-SP3-rc1】【x86】glibc源码包本地自编译失败,add-Wl-z-noseparate-code-for-so.patch文件不存在

已完成
缺陷
创建于  
2023-12-04 11:12

软件信息:
1) OS版本及分支:openEuler-22.03-lts-sp3-round1
2) 内核信息:kernel-5.10.0-171.0.0.84.oe2203sp3.src.rpm
3) repo:http://121.36.84.172/dailybuild/EBS-openEuler-22.03-LTS-SP3/rc1_openeuler-2023-11-23-17-21-14/
4) 发现问题的组件版本信息:glibc-2.34-141.oe2203sp3.src.rpm

【问题复现步骤】
1、下载glibc源码包执行编译
yumdownloader --source glibc
2、安装glibc
rpm -ivh glibc-2.34-141.oe2203sp3.src.rpm
3、进入安装目录
cd /root/rpmbuild/SPECS/
4、开始编译
rpmbuild -ba glibc.spec
5、如果有依赖的就安装依赖
【预期结果】
1、源码包编译成功,生成rpm二进制包,无异常
【实际结果】
1、源码包编译失败,add-Wl-z-noseparate-code-for-so.patch文件不存在
【其他信息】
输入图片说明

评论 (4)

zjl_long 创建了缺陷 1年前

Hi zjl_long, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Computing, and any of the maintainers: @yang_yanchao , @liqingqing_1229 , @SuperSix173 , @wswsamao , @wangbin224 , @juyin

openeuler-ci-bot 添加了
 
sig/Computing
标签
1年前
zjl_long 修改了标题 1年前
zjl_long 修改了描述 1年前

从代码库看到是有对应add-Wl-z-noseparate-code-for-so.patch,查看spec发现patch有if判断

%if %{with noseparate_code}
Patch9044: add-Wl-z-noseparate-code-for-so.patch
%endif

但是从rc1的src下载的源码包的确是找不到对应patch

[root@localhost ~]# wget http://121.36.84.172/dailybuild/EBS-openEuler-22.03-LTS-SP3/rc1_openeuler-2023-11-23-17-21-14/source/Packages/glibc-2.34-141.oe2203sp3.src.rpm
--2023-12-04 13:57:33--  http://121.36.84.172/dailybuild/EBS-openEuler-22.03-LTS-SP3/rc1_openeuler-2023-11-23-17-21-14/source/Packages/glibc-2.34-141.oe2203sp3.src.rpm
正在连接 121.36.84.172:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:17867291 (17M) [application/x-redhat-package-manager]
正在保存至: “glibc-2.34-141.oe2203sp3.src.rpm”

glibc-2.34-141.oe2203sp3.src.rpm     100%[====================================================================>]  17.04M   662KB/s  用时 32s

2023-12-04 13:58:05 (541 KB/s) - 已保存 “glibc-2.34-141.oe2203sp3.src.rpm” [17867291/17867291])

[root@localhost ~]# rpm2cpio glibc-2.34-141.oe2203sp3.src.rpm | cpio -t | grep add-Wl
38004 块
[root@localhost ~]# rpm2cpio glibc-2.34-141.oe2203sp3.src.rpm | cpio -t | grep add-W
38004 块
[root@localhost ~]# rpm2cpio glibc-2.34-141.oe2203sp3.src.rpm | cpio -t
0001-add-base-files-for-libphtread-condition-family.patch
0001-elf-dynamic-linker-load-shared-object-use-hugepage-a.patch
0001-ld.so-support-ld.so-mmap-hugetlb-hugepage-according-.patch
0002-add-header-files-for-libphtread_2_17_so.patch
0002-elf-ld.so-add-testcase-for-ld.so-load-shared-object-.patch
0002-elf-ld.so-keep-compatible-with-the-original-policy-o.patch
0003-add-build-script-and-files-of-libpthread_2_17_so.patch
0003-elf-ld.so-remove-_mmap_hole-when-ld.so-mmap-PT_LOAD-.patch
0003-elf-ld.so-use-special-mmap-for-hugepage-to-get-symbo.patch
0004-add-two-header-files-with-some-deleted-macros.patch
0005-add-pthread-functions_h.patch
0006-add-elsion-function-which-moved-to-libc-in-glibc-2.34.patch
0007-add-lowlevellock_2_17_c.patch
0008-add-pause_nocancel_2_17.patch
0009-add-unwind-with-longjmp.patch
0009_nptl_2.17_adapt_for_bug_29029.patch
1-5-AArch64-Improve-A64FX-memset-for-small-sizes.patch
1_6-LoongArch-Optimize-string-functions-memcpy-memmove.patch
2-5-AArch64-Improve-A64FX-memset-for-large-sizes.patch
2_6-LoongArch-Optimize-string-functions-strchr-strchrnul.patch
3-5-AArch64-Improve-A64FX-memset-for-remaining-bytes.patch
3_6-LoongArch-Optimize-string-function-memset.patch
4-5-AArch64-Improve-A64FX-memset-by-removing-unroll3.patch
4_6-LoongArch-Optimize-string-functions-strcmp-strncmp.patch
5-5-AArch64-Improve-A64FX-memset-medium-loops.patch
5_6-LoongArch-Optimize-string-function-strcpy.patch
6_6-LoongArch-Optimize-string-functions-strlen-strnlen.patch
AArch64-Check-for-SVE-in-ifuncs-BZ-28744.patch
AArch64-Update-A64FX-memset-not-to-degrade-at-16KB.patch
Add-PTRACE_GET_RSEQ_CONFIGURATION-from-Linux-5.13-to.patch
Assume-only-FLAG_ELF_LIBC6-suport.patch
Avoid-warning-overriding-recipe-for-.-tst-ro-dynamic.patch
CVE-2022-23218-Buffer-overflow-in-sunrpc-svcunix_cre.patch
CVE-2022-23219-Buffer-overflow-in-sunrpc-clnt_create.patch
Disable-debuginfod-in-printer-tests-BZ-28757.patch
Do-not-define-tgmath.h-fmaxmag-fminmag-macros-for-C2.patch
Fix-deadlock-when-pthread_atfork-handler-calls-pthre.patch
Fix-failing-nss-tst-nss-files-hosts-long-with-local-.patch
Fix-glibc-2.34-ABI-omission-missing-GLIBC_2.34-in-dy.patch
Fix-subscript-error-with-odd-TZif-file-BZ-28338.patch
Fix-ununsed-fstatat64_time64_statx.patch
Handle-NULL-input-to-malloc_usable_size-BZ-28506.patch
LanguageList
LicenseList
Linux-Avoid-closing-1-on-failure-in-__closefrom_fall.patch
Linux-Detect-user-namespace-support-in-io-tst-getcwd.patch
Linux-Fix-fcntl-ioctl-prctl-redirects-for-_TIME_BITS.patch
Linux-Only-generate-64-bit-timestamps-for-64-bit-tim.patch
Linux-Simplify-__opensock-and-fix-race-condition-BZ-.patch
LoongArch-Add-static-PIE-support.patch
LoongArch-Fix-ptr-mangling-demangling-and-SHMLBA.patch
LoongArch-Fix-the-condition-to-use-PC-relative-addre.patch
LoongArch-Further-refine-the-condition-to-enable-sta.patch
LoongArch-Port.patch
Remove-_dl_skip_args_internal-declaration.patch
Remove-sysdeps-tls-macros.h.patch
Update-string-test-memmove.c-to-cover-16KB-copy.patch
Use-__executable_start-as-the-lowest-address-for-pro.patch
Use-support_open_dev_null_range-io-tst-closefrom-mis.patch
aarch64-Make-elf_machine_-load_address-dynamic-robus.patch
aarch64-Move-ld.so-_start-to-separate-file-and-drop-.patch
add-GB18030-2022-charmap-BZ-30243.patch
add-pthread_cond_clockwait-GLIBC_2_28.patch
arm-Simplify-elf_machine_-load_address-dynamic.patch
backport-Add-TEST_COMPARE_STRING_WIDE-to-support-check.h.patch
backport-Add-codepoint_collation-support-for-LC_COLLATE.patch
backport-Add-generic-C.UTF-8-locale-Bug-17318.patch
backport-Avoid-use-of-atoi-in-some-places-in-libc.patch
backport-CVE-2021-38604-0001-librt-add-test-bug-28213.patch
backport-CVE-2021-38604-0002-librt-fix-NULL-pointer-dereference-bug-28213.patch
backport-CVE-2023-4806.patch
backport-CVE-2023-4813.patch
backport-CVE-2023-4911.patch
backport-CVE-2023-5156.patch
backport-Fix-OOB-read-in-stdlib-thousand-grouping-parsing-BZ.patch
backport-elf-Do-not-completely-clear-reused-namespace-in-dlmo.patch
backport-elf-Fix-alloca-size-in-_dl_debug_vdprintf.patch
backport-elf-Fix-use-after-free-in-ldconfig-BZ-26779.patch
backport-elf-Make-more-functions-available-for-binding-during.patch
backport-elf-Remove-allocate-use-on-_dl_debug_printf.patch
backport-elf-fix-handling-of-negative-numbers-in-dl-printf.patch
backport-elf-tlsdeschtab.h-Add-the-Malloc-return-value-check.patch
backport-gmon-fix-memory-corruption-issues-BZ-30101.patch
backport-gmon-improve-mcount-overflow-handling-BZ-27576.patch
backport-localedata-Adjust-C.UTF-8-to-align-with-C-POSIX.patch
backport-localedef-Fix-handling-of-empty-mon_decimal_point-Bu.patch
backport-nscd-Fix-netlink-cache-invalidation-if-epoll-is-used.patch
backport-nss_dns-In-gaih_getanswer_slice-skip-strange-aliases-bug-12154.patch
backport-posix-Fix-some-crashes-in-wordexp-BZ-18096.patch
backport-posix-Fix-system-blocks-SIGCHLD-erroneously-BZ-30163.patch
backport-resolv_conf-release-lock-on-allocation-failure-bug-30527.patch
backport-rtld-properly-handle-root-directory-in-load-path-bug-30435.patch
backport-stdlib-Undo-post-review-change-to-16adc58e73f3-BZ-27.patch
backport-string-strerror-must-not-return-NULL-bug-30555.patch
backport-sunrpc-Suppress-GCC-Os-warning-on-user2netname.patch
backport-x86-Fix-wcsnlen-avx2-page-cross-length-comparison-BZ.patch
bench.mk
copy_and_spawn_sgid-Avoid-double-calls-to-close.patch
delete-check-installed-headers-c-and-check-installed.patch
delete-no-hard-link-to-avoid-all_language-package-to.patch
dlfcn-Do-not-use-rtld_active-to-determine-ld.so-stat.patch
dlfcn-Pass-caller-pointer-to-static-dlopen-implement.patch
elf-Add-a-comment-after-trailing-backslashes.patch
elf-Avoid-deadlock-between-pthread_create-and-ctors-.patch
elf-Call-__libc_early_init-for-reused-namespaces-bug.patch
elf-Drop-elf-tls-macros.h-in-favor-of-__thread-and-t.patch
elf-Earlier-missing-dynamic-segment-check-in-_dl_map.patch
elf-Fix-DNDEBUG-warning-in-_dl_start_args_adjust.patch
elf-Fix-compile-error-with-Werror-and-DNDEBUG.patch
elf-Fix-hwcaps-string-size-overestimation.patch
elf-Fix-initial-exec-TLS-access-on-audit-modules-BZ-.patch
elf-Fix-missing-colon-in-LD_SHOW_AUXV-output-BZ-2825.patch
elf-Makefile-Reflow-and-sort-most-variable-assignmen.patch
elf-Replace-nsid-with-args.nsid-BZ-27609.patch
elf-Restore-ldconfig-libc6-implicit-soname-logic-BZ-.patch
elf-Sort-tests-and-modules-names.patch
elf-Unconditionally-use-__ehdr_start.patch
elf-ld.so-Consider-maybe-existing-hole-between-PT_LO.patch
elf-ld.so-add-MAP_NORESERVE-flag-for-the-first-mmap-2MB-contig.patch
elf-ld.so-prohibit-multiple-i-options-and-do-not-allow-i-speci.patch
fix-CVE-2019-1010023.patch
fix-Segmentation-fault-in-nss-module.patch
fix-tst-glibcsyscalls-due-to-kernel-reserved-some-sy.patch
fix_nss_database_check_reload_and_get_memleak.patch
gaiconf_init-Avoid-double-free-in-label-and-preceden.patch
gconv-Do-not-emit-spurious-NUL-character-in-ISO-2022.patch
gconv_parseconfdir-Fix-memory-leak.patch
getcwd-Set-errno-to-ERANGE-for-size-1-CVE-2021-3999.patch
gethosts-Remove-unused-argument-_type.patch
glibc-1070416.patch
glibc-2.34.tar.xz
glibc-bench-compare
glibc.spec
gmon-Fix-allocated-buffer-overflow-bug-29444.patch
i386-Remove-broken-CAN_USE_REGISTER_ASM_EBP-bug-2877.patch
iconv_charmap-Close-output-file-when-done.patch
iconvconfig-Fix-behaviour-with-prefix-BZ-28199.patch
inet-fix-warn-unused-result.patch
intl-plural.y-Avoid-conflicting-declarations-of-yyer.patch
io-Do-not-implement-fstat-with-fstatat.patch
io-Fix-ftw-internal-realloc-buffer-BZ-28126.patch
io-Fix-use-after-free-in-ftw-BZ-26779.patch
ld.so-Don-t-fill-the-DT_DEBUG-entry-in-ld.so-BZ-2812.patch
ld.so-Initialize-bootstrap_map.l_ld_readonly-BZ-2834.patch
ld.so-Replace-DL_RO_DYN_SECTION-with-dl_relocate_ld-.patch
ldconfig-avoid-leak-on-empty-paths-in-config-file.patch
libio-Ensure-output-buffer-for-wchars-bug-28828.patch
libio-Flush-only-_IO_str_overflow-must-not-return-EO.patch
linux-Add-a-getauxval-test-BZ-23293.patch
linux-Fix-__closefrom_fallback-iterates-until-max-in.patch
linux-Fix-ancillary-64-bit-time-timestamp-conversion.patch
linux-Fix-fchmodat-with-AT_SYMLINK_NOFOLLOW-for-64-b.patch
linux-Fix-missing-__convert_scm_timestamps-BZ-28860.patch
linux-Fix-mq_timereceive-check-for-32-bit-fallback-c.patch
linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch
linux-Only-build-fstatat-fallback-if-required.patch
linux-Revert-the-use-of-sched_getaffinity-on-get_npr.patch
linux-Simplify-get_nprocs.patch
linux-Use-proc-stat-fallback-for-__get_nprocs_conf-B.patch
linux-__get_nprocs_sched-do-not-feed-CPU_COUNT_S-wit.patch
linux-fix-accuracy-of-get_nprocs-and-get_nprocs_conf.patch
linux-use-statx-for-fstat-if-neither-newfstatat-nor-.patch
localedef-Handle-symbolic-links-when-generating-loca.patch
login-Add-back-libutil-as-an-empty-library.patch
malloc-Fix-Wuse-after-free-warning-in-tst-mallocalig.patch
malloc-Fix-malloc-debug-for-2.35-onwards.patch
malloc-Fix-transposed-arguments-in-sysmalloc_mmap_fa.patch
malloc-hugepage-0001-malloc-Add-madvise-support-for-Transparent-Huge-Page.patch
malloc-hugepage-0002-malloc-Add-THP-madvise-support-for-sbrk.patch
malloc-hugepage-0003-malloc-Move-mmap-logic-to-its-own-function.patch
malloc-hugepage-0004-malloc-Add-Huge-Page-support-for-mmap.patch
malloc-hugepage-0005-malloc-Add-Huge-Page-support-to-arenas.patch
malloc-hugepage-0006-malloc-Move-MORECORE-fallback-mmap-to-sysmalloc_mmap.patch
malloc-hugepage-0007-malloc-Enable-huge-page-support-on-main-arena.patch
malloc-use-__get_nprocs-replace-__get_nprocs_sched.patch
math-Fix-asin-and-acos-invalid-exception-with-old-gc.patch
misc-Add-__get_nprocs_sched.patch
mtrace-Fix-output-with-PIE-and-ASLR-BZ-22716.patch
mtrace-Use-a-static-buffer-for-printing-BZ-25947.patch
nis-Fix-leak-on-realloc-failure-in-nis_getnames-BZ-2.patch
nptl-Add-one-more-barrier-to-nptl-tst-create1.patch
nptl-Avoid-setxid-deadlock-with-blocked-signals-in-t.patch
nptl-Do-not-set-signal-mask-on-second-setjmp-return-.patch
nptl-Fix-___pthread_unregister_cancel_restore-asynch.patch
nptl-Fix-pthread_cancel-cancelhandling-atomic-operat.patch
nptl-Fix-race-between-pthread_kill-and-thread-exit-b.patch
nptl-Fix-type-of-pthread_mutexattr_getrobust_np-pthr.patch
nptl-Handle-spurious-EINTR-when-thread-cancellation-.patch
nptl-pthread_kill-must-send-signals-to-a-specific-th.patch
nptl-pthread_kill-needs-to-return-ESRCH-for-old-prog.patch
nptl-pthread_kill-pthread_cancel-should-not-fail-aft.patch
nscd.conf
nss-Use-files-dns-as-the-default-for-the-hosts-datab.patch
nsswitch.conf
posix-Fix-attribute-access-mode-on-getcwd-BZ-27476.patch
posix-glob.c-update-from-gnulib.patch
pthread-tst-cancel28-Fix-barrier-re-init-race-condit.patch
realpath-Avoid-overwriting-preexisting-error-CVE-2021-3998.patch
realpath-Set-errno-to-ENAMETOOLONG-for-result-larger.patch
replace_same_file_to_hard_link.py
riscv-Drop-reliance-on-_GLOBAL_OFFSET_TABLE_-0.patch
riscv-align-stack-in-clone-BZ-28702.patch
rseq-Linux-Use-ptrdiff_t-for-__rseq_offset.patch
rseq-Linux-Use-rseq-to-accelerate-sched_getcpu.patch
rseq-nptl-Add-glibc.pthread.rseq-tunable-to-control-rseq-.patch
rseq-nptl-Add-public-rseq-symbols-and-sys-rseq.h.patch
rseq-nptl-Add-rseq-registration.patch
rseq-nptl-Add-thread_pointer.h-for-defining-__thread_poin.patch
rseq-nptl-Introduce-THREAD_GETMEM_VOLATILE.patch
rseq-nptl-Introduce-tcb-access.h-for-THREAD_-accessors.patch
rseq-nptl-rseq-failure-after-registration-on-main-thread-.patch
rt-Set-the-correct-message-queue-for-tst-mqueue10.patch
rtld-Remove-DL_ARGV_NOT_RELRO-and-make-_dl_skip_args.patch
rtld-Use-generic-argv-adjustment-in-ld.so-BZ-23293.patch
rtld-copy-terminating-null-in-tunables_strdup-bug-28.patch
socket-Add-the-__sockaddr_un_set-function.patch
socket-Do-not-use-AF_NETLINK-in-__opensock.patch
socket-Fix-mistyped-define-statement-in-socket-sys-s.patch
stdlib-Fix-formatting-of-tests-list-in-Makefile.patch
stdlib-Sort-tests-in-Makefile.patch
stdlib-strfrom-Add-copysign-to-fix-NAN-issue-on-risc.patch
strcmp-delete-align-for-loop_aligned.patch
sunrpc-Test-case-for-clnt_create-unix-buffer-overflo.patch
support-Add-check-for-TID-zero-in-support_wait_for_t.patch
support-Add-helpers-to-create-paths-longer-than-PATH.patch
support-Add-support_open_dev_null_range.patch
support-Add-support_socket_so_timestamp_time64.patch
support-Add-support_wait_for_thread_exit.patch
support-Also-return-fd-when-it-is-0.patch
testsuite_whitelist
time-Fix-overflow-itimer-tests-on-32-bit-systems.patch
time-Fix-use-after-free-in-getdate.patch
time-strftime_l-Avoid-an-unbounded-alloca.patch
timex-Use-64-bit-fields-on-32-bit-TIMESIZE-64-system.patch
timezone-handle-truncated-timezones-from-tzcode-2021.patch
timezone-test-case-for-BZ-28707.patch
tst-realpath-toolong-Fix-hurd-build.patch
tst-socket-timestamp-compat.c-Check-__TIMESIZE-BZ-28.patch
turn-default-value-of-x86_rep_stosb_threshold_form_2K_to_1M.patch
use-region-to-instead-of-country-for-extract-timezon.patch
x86-64-Optimize-load-of-all-bits-set-into-ZMM-regist.patch
x86-64-Use-testl-to-check-__x86_string_control.patch
x86-Black-list-more-Intel-CPUs-for-TSX-BZ-27398.patch
x86-Fallback-str-wcs-cmp-RTM-in-the-ncmp-overflow-ca.patch
x86-Fix-TEST_NAME-to-make-it-a-string-in-tst-strncmp.patch
x86-Fix-__wcsncmp_avx2-in-strcmp-avx2.S-BZ-28755.patch
x86-Fix-__wcsncmp_evex-in-strcmp-evex.S-BZ-28755.patch
x86-Test-wcscmp-RTM-in-the-wcsncmp-overflow-case-BZ-.patch
x86-Use-CHECK_FEATURE_PRESENT-to-check-HLE-BZ-27398.patch
x86-fix-Autoconf-caching-of-instruction-support-chec.patch
x86-use-default-cache-size-if-it-cannot-be-determine.patch
x86-use-total-l3cache-for-non_temporal_threshold.patch
x86_64-Simplify-elf_machine_-load_address-dynamic.patch
38004 块
[root@localhost ~]# rpm2cpio glibc-2.34-141.oe2203sp3.src.rpm | cpio -t | grep -i ^add
Add-PTRACE_GET_RSEQ_CONFIGURATION-from-Linux-5.13-to.patch
add-GB18030-2022-charmap-BZ-30243.patch
add-pthread_cond_clockwait-GLIBC_2_28.patch
38004 块

@small_leek 夏总,可以帮忙看下吗?

【22.03-SP3-RC2】验收通过
软件信息:
1) OS版本及分支:openEuler-22.03-lts-sp3-round2
2) 内核信息:kernel-5.10.0-176.0.0.89.oe2203sp3.src.rpm
3) repo:http://121.36.84.172/dailybuild/EBS-openEuler-22.03-LTS-SP3/rc2_openeuler-2023-12-07-22-51-25/source/
4) 发现问题的组件版本信息:glibc-2.34-142.oe2203sp3.src.rpm
【其他信息】
arm:
输入图片说明
x86:
输入图片说明

zjl_long 任务状态已完成 修改为已验收 1年前
zhangnaichuan 通过合并 Pull Request !786: add Wl,-z,noseparate-code for so任务状态已验收 修改为已完成 1年前

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
里程碑
分支
参与者(4)
5329419 openeuler ci bot 1632792936 9884780 paulthomas100199 1703207487 liqingqing_1229-liqingqing_1229 zjl_long-zjl_long
1
https://gitee.com/src-openeuler/glibc.git
git@gitee.com:src-openeuler/glibc.git
src-openeuler
glibc
glibc

搜索帮助