[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb" |
Date: |
Mon, 17 Oct 2022 13:49:29 -0400 (EDT) |
Follow-up Comment #22, bug #61393 (project octave):
Re comment #19:
I used the following patch:
--- librsb-1.3.0.1/librsbpp/rsbpp.hpp.orig 2022-02-02 11:18:43.000000000
+0100
+++ librsb-1.3.0.1/librsbpp/rsbpp.hpp 2022-10-17 17:56:36.102106130 +0200
@@ -334,7 +334,7 @@
template <class T1, class T2>
bool operator!= (const CooAllocator<T1>&, const CooAllocator<T2>&) throw() {
return false; }
#endif
-#include <librsbpp.h>
+#include "librsbpp.h"
#ifndef RSBPP_WANT_MINIMAL_LIBRSBPP
#define RSBPP_WANT_MINIMAL_LIBRSBPP 0
With it, the preprocessor is no longer complaining about that file.
But for the next file, the linker fails:
x86_64-w64-mingw32-g++ -g -O2 -DRSBPP_HAS_RSB_H=1
-I/home/osboxes/mxe-octave-stable/usr/x86_64-w64-mingw32/include
-I/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1
-DRSBPP_HAS_RSB_H=1
-L/home/osboxes/mxe-octave-stable/usr/x86_64-w64-mingw32/lib rsbtt.cpp -o
rsbtt
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o: in function `test_Csr_SpMV_Unsymmetric_Transposed()':
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:828:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:421:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:365:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:163:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:277:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:247:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:137:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:393:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:337:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:217:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:189:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:101:
more undefined references to `rsb__pp_coo_spmv' follow
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:760:
undefined reference to `rsb__pp_coo_spmm'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o: in function `test_Coo_SpMM_Unsymmetric':
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:771:
undefined reference to `rsb__pp_coo_spmm'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:802:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:515:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:564:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:305:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o: in function `test_Coo_SpMV_Symmetric_At':
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:311:
undefined reference to `rsb__pp_coo_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:450:
more undefined references to `rsb__pp_coo_spmv' follow
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:613:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:645:
undefined reference to `rsb__pp_csr_spmm'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:725:
undefined reference to `rsb__pp_csr_spmm'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:484:
undefined reference to `rsb__pp_csr_spmv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/tmp/ccA4TFrW.o: in function `test_Csr_SpMV_Symmetric_At_Short':
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/librsbpp/rsbtt.cpp:490:
undefined reference to `rsb__pp_csr_spmv'
collect2: error: ld returned 1 exit status
gmake[4]: *** [<builtin>: rsbtt] Error 1
For Windows, symbols must be resolved on link time. IIUC, that is different on
Linux where symbol resolution can occur when a program loads. Maybe it's
related to that difference between the platforms?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61393>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", (continued)
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/16
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/16
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb",
Markus Mützel <=
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/18