Closed
Conversation
Collaborator
Author
|
我觉得configure不应该手动修改,该文件由configure.ac经由autoconf(或autoreconf)生成。 |
Collaborator
Author
|
好提议 |
|
我认为既然上游包含configure 这个文件,那么这个文件也需要修改.再来看看 README.rst 也是直接运行configure,所以我同意这个PR |
xen0n
requested changes
Jan 25, 2022
| # elif defined(__ia64__) | ||
| ia64-linux-gnu | ||
| # elif defined(__loongarch64) | ||
| loongarch64-linux-gnu |
Member
There was a problem hiding this comment.
这处是手工改出来的吗?我印象中 autotools 生成 configure 都会带上大量行号,没道理一个都没变。
请确认一下,确认好之前我先 block merge 了 ;-)
Collaborator
Author
There was a problem hiding this comment.
diff -Naur cpython.orj/configure cpython/configure
--- cpython.orj/configure 2022-01-25 20:30:55.729798466 +0800
+++ cpython/configure 2022-01-25 20:32:47.137824831 +0800
@@ -5993,6 +5993,8 @@
hppa-linux-gnu
# elif defined(__ia64__)
ia64-linux-gnu
+# elif defined(__loongarch64)
+ loongarch64-linux-gnu
# elif defined(__m68k__) && !defined(__mcoldfire__)
m68k-linux-gnu
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
diff -Naur cpython.orj/configure.ac cpython/configure.ac
--- cpython.orj/configure.ac 2022-01-25 20:30:55.733798324 +0800
+++ cpython/configure.ac 2022-01-25 20:32:40.146074156 +0800
@@ -884,6 +884,8 @@
hppa-linux-gnu
# elif defined(__ia64__)
ia64-linux-gnu
+# elif defined(__loongarch64)
+ loongarch64-linux-gnu
# elif defined(__m68k__) && !defined(__mcoldfire__)
m68k-linux-gnu
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)执行autoconf 生成的diff 如上述,autom4te.cache除外
Member
|
我重新看了下,除了生成代码的疑问之外(我还没有自己验证),这里的 diff --git a/configure.ac b/configure.ac
index a0fbe41..c4fe61b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -884,6 +884,20 @@ cat >> conftest.c <<EOF
hppa-linux-gnu
# elif defined(__ia64__)
ia64-linux-gnu
+# elif defined(__loongarch__)
+# if defined(__loongarch64)
+# if defined(__loongarch_soft_float)
+ loongarch64-linux-gnusf
+# elif defined(__loongarch_single_float)
+ loongarch64-linux-gnuf32
+# elif defined(__loongarch_double_float)
+ loongarch64-linux-gnuf64
+# else
+# error unknown platform triplet
+# endif
+# else
+# error unknown platform triplet
+# endif
# elif defined(__m68k__) && !defined(__mcoldfire__)
m68k-linux-gnu
# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)你们看下? |
Collaborator
Author
|
新世界的事情一直没怎么关注,以为只是内核和C库结构体的一些变化,这个事情会尽快去确认、处理,多谢提示。 @xen0n |
Collaborator
Author
|
已经找编译器组的同事确认,以后按照新世界的标准提交,我将重新提交 |
Collaborator
Author
|
#2 (comment) |
Member
|
可,那这个先 close 了哈 |
yetist
pushed a commit
that referenced
this pull request
Apr 28, 2022
) Fix test_gdb.test_pycfunction() for Python built with clang -Og. Tolerate inlined functions in the gdb traceback. When _testcapimodule.c is built by clang -Og, _null_to_none() is inlined in meth_varargs() and so gdb returns _null_to_none() as the frame #1. If it's not inlined, meth_varargs() is the frame #1.
yetist
pushed a commit
that referenced
this pull request
Apr 28, 2022
…python#91466) Fix an uninitialized bool in exception print context. `struct exception_print_context.need_close` was uninitialized. Found by oss-fuzz in a test case running under the undefined behavior sanitizer. https://oss-fuzz.com/testcase-detail/6217746058182656 ``` Python/pythonrun.c:1241:28: runtime error: load of value 253, which is not a valid value for type 'bool' #0 0xbf2203 in print_chained cpython3/Python/pythonrun.c:1241:28 #1 0xbea4bb in print_exception_cause_and_context cpython3/Python/pythonrun.c:1320:19 #2 0xbea4bb in print_exception_recursive cpython3/Python/pythonrun.c:1470:13 python#3 0xbe9e39 in _PyErr_Display cpython3/Python/pythonrun.c:1517:9 ``` Pretty obvious what the ommission was upon code inspection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
最近在debian上编译python3.9 有个报错,发现configure/configure.ac 中没有loongarch64 platform triplet, 因此加了这个patch。请review @loongarch64/dev-team
其次,在我刚才创建PR的时候,是要求在https://bugs.python.org/ 先有一个issue