Failing to download expat in crosstool-ng - crosstool-ng

I'm attempting to create a toolchain for my Raspberry Pi using my Ubuntu box. I've installed crosstool-ng 1.24.0. When I run ./ct-ng build, it says that it fails to download expat. Here's the output:
[INFO ] Performing some trivial sanity checks
[WARN ] Number of open files 1024 may not be sufficient to build the toolchain; increasing to 2048
[INFO ] Build started 20210903.144609
[INFO ] Building environment variables
[WARN ] Directory '/home/daniel/src' does not exist.
[WARN ] Will not save downloaded tarballs to local storage.
[EXTRA] Preparing working directories
[EXTRA] Installing user-supplied crosstool-NG configuration
[EXTRA] =================================================================
[EXTRA] Dumping internal crosstool-NG configuration
[EXTRA] Building a toolchain for:
[EXTRA] build = x86_64-pc-linux-gnu
[EXTRA] host = x86_64-pc-linux-gnu
[EXTRA] target = aarch64-rpi3-linux-gnu
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.18s (at 00:03)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[EXTRA] Retrieving 'linux-4.20.8'
[EXTRA] Verifying SHA512 checksum for 'linux-4.20.8.tar.xz'
[EXTRA] Retrieving 'zlib-1.2.11'
[EXTRA] Verifying SHA512 checksum for 'zlib-1.2.11.tar.xz'
[EXTRA] Retrieving 'gmp-6.1.2'
[EXTRA] Verifying SHA512 checksum for 'gmp-6.1.2.tar.xz'
[EXTRA] Retrieving 'mpfr-4.0.2'
[EXTRA] Verifying SHA512 checksum for 'mpfr-4.0.2.tar.xz'
[EXTRA] Retrieving 'isl-0.20'
[EXTRA] Verifying SHA512 checksum for 'isl-0.20.tar.xz'
[WARN ] Downloaded file isl-0.20.tar.xz reference digest not available
[EXTRA] Retrieving 'mpc-1.1.0'
[EXTRA] Verifying SHA512 checksum for 'mpc-1.1.0.tar.gz'
[EXTRA] Retrieving 'expat-2.2.6'
[ERROR] expat: download failed
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_Abort[scripts/functions#487]
[ERROR] >> called from: CT_DoFetch[scripts/functions#2103]
[ERROR] >> called from: CT_PackageRun[scripts/functions#2063]
[ERROR] >> called from: CT_Fetch[scripts/functions#2174]
[ERROR] >> called from: do_expat_get[scripts/build/companion_libs/210-expat.sh#12]
[ERROR] >> called from: do_companion_libs_get[scripts/build/companion_libs.sh#15]
[ERROR] >> called from: main[scripts/crosstool-NG.sh#648]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> https://crosstool-ng.github.io/docs/known-issues/
[ERROR] >>
[ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
[ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR] >>
[ERROR] >> Make sure your report includes all the information pertinent to this issue.
[ERROR] >> Read the bug reporting guidelines here:
[ERROR] >> http://crosstool-ng.github.io/support/
[ERROR]
[ERROR] (elapsed: 1:09.34)
[01:10] / make: *** [ct-ng:261: build] Error 1
I've tried manually placing a tar ball for expat 2.2.6 into .build/tarballs as I've seen recommended by others. However, the error doesn't change.

Related

zookeeper 3.6.2 c client compile failed

I downloaded the 3.6.2 source tarball (apache-zookeeper-3.6.2.tar.gz, sha512sum: 16994067d460a1b6af6a71f3458c64ee32629e876a1ff6646d57be62f1a5adab57462af84074ecaded4186dd3fde035ee24cd9d578b8e5044073eb05f4ab9c3e) from apache zookeeper website. Tried to compile its C client in a debian 10 OS.
In dir zookeeper-client/zookeeper-client-c, I ran "autoreconf -if" and "./configure --enable-debug". configure complained about "configure: error: jute files are missing! Please run "ant compile_jute" while in the zookeeper top level directory."
But then tried to run "ant compile_jute" at the top dir. complained about "Buildfile: build.xml does not exist!". Did some search and tried "mvn -pl zookeeper-jute compile" at the top dir. But still have some error. Can anyone know how to solve the issue? Thanks,
xing#debian10-dev ~/d/apache-zookeeper-3.6.2> mvn -pl zookeeper-jute compile
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.apache.zookeeper:zookeeper-jute >-----------------
[INFO] Building Apache ZooKeeper - Jute 3.6.2
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) # zookeeper-jute ---
[INFO]
[INFO] --- mavanagaiata:0.9.4:commit (find-current-git-revision) # zookeeper-jute ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.299 s
[INFO] Finished at: 2021-03-20T23:07:23-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.koraktor:mavanagaiata:0.9.4:commit (find-current-git-revision) on project zookeeper-jute: Unable to read Git commit information: Commit "24e9d01f1321d22f1eef2a3fc0f1b3d68f68d12c" could not be loaded. Short read of block. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Updated on 3/21:
The instructions coming with README (run "ant compile_jute" at top level dir and then "autoreconf -if; ./configure --enable-debug" in dir zookeeper-client/zookeeper-client-c) seem to work for version 3.5.9. I have switched to use that version while waiting for them to update the README for 3.6.2.

crosstool-ng download toolchain component tarball 'automake' failed

I tried to ct-ng build the rpi3 config with Docker in MacOSX.
The version of crosstool-ng is 1.24.0
And there are error messages:
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20200508.202746
[INFO ] Building environment variables
[EXTRA] Preparing working directories
[EXTRA] Installing user-supplied crosstool-NG configuration
[EXTRA] =================================================================
[EXTRA] Dumping internal crosstool-NG configuration
[EXTRA] Building a toolchain for:
[EXTRA] build = x86_64-pc-linux-gnu
[EXTRA] host = x86_64-pc-linux-gnu
[EXTRA] target = armv8-rpi3ubuntu-linux-gnueabihf
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.35s (at 00:04)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[ERROR] automake: download failed
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_Abort[scripts/functions#487]
[ERROR] >> called from: CT_DoFetch[scripts/functions#2103]
[ERROR] >> called from: CT_PackageRun[scripts/functions#2063]
[ERROR] >> called from: CT_Fetch[scripts/functions#2174]
[ERROR] >> called from: do_companion_tools_automake_get[scripts/build/companion_tools/300-automake.sh#5]
[ERROR] >> called from: do_companion_tools_get[scripts/build/companion_tools.sh#21]
[ERROR] >> called from: main[scripts/crosstool-NG.sh#646]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> https://crosstool-ng.github.io/docs/known-issues/
[ERROR] >>
[ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
[ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR] >>
[ERROR] >> Make sure your report includes all the information pertinent to this issue.
[ERROR] >> Read the bug reporting guidelines here:
[ERROR] >> http://crosstool-ng.github.io/support/
[ERROR]
[ERROR] (elapsed: 0:02.58)
[00:04] / /opt/crosstool-ng/bin/ct-ng:261: recipe for target 'build' failed
make: *** [build] Error 1
I checked the packages file in source of crosstool-ng crosstool-ng-1.24.0/packages/automake/
In package.desc:
repository='git https://git.savannah.gnu.org/git/automake.git'
bootstrap='./bootstrap'
mirrors='$(CT_Mirrors GNU automake)'
relevantpattern='1.*|.'
archive_formats='.tar.xz .tar.gz'
signature_format='packed/.sig'
Is it something wrong with the download url?
How is "download tarball" purpose?
Is it possible use tarball locally that I download it myself?
Thanks for your patience.

Windows Kernel Driver Signing issue (WFP/Inspect)

I'm learning about WFP/Inspect kmdf. I'm using VS 2017. So far I've succesully build my own kmdf:
------ Rebuild All started: Project: inspect, Configuration: Win10 Debug x64 ------
Building 'inspect' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
Stamping x64\Win10Debug\inspect.inf
Stamping [Version] section with DriverVer=08/25/2018,20.7.57.345
...
inspect.vcxproj -> D:\sys\x64\Win10Debug\inspect.sys
Done Adding Additional Store
Successfully signed: D:\sys\x64\Win10Debug\inspect.sys
........................
Signability test complete.
Errors:
None
Warnings:
None
Catalog generation complete.
D:\sys\x64\Win10Debug\inspect\inspect.cat
Done Adding Additional Store
Successfully signed: x64\Win10Debug\inspect\inspect.cat
Done building project "inspect.vcxproj".
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
In VS in "Driver signing->General" option I have following (screenshoot attached):
Sign mode : Test Sign
Test Certificate : here I have generated Test certificate
Cross-Signing Certificate: cert AddTrust External CA Root obtained from https://learn.microsoft.com/pl-pl/windows-hardware/drivers/install/cross-certificates-for-kernel-mode-code-signing
File Digest Algorithm: SHA256
So I have 4 files
25.08.2018 20:08 2 332 inspect.cat
25.08.2018 20:08 792 inspect.cer
25.08.2018 20:07 2 312 inspect.inf
25.08.2018 20:08 100 344 inspect.sys
c:\Program Files (x86)\Windows Kits\10\bin\x64>certmgr.exe /add D:\sys\x64\Win10Debug\inspect\inspect.cer /s /r localMachine root
CertMgr Succeeded
c:\Program Files (x86)\Windows Kits\10\bin\x64>certmgr.exe /add D:\sys\x64\Win10Debug\inspect\inspect.cer /s /r localMachine trustedpublisher
CertMgr Succeeded
I'm installing (rmb->install) inspect.inf. After this, when I'm running:
net start inspect
I'm getting
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a filed that was signed incorrectly or damaged, or that might be malicious software from an unknown source.
Since I'm a new in this area (KMDF) can someone point out where I can find a problem? Did I forgot to do something?

Error in building ct-ng in crosstool-ng-1.9.3

I'm trying to build ct-ng in crosstool-ng-1.9.3 on my 64 bit ubuntu 13.04 but I repeatedly receive the following error during this command :
./ct-ng build
[INFO ] Retrieving needed toolchain components' tarballs
[ERROR] Could not retrieve 'cloog-ppl-0.15.10'.
[07:00] / make: *** [build] Error 1
Does anyone have any clue how to resolve it?
It's hard to say without seeing the full build.log file.
I'm going to guess and say it's failing at the point where it downloads that tar.
I would do the following (based on my assumption):
Delete the cloog-ppl-0.15.10.tar.bz stump in /some/path/.../.build/tarfiles
Download the tar manually.
You can either place the tar file in that location or in ./ct-ng menuconfig
Tell it to look at a directory locally.

Integrating Active Directory with Plone 4

How do you integrate Active Directory with Plone 4 on Ubuntu? I have searched the Internet up and down and cannot get this to work!!
All I know is that all you have to do is add "plone.app.ldap" in your buildout.cfg file and that will install the add-ons. However, every time I do this I get an error message. I have installed python-ldap 2.3.11 from the Ubuntu repos but yet I still get an error when I run bin/buildout.
When I run bin/buildount it starts Getting distribution for 'python-ldap>=2.0.6'. I don't understand why does it have to do that when I already have python-ldap installed and tested successfully!
I have Python 2.6.
Here is the message I get when I execute bin/buildout:
Getting distribution for 'python-ldap>=2.0.6'.
extra_compile_args: -g
extra_objects:
include_dirs: /opt/openldap-RE24/include /usr/include/sasl
library_dirs: /opt/openldap-RE24/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
An error occured when trying to install python-ldap 2.4.3. Look above this message for any errors that were output by easy_install.
While:
Installing instance.
Getting distribution for 'python-ldap>=2.0.6'.
Error: Couldn't install: python-ldap 2.4.3
*************** PICKED VERSIONS ****************
[versions]
plone.app.ldap = 1.2.6
#Required by:
#Products.PloneLDAP 1.1
Products.LDAPMultiPlugins = 1.14
#Required by:
#Products.PloneLDAP 1.1
Products.LDAPUserFolder = 2.20
#Required by:
#plone.app.ldap 1.2.6
Products.PloneLDAP = 1.1
#Required by:
#Products.LDAPUserFolder 2.20
dataflake.ldapconnection = 1.2
*************** /PICKED VERSIONS ***************
Please advise.
Now that you've actually included the error, it turns out this is a whole different issue. You can't build python-ldap without having the LDAP development package avialable. On any debian based system, such as ubuntu, you can use the excellent deb package metadata to do this for you.
$ sudo apt-get build-dep python-ldap

Resources