[Bug lto/113204] lto1: error: qsort comparator non-negative on sorted output: 64

2024-03-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113204 --- Comment #8 from Sam James --- (For my own benefit for future reference: I ran go build -work -v -x, then went into the work dir it made, then ran /usr/lib/go/pkg/tool/linux_amd64/link -v ..., then started pulling out the bits it ran

[Bug lto/113204] lto1: error: qsort comparator non-negative on sorted output: 64

2024-03-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113204 --- Comment #7 from Sam James --- With some finagling: ``` /tmp/go-PR113204 $ ./run.sh + gcc -o test -Wl,--export-dynamic-symbol=_cgo_panic -Wl,--export-dynamic-symbol=_cgo_topofstack -Wl,--export-dynamic-symbol=crosscall2

[Bug lto/113204] lto1: error: qsort comparator non-negative on sorted output: 64

2024-03-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113204 --- Comment #6 from Sam James --- I managed to run the test manually in `/usr/lib/go/src/cmd/link` with `go test cgo_test.go -x -v` and made writeTempFile dump the name/contents. At least now I can reproduce with just one command outside of

[Bug lto/113204] lto1: error: qsort comparator non-negative on sorted output: 64

2024-02-01 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113204 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org

[Bug lto/113204] lto1: error: qsort comparator non-negative on sorted output: 64

2024-01-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113204 --- Comment #4 from Richard Biener --- it's really odd, I don't see how it could fail. The only suspicious bit is int file_order1 = n1->lto_file_data ? n1->lto_file_data->order : -1; int file_order2 = n2->lto_file_data ?

[Bug lto/113204] lto1: error: qsort comparator non-negative on sorted output: 64

2024-01-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113204 Andrew Pinski changed: What|Removed |Added Summary|[14 Regression] lto1: |lto1: error: qsort