-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
__builtin_bswap32 referenced symbol not found #3818
Comments
Well, if it wants to use the Your problem is just that you do not have that function (because you do not use gcc?), so it would need to detect either the absence of that or the other compiler and use whatever is the replacement for that case. |
Note:
|
It's not Solaris- or SPARC-specific. The same thing happens on any big-endian machines. You're not testing on IBM z/Architecture? :-) The usual code looks something like what the simple-minded implementation of
|
I am running a check on (big endian) powerpc debian linux right now (with gcc). But I expect it to work and you said yourself (see top post) that it happens without gcc when using Sun's compiler. So it isn't that far fetched that the code needs to be adapted for that compiler (which is only used on Solaris AFAIK). |
The issue isn't with Sun's compiler, it's the code that relies on a very specific compiler. Use portable byte-swapping code and it'll work with any compiler. |
OK, but fixing the issue still needs someone with a platform and compiler who can test the non-gcc code that has to be added. |
hmm On the other hand, |
most of them are unimplemented even now, see https://docs.oracle.com/cd/E77782_01/html/E77792/gqexw.html#OSGCCgqexp and for 12.6, only functions used directly in if it has no inline definitions in those files ( |
@despair86 thanks for checking this. can you add and test some working code to deal with that (see other comments)? |
oh right |
Is this still an issue with current borg code? 1.2-maint or master branch. |
If somebody finds this is still a problem with current versions, please reopen. |
…ackup#3818) Co-authored-by: TW <tw@waldmann-edv.de>
…aster docs: borg serve: recommend using a simple shell (closes #3818)
The latest borg git repo refers to the __builtin_bswap32 symbol when built on Big Endian architectures without using gcc. (Solaris 10, Sun's compiler).
The macros in src/borg/_endian.h are to blame.
The text was updated successfully, but these errors were encountered: