Mhmm,
mkstemp is a linux system function. Not sure if MinGW ports that. You probably have to use windows API to create a temp directory here. But this is just a guess.
In the function `tempFileName` you probably have to branch into the STDLIB_VS part if you are using __MINGW32__ to get the windows API running.
cheers,
René
Thank
you very much for the offer to help.
I
have removed the (a)synchronous I/O and also do not define _getOFlag, open and openTemp in <seqan/system/file_sync.h> if __MINGW32__ is the compiler. That solved that error with getuid, getgid, geteuid, getegid.
Now
I am getting this error (& 2 warnings):
Error in re-building vignettes:
...
from file4f341c236111.cpp:4:
D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/mman.h: In function 'void* mmap(void*, size_t, int, int, int, off_t)':
D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/mman.h:111:48: warning: right shift count >= width of type
(DWORD)0 : (DWORD)((off >> 32) & 0xFFFFFFFFL);
^
D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/mman.h:120:52: warning: right shift count >= width of type
(DWORD)0 : (DWORD)((maxSize >> 32) & 0xFFFFFFFFL);
^
In file included from D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/basic/basic_debug.h:52:0,
from D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/basic.h:49,
from D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/sequence.h:74,
from D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/file.h:67,
from file4f341c236111.cpp:4:
D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/basic/debug_test_system.h: In function 'const char* seqan::ClassTest::tempFileName()':
D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include/seqan/basic/debug_test_system.h:712:38: error: 'mkstemp' was not declared in this scope
int _tmp = mkstemp(fileNameBuffer);
^
make[1]: *** [file4f341c236111.o] Error 1
make[1]: Entering directory `/cygdrive/d/temp/RtmpIpQdGF/sourceCpp-x86_64-w64-mingw32-0.12.15/sourcecpp_4f34188a2d79'
d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG -I"D:/temp/RtmpS45h13/RLIBS_2258e843308/Rcpp/include" -I"D:/temp/RtmpS45h13/RLIBS_2258e843308/RSeqAn/include" -I"D:/temp/RtmpIpQdGF/sourceCpp-x86_64-w64-mingw32-0.12.15" -I"d:/Compiler/gcc-4.9.3/local330/include" -std=c++14 -pedantic -O2 -Wall -mtune=core2 -c file4f341c236111.cpp -o file4f341c236111.o
make[1]: Leaving directory `/cygdrive/d/temp/RtmpIpQdGF/sourceCpp-x86_64-w64-mingw32-0.12.15/sourcecpp_4f34188a2d79'
Most of the other errors from the mingw compiler I have been working on have been in this seqan/basic/debug_test_system.h file.
Thanks,
august
_______________________________________________
seqan-dev mailing list
seqan-dev@lists.fu-berlin.de
https://lists.fu-berlin.de/listinfo/seqan-dev
---
René Rahn
Ph.D. Student (de.NBI - CIBI)
--------------------------------
Tel: (+49) 30 838 72974
--------------------------------
Institute of Computer Science
Algorithmic Bioinformatics (ABI)
--------------------------------
Freie Universität Berlin
Takustraße 9
14195 Berlin
--------------------------------
|