Questions tagged [binary-compatibility]

Binary compatibility is generally an ability of two hardware/software systems to run the same binary code without the need to recompile.

184 questions
1
vote
0 answers

Replacement for Linux Standard Base?

When distributing source code is not an option the Linux Standard Base allows a mechanism for achieving binary compatibility with many Linux distros. http://www.linuxfoundation.org/collaborate/workgroups/lsb However, it appears that it has been…
user109078
  • 906
  • 7
  • 19
1
vote
1 answer

Custom "non-traditional" polymorphism implementation

I've been looking for a custom polymorphic solution to improve binary compatibility. The problem is that pointer members are varying size on different platforms, so even "static" width members get pushed around producing binary incompatible…
user2341104
1
vote
2 answers

Binary compatibility when changing parameter name in C++

I have a question about changing parameter name of a member function. I have function foo(type iA) then I change to foo(type iB), I think it is bin comp, but I am not sure. Could you help me to explain the reason? Thanks a lot!
CJAN.LEE
  • 1,108
  • 1
  • 11
  • 20
1
vote
4 answers

partial class in C++

I want to avoid recompilation of everything that includes a public header file, just because something changed in the private part of a class definition. I'm investigating other options beside PIMPL. This is what I tried: I created a library that…
huysentruitw
  • 27,376
  • 9
  • 90
  • 133
1
vote
1 answer

Does adding new static member in middle break binary compatibility of a C++ library?

I have a class which has many static members, but I have added new function in the middle of the header file. Does this break binary compatibility? Clients need to be recompiled? EDIT (1): Class has only static functions, no other functions and data…
Baplix
  • 169
  • 1
  • 3
  • 8
1
vote
3 answers

How to target Debian stable but develop on testing?

We have some C++ applications which are developed specifically and only for Debian stable (x86). Currently, development of these application is also done using a Debian stable (x86) system so the developer has all the same library versions as on…
foraidt
  • 5,519
  • 5
  • 52
  • 80
0
votes
1 answer

build.sbt does not Work with Different Scala Versions

Learning Scala from the Scala for Data Science book and the companion Github repo, here I am particularly talking about the build file for Chapter 2, copied below (with minor modification) for reference. name := "Logistic_regression" organization…
Della
  • 1,264
  • 2
  • 15
  • 32
0
votes
1 answer

Reflection to call method that had its name changed in an upgrade?

My code compiled with Spark 3.1.2: private def work(plan: LogicalPlan): LogicalPlan = { val result = plan.transformDown { // irrelevant details } } When run with Spark 3.3.0, I run into: java.lang.NoSuchMethodError:…
0
votes
1 answer

NoSuchMethodError: scala.tools.nsc.Settings.usejavacp()Lscala/tools/nsc/settings/AbsSettings$AbsSetting;

My code compiles against scala 2.12.10 but has to run on scala 2.12.15. My code: import import scala.tools.nsc.Settings val settings = new Settings settings.usejavacp.value = false usejavacp is throwing java.lang.NoSuchMethodError:…
0
votes
0 answers

Scala: Classfile-level interoperability from 2.12 to 2.13? vice versa?

Can Scala 2.12 project can call methods in classfile compiled in Scala 2.13? and vice versa? I'm going to updating our large Scala product from 2.12 to 2.13. The product is made of a few sbt project (currently all of these are built with 2.12) and…
Windymelt
  • 139
  • 8
0
votes
1 answer

Does removing a redundant superinterface from a Java class break binary compatibility?

In the following example: interface I { int F = 1; } class A extends B implements I { ... } class B implements I { ... } the implements I on class A is redundant. If I remove it, does it break binary compatibility? Background of the question:…
Andreas Mueller
  • 201
  • 4
  • 13
0
votes
1 answer

Why is the Windows API not exposed through COM?

I understand that the basic problem COM solves is the issue with binary compatibility of software libraries. That is why a lot of (low level) windows services are exposed through the COM system. But why is the Windows API itself not exposed through…
Sam
  • 1,301
  • 1
  • 17
  • 26
0
votes
0 answers

runtime detection whether ARMv7 ELF binaries can be loaded on ARMv6 host

Consider a host application that has been compiled for armv6 (think: Raspbian) and can dlopen() extensions/plugins. Some of these plugins might be compiled for armv7. If the host application is running on a recent hardware, there shouldn't be any…
umläute
  • 28,885
  • 9
  • 68
  • 122
0
votes
0 answers

nanopb - binary compatibility between different processor architectures

I am using nanopb/google-protobuf between an ARM processor and Infineon Aurix. QUESTION Are there possible binary compatibility issues when communicating between different processor architectures? Are there configuration flags that I could set, on…
Bob
  • 4,576
  • 7
  • 39
  • 107
0
votes
0 answers

Linux binary compatible distros and floating points

I have to determine whether or not a solution certified on one particular OS (Linux distro A) will run exactly the same way on another OS (Linux distro B) just because Linux distro B is fully binary compatible with Linux distro A. My concern is that…