yutannihilation opened a new issue, #182:
URL: https://github.com/apache/sedona-db/issues/182
Even after #161, I still saw a compile error on my Windows due to the path
length limit. If I enabled long path, the error is gone (and got another one,
but it's not related here...).
` C:/rtools45/x86_64-w64-mingw32.static.posix/bin/ar.exe:
../../artifacts/libaws_lc_0_32_0_crypto.a: error reading
../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-base.c.obj:
No such file or directory`
I added `set(CMAKE_VERBOSE_MAKEFILE 1)` to see the actual command, and it
seems this is the line (formatted for readability):
```sh
cd
/C/Users/MY_USERNAME/Documents/GitHub/sedona-db/r/sedonadb/src/rust/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-9c9c37974051a14a/out/build/aws-lc/crypto
&& \
/C/rtools45/x86_64-w64-mingw32.static.posix/bin/cmake.exe -E
cmake_link_script CMakeFiles/crypto.dir/link.txt --verbose=1
...snip...
C:/rtools45/x86_64-w64-mingw32.static.posix/bin/ar.exe q \
../../artifacts/libaws_lc_0_32_0_crypto.a \
CMakeFiles/crypto_objects.dir/decrepit/blowfish/blowfish.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/cast/cast.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/cast/cast_tables.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/cfb/cfb.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/dh/dh_decrepit.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/evp/evp_do_all.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/obj/obj_decrepit.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/ripemd/ripemd.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/rsa/rsa_decrepit.c.obj \
CMakeFiles/crypto_objects.dir/decrepit/x509/x509_decrepit.c.obj \
"CMakeFiles/crypto_objects.dir/chacha/chacha-x86_64.asm.obj" \
CMakeFiles/crypto_objects.dir/cipher_extra/chacha20_poly1305_x86_64.asm.obj \
"CMakeFiles/crypto_objects.dir/cipher_extra/aes128gcmsiv-x86_64.asm.obj" \
"CMakeFiles/crypto_objects.dir/cipher_extra/aesni-sha1-x86_64.asm.obj" \
"CMakeFiles/crypto_objects.dir/cipher_extra/aesni-sha256-x86_64.asm.obj" \
"CMakeFiles/crypto_objects.dir/test/trampoline-x86_64.asm.obj" \
fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.obj \
fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.obj \
fipsmodule/CMakeFiles/fipsmodule.dir/cpucap/cpucap.c.obj \
"fipsmodule/CMakeFiles/fipsmodule.dir/aesni-gcm-avx512.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/aesni-gcm-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/aesni-xts-avx512.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/aesni-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/ghash-ssse3-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/ghash-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/md5-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/p256-x86_64-asm.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/p256_beeu-x86_64-asm.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/rdrand-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/rsaz-avx2.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/rsaz-2k-avx512.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/rsaz-3k-avx512.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/rsaz-4k-avx512.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/sha1-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/sha256-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/sha512-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/vpaes-x86_64.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/x86_64-mont5.asm.obj" \
"fipsmodule/CMakeFiles/fipsmodule.dir/x86_64-mont.asm.obj" \
"../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-base.c.obj"
\
"../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-gcd.c.obj"
\
"../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-health.c.obj"
\
"../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-noise.c.obj"
\
"../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-sha3.c.obj"
\
"../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-timer.c.obj"
```
If I manually run the same command on Rtools bash, I get the same error, but
the path actually exists.
``` console
$ realpath.exe
../third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-base.c.obj
/C/Users/MY_USERNAME/Documents/GitHub/sedona-db/r/sedonadb/src/rust/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-9c9c37974051a14a/out/build/aws-lc/third_party/jitterentropy/CMakeFiles/jitterentropy.dir/jitterentropy-library/src/jitterentropy-base.c.obj
```
It seems this absolute path is around 256, so probably hit the limit.
Probably, if I tried on a bit more shallow directory than
`C:/Users/MY_USERNAME/Documents/GitHub/sedona-db`, the compile would success.
But, I think this path is a kind of common location (GitHub Desktop's default),
so probably it's nice to have some note about long path for R developers
(probably on `r/sedonadb/README.md` or `CONTRIBUTING.md`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]