-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rPackages.Rhisat2: fix build #302192
rPackages.Rhisat2: fix build #302192
Conversation
Doesn't build on aarch64-linux:
guess this would need some specific fix for aarch64-linux, but this could be addressed in another PR. |
Nah, we should try to fix it here. Probably those command line options dont make sense on aarch. |
But TBH I don't know how to fix these compiler issues |
I'll give it a shot |
Makes sense, |
So I was able to get it to work on my Rpi 5 by adding this:
but I don't know:
the
so I followed the advice linked.
|
I see that there’s also some macOS-specific stuff in the |
I think it'd be better to backport the patch, you're essentially recreating it in your nix expression. |
ok, here it is: I don't know how to add this to this PR, I think the easiest is for @Kupac to simply add it? |
@ofborg build rPackages.Rhisat2 |
OK, now darwin builds have various errors. aarch64-darwin complains about msse2, but didn't you remove that flag on aarch already? |
That's what the patch does but there's two other files that I didn't patch which were changed in the original commit, but it didn't seem to be related |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Source the patch from github.
fixed for aarch-linux by @b-rodrigues Co-authored-by: Justin Bedő <[email protected]>
@ofborg build rPackages.Rhisat2 |
@jbedo I can't resolve the changes requested once again. I maybe missing something on the github gui. |
on > /nix/store/0m04cmy32vs1686pzjqajsh50arbv8m4-clang-wrapper-16.0.6/bin/cc -I"/nix/store/6s73b2138xz0k5xc2w9bf8c5ic74js46-R-4.3.2/lib/R/include" -DNDEBUG -DLIBXML -I/nix/store/05g7i28lm20a7wp3hn5pgmkxwqlxqxzs-libxml2-2.12.5-dev/include/libxml2 -DUSE_EXTERNAL_SUBSET=1 -DROOT_HAS_DTD_NODE=1 -DNO_CHECKED_ENTITY_FIELD=1 -DDUMP_WITH_ENCODING=1 -DUSE_XML_VERSION_H=1 -DXML_ELEMENT_ETYPE=1 -DXML_ATTRIBUTE_ATYPE=1 -DNO_XML_HASH_SCANNER_RETURN=1 -DLIBXML_NAMESPACE_HAS_CONTEXT=1 -DHAVE_R_CETYPE_T=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/nix/store/mkfw27hp2c5fybgqkgvfh4mib9wp8y1n-xmlsec-1.2.34-dev/include/xmlsec1 -I/nix/store/05g7i28lm20a7wp3hn5pgmkxwqlxqxzs-libxml2-2.12.5-dev/include/libxml2 -I/nix/store/189j4cpdxvrcr0s2841yf2vpirw9l11h-libxslt-1.1.39-dev/include -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DHAVE_XML_WITH_ZLIB=1 -DHAVE_XML_HAS_FEATURE=1 -DUSE_R=1 -D_R_=1 -DHAVE_VALIDITY=1 -DXML_REF_COUNT_NODES=1 -DHAVE_LIBXML_SEC=1 -I. -DLIBXML2=1 -isystem /nix/store/rjgv94p1nnj02v0f9r2jpann9x02b4vw-libcxx-16.0.6-dev/include/c++/v1 -fPIC -g -O2 -c XMLEventParse.c -o XMLEventParse.o
> XMLEventParse.c:618:31: error: incompatible function pointer types assigning to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') from 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') [-Wincompatible-function-pointer-types]
> xmlParserHandler->serror = RS_XML(structuredErrorHandler);
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> make: *** [/nix/store/6s73b2138xz0k5xc2w9bf8c5ic74js46-R-4.3.2/lib/R/etc/Makeconf:191: XMLEventParse.o] Error 1
> ERROR: compilation failed for package 'XML'
> * removing '/nix/store/8rhiqrqp3dhshbsh517iqmar6lad6pdf-r-XML-3.99-0.16/library/XML'
For full logs, run 'nix log /nix/store/v0f32bk3np8day46ghz3fmyi7xs818p6-r-XML-3.99-0.16.drv'.
error: 1 dependencies of derivation '/nix/store/j5893qi32x0wgbkc3nhwpfwz6xihwz7h-r-biomaRt-2.58.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6nbc7i0vn6lpik375jb67s0cnd5ddxz1-r-rtracklayer-1.62.0.drv' failed to build
error (ignored): error: cannot unlink '/private/tmp/nix-build-r-igraph-1.6.0.drv-0/igraph': Directory not empty
error: 1 dependencies of derivation '/nix/store/ikrmwgy898lspgp47nz02v0568vam664-r-GenomicFeatures-1.54.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sm6lkknv6l0lsadik0syg8x3d4ypqnz3-r-Rhisat2-1.18.0.drv' failed to build
nixpkgs on fix_Rhisat2 [$?] took 20.2s |
looks like rPackages.XML needs fixing |
yeah that one would have quite a bit of impact for macOS builds, still a lot reverse depends to be expected. https://stat.ethz.ch/pipermail/r-package-devel/2024q1/010374.html |
Weird, it's not the same error message as ofborg's. It clearly says |
rPackages.XML alone does not build on my M2 machine for the code base at this PR stage. Maybe ofborg does not rebuild XML package (maybe updated?) |
I think ofborg should work from the same commit as you, no? In theory, at least. For me, so far, the evaluation log was always identical to ofborg's. |
Description of changes
Add required commands
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.