Hi, I am trying to do cross compile Samba4.?Build system generating two binary asn1_compile and compile_et to generate .c files which will then build for our platform. But it can not execute both binary files. [ 198/3298] Compiling ASN1 source4/heimdal/lib/asn1/kx509.asn1 /bin/sh: ../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin/asn1_compile: cannot execute binary file Waf: Leaving directory `../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin' Build failed:? -> task failed (err #126): ??????? {task: HEIMDAL_KX509_ASN1_ASN1 kx509.asn1 -> asn1_kx509_asn1.x,kx509_asn1.hx,kx509_asn1-priv.hx} When we replaced binary files with files generated at PC, it can execute them and generate .c files, then continue to compile. Do you have any idea why we can not generate binaries correctly? Can anybody kindly help us to? Thanks, Sedat
Hi, I am trying to do cross compile Samba4.?Build system generating two binary asn1_compile and compile_et to generate .c files which will then build for our platform.But it can not execute both binary files. [ 198/3298] Compiling ASN1 source4/heimdal/lib/asn1/kx509.asn1 /bin/sh: ../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin/asn1_compile: cannot execute binary file Waf: Leaving directory `../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin' Build failed:? -> task failed (err #126): ??????? {task: HEIMDAL_KX509_ASN1_ASN1 kx509.asn1 -> asn1_kx509_asn1.x,kx509_asn1.hx,kx509_asn1-priv.hx} When we replaced binary files with files generated at PC, it can execute them and generate .c files, then continue to compile. Do you have any idea why we can not generate binaries correctly? Can anybody kindly help us to? Thanks, Sedat
Hi On 5 August 2011 10:06, Sedat Cakir <cakir_sedat at yahoo.com> wrote:> Hi, > > I am trying to do cross compile Samba4.?Build system generating two binary asn1_compile and compile_et to generate .c files which will then build for our platform. > But it can not execute both binary files.While Samba4 is still in alpha, the samba-technical list is a better place to ask questions like this. I have copied my reply there.> [ 198/3298] Compiling ASN1 source4/heimdal/lib/asn1/kx509.asn1 > /bin/sh: ../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin/asn1_compile: cannot execute binary fileIt looks like waf should be compiling a version of asn1_compile for the build host instead of for the host you ultimately want to run Samba on. Perhaps you should try the latest version from Git to see if the problem has been fixed since alpha16. If it's still a problem I think someone will have to tell waf how to handle asn1_compile properly.> Waf: Leaving directory `../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin' > Build failed:? -> task failed (err #126): > ??????? {task: HEIMDAL_KX509_ASN1_ASN1 kx509.asn1 -> asn1_kx509_asn1.x,kx509_asn1.hx,kx509_asn1-priv.hx} > When we replaced binary files with files generated at PC, it can > ? ?execute them and generate .c files, then continue to compile. > Do you have any idea why we can not generate binaries correctly? Can anybody kindly help us to?-- Michael Wood <esiotrot at gmail.com>
I think it's not reasonable that this lines ln -s bin/default/source4/heimdal_build/asn1_compile.inst bin/asn1_compile ln -s bin/default/source4/heimdal_build/compile_et.inst bin/compile_et solve this, but it does. It's samba-4.0.6 in CentOS 6.4
Seemingly Similar Threads
- Debian Wheezy member server from backports to self compile
- Samba4.4.5 cross compilation for PowerPC
- Samba building is broken when some libraries are specified to be built-in to binaries !
- Debian Wheezy member server from backports to self compile
- Samba building is broken when some libraries are specified to be built-in to binaries !