-
Notifications
You must be signed in to change notification settings - Fork 7
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
I can't build glibc on computer that does not support evex 512 instruction with default configuration #3
Comments
Hello. I know your comment too old, but I had same issue when working on old CentOS 7. I've upgraded GNU binutils (This contains new version of GNU Assembler) by compiling from it's source and it worked. |
try to run configure with |
kraj
pushed a commit
that referenced
this issue
Apr 25, 2024
Also compile dl-misc.os with $(rtld-early-cflags) to avoid Program received signal SIGILL, Illegal instruction. 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 156 bool positive = true; (gdb) bt #0 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 #1 0x00007ffff7fdb1a9 in tunable_initialize ( cur=cur@entry=0x7ffff7ffbc00 <tunable_list+2176>, strval=strval@entry=0x7fffffffe2c9 "2", len=len@entry=1) at dl-tunables.c:131 #2 0x00007ffff7fdb3a2 in parse_tunables (valstring=<optimized out>) at dl-tunables.c:258 #3 0x00007ffff7fdb5d9 in __GI___tunables_init (envp=0x7fffffffdd58) at dl-tunables.c:288 #4 0x00007ffff7fe44c3 in _dl_sysdep_start ( start_argptr=start_argptr@entry=0x7fffffffdcb0, dl_main=dl_main@entry=0x7ffff7fe5f80 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:110 #5 0x00007ffff7fe5cae in _dl_start_final (arg=0x7fffffffdcb0) at rtld.c:494 #6 _dl_start (arg=0x7fffffffdcb0) at rtld.c:581 #7 0x00007ffff7fe4b38 in _start () (gdb) when setting GLIBC_TUNABLES in glibc compiled with APX. Reviewed-by: Florian Weimer <[email protected]>
kraj
pushed a commit
that referenced
this issue
Apr 25, 2024
Also compile dl-misc.os with $(rtld-early-cflags) to avoid Program received signal SIGILL, Illegal instruction. 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 156 bool positive = true; (gdb) bt #0 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 #1 0x00007ffff7fdb1a9 in tunable_initialize ( cur=cur@entry=0x7ffff7ffbc00 <tunable_list+2176>, strval=strval@entry=0x7fffffffe2c9 "2", len=len@entry=1) at dl-tunables.c:131 #2 0x00007ffff7fdb3a2 in parse_tunables (valstring=<optimized out>) at dl-tunables.c:258 #3 0x00007ffff7fdb5d9 in __GI___tunables_init (envp=0x7fffffffdd58) at dl-tunables.c:288 #4 0x00007ffff7fe44c3 in _dl_sysdep_start ( start_argptr=start_argptr@entry=0x7fffffffdcb0, dl_main=dl_main@entry=0x7ffff7fe5f80 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:110 #5 0x00007ffff7fe5cae in _dl_start_final (arg=0x7fffffffdcb0) at rtld.c:494 #6 _dl_start (arg=0x7fffffffdcb0) at rtld.c:581 #7 0x00007ffff7fe4b38 in _start () (gdb) when setting GLIBC_TUNABLES in glibc compiled with APX. Reviewed-by: Florian Weimer <[email protected]> (cherry picked from commit 049b768)
kraj
pushed a commit
that referenced
this issue
Apr 25, 2024
Also compile dl-misc.os with $(rtld-early-cflags) to avoid Program received signal SIGILL, Illegal instruction. 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 156 bool positive = true; (gdb) bt #0 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 #1 0x00007ffff7fdb1a9 in tunable_initialize ( cur=cur@entry=0x7ffff7ffbc00 <tunable_list+2176>, strval=strval@entry=0x7fffffffe2c9 "2", len=len@entry=1) at dl-tunables.c:131 #2 0x00007ffff7fdb3a2 in parse_tunables (valstring=<optimized out>) at dl-tunables.c:258 #3 0x00007ffff7fdb5d9 in __GI___tunables_init (envp=0x7fffffffdd58) at dl-tunables.c:288 #4 0x00007ffff7fe44c3 in _dl_sysdep_start ( start_argptr=start_argptr@entry=0x7fffffffdcb0, dl_main=dl_main@entry=0x7ffff7fe5f80 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:110 #5 0x00007ffff7fe5cae in _dl_start_final (arg=0x7fffffffdcb0) at rtld.c:494 #6 _dl_start (arg=0x7fffffffdcb0) at rtld.c:581 #7 0x00007ffff7fe4b38 in _start () (gdb) when setting GLIBC_TUNABLES in glibc compiled with APX. Reviewed-by: Florian Weimer <[email protected]> (cherry picked from commit 049b768)
kraj
pushed a commit
that referenced
this issue
Apr 25, 2024
Also compile dl-misc.os with $(rtld-early-cflags) to avoid Program received signal SIGILL, Illegal instruction. 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 156 bool positive = true; (gdb) bt #0 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 #1 0x00007ffff7fdb1a9 in tunable_initialize ( cur=cur@entry=0x7ffff7ffbc00 <tunable_list+2176>, strval=strval@entry=0x7fffffffe2c9 "2", len=len@entry=1) at dl-tunables.c:131 #2 0x00007ffff7fdb3a2 in parse_tunables (valstring=<optimized out>) at dl-tunables.c:258 #3 0x00007ffff7fdb5d9 in __GI___tunables_init (envp=0x7fffffffdd58) at dl-tunables.c:288 #4 0x00007ffff7fe44c3 in _dl_sysdep_start ( start_argptr=start_argptr@entry=0x7fffffffdcb0, dl_main=dl_main@entry=0x7ffff7fe5f80 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:110 #5 0x00007ffff7fe5cae in _dl_start_final (arg=0x7fffffffdcb0) at rtld.c:494 #6 _dl_start (arg=0x7fffffffdcb0) at rtld.c:581 #7 0x00007ffff7fe4b38 in _start () (gdb) when setting GLIBC_TUNABLES in glibc compiled with APX. Reviewed-by: Florian Weimer <[email protected]> (cherry picked from commit 049b768)
kraj
pushed a commit
that referenced
this issue
Apr 25, 2024
Also compile dl-misc.os with $(rtld-early-cflags) to avoid Program received signal SIGILL, Illegal instruction. 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 156 bool positive = true; (gdb) bt #0 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 #1 0x00007ffff7fdb1a9 in tunable_initialize ( cur=cur@entry=0x7ffff7ffbc00 <tunable_list+2176>, strval=strval@entry=0x7fffffffe2c9 "2", len=len@entry=1) at dl-tunables.c:131 #2 0x00007ffff7fdb3a2 in parse_tunables (valstring=<optimized out>) at dl-tunables.c:258 #3 0x00007ffff7fdb5d9 in __GI___tunables_init (envp=0x7fffffffdd58) at dl-tunables.c:288 #4 0x00007ffff7fe44c3 in _dl_sysdep_start ( start_argptr=start_argptr@entry=0x7fffffffdcb0, dl_main=dl_main@entry=0x7ffff7fe5f80 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:110 #5 0x00007ffff7fe5cae in _dl_start_final (arg=0x7fffffffdcb0) at rtld.c:494 #6 _dl_start (arg=0x7fffffffdcb0) at rtld.c:581 #7 0x00007ffff7fe4b38 in _start () (gdb) when setting GLIBC_TUNABLES in glibc compiled with APX. Reviewed-by: Florian Weimer <[email protected]> (cherry picked from commit 049b768)
kraj
pushed a commit
that referenced
this issue
Apr 25, 2024
Also compile dl-misc.os with $(rtld-early-cflags) to avoid Program received signal SIGILL, Illegal instruction. 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 156 bool positive = true; (gdb) bt #0 0x00007ffff7fd36ea in _dl_strtoul (nptr=nptr@entry=0x7fffffffe2c9 "2", endptr=endptr@entry=0x7fffffffd728) at dl-misc.c:156 #1 0x00007ffff7fdb1a9 in tunable_initialize ( cur=cur@entry=0x7ffff7ffbc00 <tunable_list+2176>, strval=strval@entry=0x7fffffffe2c9 "2", len=len@entry=1) at dl-tunables.c:131 #2 0x00007ffff7fdb3a2 in parse_tunables (valstring=<optimized out>) at dl-tunables.c:258 #3 0x00007ffff7fdb5d9 in __GI___tunables_init (envp=0x7fffffffdd58) at dl-tunables.c:288 #4 0x00007ffff7fe44c3 in _dl_sysdep_start ( start_argptr=start_argptr@entry=0x7fffffffdcb0, dl_main=dl_main@entry=0x7ffff7fe5f80 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:110 #5 0x00007ffff7fe5cae in _dl_start_final (arg=0x7fffffffdcb0) at rtld.c:494 #6 _dl_start (arg=0x7fffffffdcb0) at rtld.c:581 #7 0x00007ffff7fe4b38 in _start () (gdb) when setting GLIBC_TUNABLES in glibc compiled with APX. Reviewed-by: Florian Weimer <[email protected]> (cherry picked from commit 049b768)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just use configure and make -j, yet cannot build gblic 2.37, I think the reason is my E5-2678v3 CPU does not support avx512 instruction set. Can I disable avx512 instruction set before compiling?
When I use make, I received these:
../sysdeps/x86_64/multiarch/memcmpeq-evex.S: Assembler messages:
../sysdeps/x86_64/multiarch/memcmpeq-evex.S:115: 错误: no such instruction:
vpcmpneqb (%rdi),%zmm18,%k1{%k2}' ../sysdeps/x86_64/multiarch/memcmpeq-evex.S:123: 错误: no such instruction:
vpcmpneqb -(64 * 1)(%rdi,%rdx),%zmm17,%k1'../sysdeps/x86_64/multiarch/memcmpeq-evex.S:136: 错误: no such instruction:
vpcmpneqb (%rdi),%zmm17,%k1' ../sysdeps/x86_64/multiarch/memcmpeq-evex.S:146: 错误: no such instruction:
vpcmpneqb 64(%rdi),%zmm18,%k1'../sysdeps/x86_64/multiarch/memcmpeq-evex.S:157: 错误: no such instruction:
vpcmpneqb (64 * 2)(%rdi),%zmm19,%k1' ../sysdeps/x86_64/multiarch/memcmpeq-evex.S:163: 错误: no such instruction:
vpcmpneqb (64 * 3)(%rdi),%zmm20,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S: Assembler messages:
../sysdeps/x86_64/multiarch/strchr-evex-base.S:64: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:124: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S:155: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:171: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S:182: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:193: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S:214: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:215: 错误: no such instruction:
vpcmpneqb %zmm18,%zmm16,%k2'../sysdeps/x86_64/multiarch/strchr-evex-base.S:219: 错误: no such instruction:
vpcmpneqb %zmm19,%zmm16,%k3{%k1}' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:220: 错误: no such instruction:
vpcmpneqb %zmm20,%zmm16,%k4{%k2}'../sysdeps/x86_64/multiarch/memchr-evex-base.S: Assembler messages:
../sysdeps/x86_64/multiarch/memchr-evex-base.S:229: 错误: no such instruction:
vpcmpneqb (64 * 4)(%rdi),%zmm17,%k1' ../sysdeps/x86_64/multiarch/memchr-evex-base.S: Assembler messages: ../sysdeps/x86_64/multiarch/memchr-evex-base.S:229: 错误: no such instruction:
vpcmpneqb (64 * 4)(%rdi),%zmm17,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S: Assembler messages:
../sysdeps/x86_64/multiarch/strchr-evex-base.S:64: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:124: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S:155: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:171: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S:182: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:193: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1'../sysdeps/x86_64/multiarch/strchr-evex-base.S:214: 错误: no such instruction:
vpcmpneqb %zmm17,%zmm16,%k1' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:215: 错误: no such instruction:
vpcmpneqb %zmm18,%zmm16,%k2'../sysdeps/x86_64/multiarch/strchr-evex-base.S:219: 错误: no such instruction:
vpcmpneqb %zmm19,%zmm16,%k3{%k1}' ../sysdeps/x86_64/multiarch/strchr-evex-base.S:220: 错误: no such instruction:
vpcmpneqb %zmm20,%zmm16,%k4{%k2}'My Environment:
g++ 7+
Ubuntu 16.04.7 LTS E5-2678V3 X 2 nvidia 2080Ti x2
From what I know vpcmpneqb is based on avx512 set, can anyone else kindly tell me how to disable avx512 before compiling?
The text was updated successfully, but these errors were encountered: