octave-bug-tracker
[Top][All Lists]
Advanced

[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: Fri, 14 Oct 2022 14:50:57 -0400 (EDT)

Follow-up Comment #8, bug #61393 (project octave):

That made it go a bit further:

libtool: link: x86_64-w64-mingw32-gcc -g -O2 -D__USE_MINGW_ANSI_STDIO=1
-std=c99 -o .libs/rsbench.exe rsbench-rsbench.o rsbench-rsb_test_matops.o
rsbench-rsb_mkl.o rsbench-rsb_genmm.o rsbench-rsb_mmls.o rsbench-rsb_pr.o
rsbench-rsb_pcnt.o rsbench-rsb_failure_tests.o rsbench-rsb_libspblas_tests.o
-fopenmp  -L/home/osboxes/mxe-octave-stable/usr/x86_64-w64-mingw32/lib
./.libs/librsb.a
-L/home/osboxes/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/11.2.0
-L/home/osboxes/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/lib/../lib
-L/home/osboxes/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/lib
-L/home/osboxes/mxe-octave-stable/usr/mingw/lib -lz
/home/osboxes/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/libgfortran.dll.a
-lmingw32 -lmoldname -lmingwex -lmsvcrt
/home/osboxes/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/11.2.0/libquadmath.dll.a
-lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -fopenmp
-L/home/osboxes/mxe-octave-stable/usr/lib/gcc/x86_64-w64-mingw32/11.2.0
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
rsbench-rsbench.o: in function `rsb__setenv':
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/rsbench.c:482:
undefined reference to `setenv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
rsbench-rsb_test_matops.o: in function
`rsb__main_block_partitioned_spmv_sxsa':
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/rsb_test_matops.c:1986:
undefined reference to `setenv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/rsb_test_matops.c:1989:
undefined reference to `setenv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/rsb_test_matops.c:1992:
undefined reference to `setenv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/rsb_test_matops.c:2000:
undefined reference to `setenv'
/home/osboxes/mxe-octave-stable/usr/bin/x86_64-w64-mingw32-ld:
rsbench-rsb_test_matops.o:/home/osboxes/mxe-octave-stable/tmp-librsb/librsb-1.3.0.1/rsb_test_matops.c:6543:
more undefined references to `setenv' follow
collect2: error: ld returned 1 exit status
gmake[4]: *** [Makefile:1297: rsbench.exe] Error 1



IIUC, `setenv` is a POSIX function that isn't available on Windows. But there
are implementations, e.g., in gnulib if you'd like to use those. 
Afaict, `putenv` is available on POSIX and Windows platforms as another
possible replacement:
https://pubs.opengroup.org/onlinepubs/009696899/functions/putenv.html
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/putenv-wputenv?view=msvc-170

(You don't need the leading underscore for MinGW.)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61393>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]