I'm using my Pi as a file server, recently when I logged in I saw a error message stating that libarmmem.so (cannot open shared object file), and despite some suggestions to run apt-get update + upgrade it did not bring much joy as it freezes the progress and just hanging.
Does anyone have any suggestion what else I could try other than reflash the card, which i would like to avoid.
From the console after "sudo apt-get update":
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 24 15:55:35 2017 from vpn.lshtm.ac.uk
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/usr/bin/xauth: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
admin#ProxyPi:~$ sudo apt-get update
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
0% [Working]ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspbian.org jessie InRelease
12% [Waiting for headers] [Waiting for headers]ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://archive.raspbian.org jessie/main Sources
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://archive.raspbian.org jessie/contrib Sources
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://archive.raspbian.org jessie/non-free Sources
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Hit http://archive.raspbian.org jessie/rpi Sources
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
And here is after suggested libfix command :
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 24 15:39:44 2017 from vpn.lshtm.ac.uk
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/usr/bin/xauth: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
admin#ProxyPi:~$ sudo ldconfig -v
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/sbin/ldconfig.real: Path `/lib/arm-linux-gnueabihf' given more than once
/sbin/ldconfig.real: Path `/usr/lib/arm-linux-gnueabihf' given more than once
/opt/vc/lib:
libmmal_core.so -> libmmal_core.so
libmmal_components.so -> libmmal_components.so
libopenmaxil.so -> libopenmaxil.so
libmmal.so -> libmmal.so
libWFC.so -> libWFC.so
libEGL.so -> libEGL.so
libvcsm.so -> libvcsm.so
libmmal_util.so -> libmmal_util.so
libvchiq_arm.so -> libvchiq_arm.so
libdebug_sym.so -> libdebug_sym.so
libGLESv2.so -> libGLESv2.so
libbcm_host.so -> libbcm_host.so
libOpenVG.so -> libOpenVG.so
libmmal_vc_client.so -> libmmal_vc_client.so
libvcos.so -> libvcos.so
libcontainers.so -> libcontainers.so
/lib/arm-linux-gnueabihf:
libm.so.6 -> libm-2.19.so
librt.so.1 -> librt-2.19.so
libpcre.so.3 -> libpcre.so.3.13.1
libreadline.so.6 -> libreadline.so.6.3
libnss_mdns4_minimal.so.2 -> libnss_mdns4_minimal.so.2
libdbus-1.so.3 -> libdbus-1.so.3.8.13
libnss_mdns_minimal.so.2 -> libnss_mdns_minimal.so.2
libmemusage.so -> libmemusage.so
libdevmapper-event.so.1.02.1 -> libdevmapper-event.so.1.02.1
libpthread.so.0 -> libpthread-2.19.so
libSegFault.so -> libSegFault.so
libkmod.so.2 -> libkmod.so.2.2.8
libiw.so.30 -> libiw.so.30
libnss_nis.so.2 -> libnss_nis-2.19.so
libthread_db.so.1 -> libthread_db-1.0.so
libgpg-error.so.0 -> libgpg-error.so.0.13.0
libpam.so.0 -> libpam.so.0.83.1
libntfs-3g.so.852 -> libntfs-3g.so.852.0.0
libcap.so.2 -> libcap.so.2.24
libcryptsetup.so.4 -> libcryptsetup.so.4.6.0
libcom_err.so.2 -> libcom_err.so.2.1
libprocps.so.3 -> libprocps.so.3.0.0
libhistory.so.6 -> libhistory.so.6.3
libisccfg-export.so.90 -> libisccfg-export.so.90.1.0
libudev.so.1 -> libudev.so.1.5.0
libnl-3.so.200 -> libnl-3.so.200.19.0
libdevmapper.so.1.02.1 -> libdevmapper.so.1.02.1
libgcc_s.so.1 -> libgcc_s.so.1
libusb-1.0.so.0 -> libusb-1.0.so.0.1.0
libpam_misc.so.0 -> libpam_misc.so.0.82.0
libfuse.so.2 -> libfuse.so.2.9.3
libnss_mdns.so.2 -> libnss_mdns.so.2
libncurses.so.5 -> libncurses.so.5.9
libattr.so.1 -> libattr.so.1.1.0
libresolv.so.2 -> libresolv-2.19.so
libnss_compat.so.2 -> libnss_compat-2.19.so
libcidn.so.1 -> libcidn-2.19.so
libselinux.so.1 -> libselinux.so.1
libgcrypt.so.20 -> libgcrypt.so.20.0.3
libparted.so.2 -> libparted.so.2.0.1
libirs-export.so.91 -> libirs-export.so.91.0.0
libudev.so.0 -> libudev.so.0.13.0
libpopt.so.0 -> libpopt.so.0.0.0
libss.so.2 -> libss.so.2.0
libsysfs.so.2 -> libsysfs.so.2.0.1
libuuid.so.1 -> libuuid.so.1.3.0
libncursesw.so.5 -> libncursesw.so.5.9
liblzma.so.5 -> liblzma.so.5.0.0
libmount.so.1 -> libmount.so.1.1.0
libacl.so.1 -> libacl.so.1.1.0
libnss_nisplus.so.2 -> libnss_nisplus-2.19.so
libglib-2.0.so.0 -> libglib-2.0.so.0.4200.1
libpng12.so.0 -> libpng12.so.0.50.0
libnss_hesiod.so.2 -> libnss_hesiod-2.19.so
libatasmart.so.4 -> libatasmart.so.4.0.5
libbsd.so.0 -> libbsd.so.0.7.0
libwrap.so.0 -> libwrap.so.0.7.6
libpamc.so.0 -> libpamc.so.0.82.1
libnss_mdns6_minimal.so.2 -> libnss_mdns6_minimal.so.2
libsystemd.so.0 -> libsystemd.so.0.3.1
libaio.so.1 -> libaio.so.1.0.1
libslang.so.2 -> libslang.so.2.3.0
libply.so.2 -> libply.so.2.1.0
libnss_dns.so.2 -> libnss_dns-2.19.so
liblzo2.so.2 -> liblzo2.so.2.0.0
liblvm2app.so.2.2 -> liblvm2app.so.2.2
libply-boot-client.so.2 -> libply-boot-client.so.2.1.0
libe2p.so.2 -> libe2p.so.2.3
libtinfo.so.5 -> libtinfo.so.5.9
libanl.so.1 -> libanl-2.19.so
libblkid.so.1 -> libblkid.so.1.1.0
libc.so.6 -> libc-2.19.so
libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
libnss_mdns6.so.2 -> libnss_mdns6.so.2
libsmartcols.so.1 -> libsmartcols.so.1.1.0
libcrypt.so.1 -> libcrypt-2.19.so
libbz2.so.1.0 -> libbz2.so.1.0.4
libexpat.so.1 -> libexpat.so.1.6.0
libply-splash-core.so.2 -> libply-splash-core.so.2.1.0
libnss_mdns4.so.2 -> libnss_mdns4.so.2
libnl-genl-3.so.200 -> libnl-genl-3.so.200.19.0
libz.so.1 -> libz.so.1.2.8
libnsl.so.1 -> libnsl-2.19.so
libtirpc.so.1 -> libtirpc.so.1.0.10
libply-splash-graphics.so.2 -> libply-splash-graphics.so.2.1.0
/sbin/ldconfig.real: /lib/arm-linux-gnueabihf/ld-2.19.so is the dynamic linker, ignoring
ld-linux-armhf.so.3 -> ld-2.19.so
libBrokenLocale.so.1 -> libBrokenLocale-2.19.so
libdns-export.so.100 -> libdns-export.so.100.2.2
libaudit.so.1 -> libaudit.so.1.0.0
libsepol.so.1 -> libsepol.so.1
libjson-c.so.2 -> libjson-c.so.2.0.0
libdl.so.2 -> libdl-2.19.so
libutil.so.1 -> libutil-2.19.so
libnfsidmap.so.0 -> libnfsidmap.so.0.3.0
libpcprofile.so -> libpcprofile.so
libnss_files.so.2 -> libnss_files-2.19.so
libulockmgr.so.1 -> libulockmgr.so.1.0.1
libkeyutils.so.1 -> libkeyutils.so.1.5
libext2fs.so.2 -> libext2fs.so.2.4
libisc-export.so.95 -> libisc-export.so.95.5.0
/usr/lib/arm-linux-gnueabihf:
/sbin/ldconfig.real: File /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4.8 is empty, not checked.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4.8 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: File /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4.8.6 is empty, not checked.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtNetwork.so.4.8 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: File /usr/lib/arm-linux-gnueabihf/libQtCLucene.so.4 is empty, not checked.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libQtXmlPatterns.so.4.8.6 is not an ELF file - it has the wrong magic bytes at the start.
I experienced the same error coming from a snapd 'snap'. I went into the preload file mentioned
sudo nano /etc/ld.so.preload
and commented the offending line out from
/usr/lib/arm-linux-gnueabihf/libarmmem.so
to
#/usr/lib/arm-linux-gnueabihf/libarmmem.so
1. Get you plataform
Check your platform in /proc/cpuinfo using command below
cat /proc/cpuinfo | grep 'model name';
In my case (Raspberry Pi 4), return:
model name : ARMv7 Processor rev 3 (v7l)
model name : ARMv7 Processor rev 3 (v7l)
model name : ARMv7 Processor rev 3 (v7l)
model name : ARMv7 Processor rev 3 (v7l)
You can view the options for ARM memory library, using command below:
ls /usr/lib/arm-linux-gnueabihf/libarmmem*
In my case, return:
/usr/lib/arm-linux-gnueabihf/libarmmem-aarch64.so
/usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so
/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
/usr/lib/arm-linux-gnueabihf/libarmmem-v8l.so
Then, according with /proc/cpuinfo, I need to use /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so, because exist a library for my platform:
CPU info results
List Results
ARMv7 Processor rev 3 (v7l)
/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
2. Setup Dynamic Linker
Change preload of dynamic linker using command below:
sudo nano /etc/ld.so.preload
Using nano editor, replace
/usr/lib/arm-linux-gnueabihf/libarmmem.so
or in my case
/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATAFORM}.so
by
/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
or according your platform.
pi#raspberrypi:~ $ hello-world
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-v8l.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Hello World!
only commenting the line with # worked but I don't know the its implication.
Related
I am trying to install ruamel.yaml on a raspberry Pi system without a C compiler and encounter a build error installing ruamel.yaml.clib (pasted below).
I see this was previously addressed for ruamel.yaml>=0.15.41, <0.16.0 (How to install ruamel.yaml w/o native extension).
Note in the output below that the path from buildroot is not valid on the device running pip install but is from the device that built the image.
$ pip install ruamel.yaml~=0.16
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting ruamel.yaml~=0.16
Using cached ruamel.yaml-0.17.10-py3-none-any.whl (108 kB)
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.10"
Using cached ruamel.yaml.clib-0.2.6.tar.gz (180 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2t0ptfu4/ruamel-yaml-clib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2t0ptfu4/ruamel-yaml-clib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zdtfb19x
cwd: /tmp/pip-install-2t0ptfu4/ruamel-yaml-clib/
Complete output (3 lines):
sys.argv ['/tmp/pip-install-2t0ptfu4/ruamel-yaml-clib/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-zdtfb19x']
test compiling /tmp/tmp_ruamel_5les1064/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_5les1064/test_ruamel_yaml.c
Exception: command '{path from buildroot}/aarch64-buildroot-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
A preferred solution would be to have a ruamel.yaml.clib wheel for ARM architectures or to make clib dependency optional (pip install ruamel.yaml[clib])
I'm not sure why this broke after 0.16, but I'll try to have a look as to why this fails again (it might be that setuptools now throws a different Exception that is not caught).
Wheels for ruamel.yaml.clib in aarch64 architecture are availalbe on piwheels.
You should be able to install those after adding:
[global]
extra-index-url=https://www.piwheels.org/simple
to /etc/pip.conf.
Disclaimer: I have no control over how wheels on piwheels are generated.
I am using vsode 1.49.1 on Mac.
I am trying to install pylint in a virtual environment (3.8.2), but I keep having errors. Pylint was installed on a global env, but it cannot be installed in the virtual. Can you help me how to solve it? I also read that I can use the global lint in the virtual env by setting up the path in the setting file. However, I have no idea how to find the path of the global pylint. Can you please give me some insights?
Collecting pylint
Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
Collecting astroid<=2.5,>=2.4.0
Using cached astroid-2.4.2-py3-none-any.whl (213 kB)
Collecting mccabe<0.7,>=0.6
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting toml>=0.7.1
Using cached toml-0.10.1-py2.py3-none-any.whl (19 kB)
Collecting isort<6,>=4.2.5
Using cached isort-5.5.3-py3-none-any.whl (95 kB)
Collecting wrapt~=1.11
Using cached wrapt-1.12.1.tar.gz (27 kB)
Collecting lazy-object-proxy==1.4.*
Using cached lazy-object-proxy-1.4.3.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting six~=1.12
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: wrapt, lazy-object-proxy
Building wheel for wrapt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Volumes/ncData/GIT/A4DataReader/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-install-fpdfi9uq/wrapt/setup.py'"'"'; __file__='"'"'/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-install-fpdfi9uq/wrapt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-wheel-nkurxfl1
cwd: /private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-install-fpdfi9uq/wrapt/
Complete output (57 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/wrapt
copying src/wrapt/importer.py -> build/lib.macosx-10.14.6-x86_64-3.8/wrapt
copying src/wrapt/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/wrapt
copying src/wrapt/wrappers.py -> build/lib.macosx-10.14.6-x86_64-3.8/wrapt
copying src/wrapt/decorators.py -> build/lib.macosx-10.14.6-x86_64-3.8/wrapt
running build_ext
building 'wrapt._wrappers' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/src
creating build/temp.macosx-10.14.6-x86_64-3.8/src/wrapt
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/Volumes/ncData/GIT/A4DataReader/.venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/wrapt/_wrappers.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/wrapt/_wrappers.o
xcrun -sdk macosx clang -bundle -undefined dynamic_lookup -Wl,-headerpad,0x1000 -arch arm64 -arch x86_64 build/temp.macosx-10.14.6-x86_64-3.8/src/wrapt/_wrappers.o -o build/lib.macosx-10.14.6-x86_64-3.8/wrapt/_wrappers.cpython-38-darwin.so
installing to build/bdist.macosx-10.14.6-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.14.6-x86_64
creating build/bdist.macosx-10.14.6-x86_64/wheel
creating build/bdist.macosx-10.14.6-x86_64/wheel/wrapt
copying build/lib.macosx-10.14.6-x86_64-3.8/wrapt/_wrappers.cpython-38-darwin.so -> build/bdist.macosx-10.14.6-x86_64/wheel/wrapt
copying build/lib.macosx-10.14.6-x86_64-3.8/wrapt/importer.py -> build/bdist.macosx-10.14.6-x86_64/wheel/wrapt
copying build/lib.macosx-10.14.6-x86_64-3.8/wrapt/__init__.py -> build/bdist.macosx-10.14.6-x86_64/wheel/wrapt
copying build/lib.macosx-10.14.6-x86_64-3.8/wrapt/wrappers.py -> build/bdist.macosx-10.14.6-x86_64/wheel/wrapt
copying build/lib.macosx-10.14.6-x86_64-3.8/wrapt/decorators.py -> build/bdist.macosx-10.14.6-x86_64/wheel/wrapt
running install_egg_info
running egg_info
creating src/wrapt.egg-info
writing src/wrapt.egg-info/PKG-INFO
writing dependency_links to src/wrapt.egg-info/dependency_links.txt
writing top-level names to src/wrapt.egg-info/top_level.txt
writing manifest file 'src/wrapt.egg-info/SOURCES.txt'
reading manifest file 'src/wrapt.egg-info/SOURCES.txt'
writing manifest file 'src/wrapt.egg-info/SOURCES.txt'
Copying src/wrapt.egg-info to build/bdist.macosx-10.14.6-x86_64/wheel/wrapt-1.12.1-py3.8.egg-info
running install_scripts
[WARNING] This wheel needs a higher macOS version than the version your Python interpreter is compiled against. To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least 11_0 or recreate these files with lower MACOSX_DEPLOYMENT_TARGET:
build/bdist.macosx-10.14.6-x86_64/wheel/wrapt/_wrappers.cpython-38-darwin.soTraceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-install-fpdfi9uq/wrapt/setup.py", line 102, in <module>
run_setup(with_extensions=True)
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-install-fpdfi9uq/wrapt/setup.py", line 72, in run_setup
setup(**setup_kwargs_tmp)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Volumes/ncData/GIT/A4DataReader/.venv/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 328, in run
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/Volumes/ncData/GIT/A4DataReader/.venv/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 278, in get_tag
assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag)
AssertionError: would build wheel with unsupported tag ('cp38', 'cp38', 'macosx_11_0_x86_64')
----------------------------------------
ERROR: Failed building wheel for wrapt
Running setup.py clean for wrapt
Building wheel for lazy-object-proxy (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Volumes/ncData/GIT/A4DataReader/.venv/bin/python /Volumes/ncData/GIT/A4DataReader/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/tmpyqd7amlu
cwd: /private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-install-fpdfi9uq/lazy-object-proxy
Complete output (72 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
copying src/lazy_object_proxy/compat.py -> build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
copying src/lazy_object_proxy/_version.py -> build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
copying src/lazy_object_proxy/slots.py -> build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
copying src/lazy_object_proxy/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
copying src/lazy_object_proxy/utils.py -> build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
copying src/lazy_object_proxy/simple.py -> build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy
running build_ext
building 'lazy_object_proxy.cext' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/src
creating build/temp.macosx-10.14.6-x86_64-3.8/src/lazy_object_proxy
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Isrc/lazy_object_proxy -I/Volumes/ncData/GIT/A4DataReader/.venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c src/lazy_object_proxy/cext.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/lazy_object_proxy/cext.o
xcrun -sdk macosx clang -bundle -undefined dynamic_lookup -Wl,-headerpad,0x1000 -arch arm64 -arch x86_64 build/temp.macosx-10.14.6-x86_64-3.8/src/lazy_object_proxy/cext.o -o build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/cext.cpython-38-darwin.so
installing to build/bdist.macosx-10.14.6-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.14.6-x86_64
creating build/bdist.macosx-10.14.6-x86_64/wheel
creating build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/compat.py -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/_version.py -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/slots.py -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/__init__.py -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/utils.py -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/cext.cpython-38-darwin.so -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
copying build/lib.macosx-10.14.6-x86_64-3.8/lazy_object_proxy/simple.py -> build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy
running install_egg_info
running egg_info
writing src/lazy_object_proxy.egg-info/PKG-INFO
writing dependency_links to src/lazy_object_proxy.egg-info/dependency_links.txt
writing top-level names to src/lazy_object_proxy.egg-info/top_level.txt
reading manifest file 'src/lazy_object_proxy.egg-info/SOURCES.txt'
writing manifest file 'src/lazy_object_proxy.egg-info/SOURCES.txt'
Copying src/lazy_object_proxy.egg-info to build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy-1.4.3-py3.8.egg-info
running install_scripts
[WARNING] This wheel needs a higher macOS version than the version your Python interpreter is compiled against. To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least 11_0 or recreate these files with lower MACOSX_DEPLOYMENT_TARGET:
build/bdist.macosx-10.14.6-x86_64/wheel/lazy_object_proxy/cext.cpython-38-darwin.soTraceback (most recent call last):
File "/Volumes/ncData/GIT/A4DataReader/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
main()
File "/Volumes/ncData/GIT/A4DataReader/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Volumes/ncData/GIT/A4DataReader/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 216, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 253, in run_setup
super(_BuildMetaLegacyBackend,
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 145, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 61, in <module>
setup(
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 328, in run
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/private/var/folders/hv/xrpk1szs4mv2rjlvys1gycrw0000gn/T/pip-build-env-chypvtmb/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 278, in get_tag
assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag)
AssertionError: would build wheel with unsupported tag ('cp38', 'cp38', 'macosx_11_0_x86_64')
----------------------------------------
ERROR: Failed building wheel for lazy-object-proxy
Failed to build wrapt lazy-object-proxy
ERROR: Could not build wheels for lazy-object-proxy which use PEP 517 and cannot be installed directly
[ 2% 247/11700] target SharedLib: lib...libart_intermediates/LINKED/libart.so)
FAILED: /bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib -Wl,-soname,libart.so -Wl,--gc-sections -shared -Lout/target/product/generic/obj/lib out/target/product/generic/obj/lib/crtbegin_so.o out/target/product/generic/obj/SHARED_LIBRARIES/libart_intermediates/interpreter/mterp/out/mterp_arm.o
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: out/target/product/generic/obj/SHARED_LIBRARIES/libart_intermediates/type_lookup_table.o: file is empty
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: out/target/product/generic/obj/SHARED_LIBRARIES/libart_intermediates/verifier/instruction_flags.o: file is empty
art/runtime/base/scoped_flock.cc:37: error: undefined reference to 'art::OS::OpenFileWithFlags(char const*, int)'
art/runtime/check_jni.cc:3240: error: undefined reference to 'art::operator<<(std::__1::basic_ostream >&, art::Primitive::Type const&)'
art/runtime/check_jni.cc:3056: error: undefined reference to 'art::operator<<(std::__1::basic_ostream >&,
art/runtime/class_linker.cc:2166: error: undefined reference to 'art::ObjectLock::ObjectLock(art::Thread*, art::Handle)'
art/runtime/class_linker.cc:2169: error: undefined reference to 'art::ObjectLock::WaitIgnoringInterrupts()'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[ 2% 247/11700] Building with Jack: o...t_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make failed to build some targets (06:55 (mm:ss))
Getting this error when i run make -j16
Help me what to do !
Seems like some of your object files have been corrupted. I suggest you either clean the dir out/target/product/generic/obj/SHARED_LIBRARIES/libart_intermediates or/and clean ccache ccache -C
First advice is not to build with make -j16 as it takes too much ram.
For example compiling on 8 cores needs 64 GB of ram (tested on my server)
Try just compiling on a single core or at most on two. Another solution would be to call the command m instead of make to let it automatically find optimal settings on your hardware.
Another thing could be that you are missing some packages. Are you sure these packages are installed?
git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
They could have different names for your distro (for example if you use Arch).
Also to note:
Compiling should take between 2.5 to 4 hours depending on your cpu performance. - It needs 100GB for downloading the android sources and 100-150GB for compilation.
You also need at least 12 GB or more to compile on a single core.
There is some method to compile it on 8GB of RAM by using swap space but this is extremely slow so not recommended.
My personal hardware and times:
Intel xeon e5-2680v3 8 core cpu
40 GB ram
Compile time on make -j1: 2 hours
I'm trying to setup nodejs to access a postgres database. What I've done so far is the following (https://gist.github.com/579814):
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
then
git clone git://github.com/isaacs/npm.git
make
make install
so far, so good. However, when I try to install the postgres driver
npm install pg
I get the following:
node-waf configure build || true
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for program pg_config : /usr/bin/pg_config
'configure' finished successfully (0.066s)
Waf: Entering directory `/home/christian/node_modules/pg/build'
[1/2] cxx: src/binding.cc -> build/default/src/binding_1.o
../src/binding.cc:3:25: fatal error: node_events.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/christian/node_modules/pg/build'
Build failed: -> task failed (err #1):
{task: cxx binding.cc -> binding_1.o}
I've been looking around for setting the node path, although haven't found anything of help so far - probably also because I'm totally new to nodejs, so I'd be happy about any hint.
Now, you have NodeJS installed in your Ubuntu. You should set /etc/environment and load nodeJS path that can be executed by another users. For example:
NODE="/home/ubuntu/local/node"
NODE_PATH="/usr/local/lib/node_modules"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$NODE/bin:$NODE/lib/node_modules"
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Do this in bash:
echo 'export NODE_PATH=~/local/:~/local/node_modules' >> ~/.bashrc
before things are fixed you must use node 0.5.1 (you can use gitk to revert the tree to this version)
Auteur: Ryan Dahl <ry#tinyclouds.org> 2011-07-19 10:46:38
Auteur du commit: Ryan Dahl <ry#tinyclouds.org> 2011-07-19 10:46:38
Parent: 0a3fc1d9c8becc32c63ae736ca2b3719a3d03c5b (Remove StatWatcher's dep on C++ EventEmitter)
Enfant: 061ce7b0ac370c8a5ae93d95ab7da171cbd488f0 (net_uv: Fix simple/test-http-expect-continue.js)
Branche: master, remotes/origin/master
Suit: v0.5.1
Précède: v0.5.2
Finally remove node::EventEmitter
I had the same problem.
The issue was that I was specifying a old version of PG in my package.js
After I removed the old version dependancy I was able to install PG without issue.
I'm trying to make the node-mongodb-native driver from git, but when i try and install it i keep on getting this error:
:node-mongodb-native $ make
make -C ./external-libs/bson
rm -rf build .lock-wscript bson.node
node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /Users/name/local/node
'configure' finished successfully (0.087s)
Waf: Entering directory `/Users/name/Sites/git/node-mongodb-native/external-libs/bson/build'
[1/9] cxx: bson.cc -> build/default/bson_1.o
[2/9] cxx: long.cc -> build/default/long_1.o
[3/9] cxx: objectid.cc -> build/default/objectid_1.o
[4/9] cxx: binary.cc -> build/default/binary_1.o
[5/9] cxx: code.cc -> build/default/code_1.o
[6/9] cxx: dbref.cc -> build/default/dbref_1.o
[7/9] cxx: timestamp.cc -> build/default/timestamp_1.o
[8/9] cxx: local.cc -> build/default/local_1.o
[9/9] cxx_link: build/default/bson_1.o build/default/long_1.o build/default/objectid_1.o
build/default/binary_1.o build/default/code_1.o
build/default/dbref_1.o build/default/timestamp_1.o
build/default/local_1.o -> build/default/bson.node
Waf: Leaving directory `/Users/name/Sites/git/node-mongodb-native/external-libs/bson/build'
'build' finished successfully (1.935s)
node.js:183
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: dlopen(/Users/name/Sites/git/node-mongodb-native/external-libs/bson/build/default/bson.node, 1): Symbol not found: _ev_rt_now
Referenced from: /Users/name/Sites/git/node-mongodb-native/external-libs/bson/build/default/bson.node
Expected in: flat namespace
in /Users/name/Sites/git/node-mongodb-native/external-libs/bson/build/default/bson.node
at Object..node (module.js:472:11)
at Module.load (module.js:339:31)
at Function._load (module.js:298:12)
at require (module.js:367:19)
at Object.<anonymous> (/Users/name/Sites/git/node-mongodb-native/external-libs/bson/test_bson.js:5:10)
at Module._compile (module.js:427:26)
at Object..js (module.js:466:10)
at Module.load (module.js:339:31)
at Function._load (module.js:298:12)
at Array.<anonymous> (module.js:479:10)
make[1]: *** [all] Error 1
make: *** [build_native] Error 2
(some lines broken up for easier readability)
The suspicious part to me is this line:
Checking for node path : not found
I have this as my NODE_PATH in my ~/.bash_profile:
export NODE_PATH=/usr/local/lib/node_modules::/usr/local/lib/node
when I ls both of those directories, this is what i get:
$ ls /usr/local/lib/node
wafadmin -> ../../Cellar/node/0.4.8/lib/node/wafadmin
$ ls /usr/local/lib/node_modules
npm
I even just tried this as my NODE_PATH:
export NODE_PATH=/usr/local/lib/node_modules:/usr/local/lib/node:$HOME/local/node/lib/node_modules:$HOME/local/node/lib/node
which I don't think might be the best path b/c it has node installed in two locations which could lead to varying versions, but that's beside the point.
has anyone else had issues installing this driver?
NPM is the best choice to manage node related packages. If you already have npm, you just run npm install -g mongodb. It will install the node mongo driver into your global node_modules directory.
If you download and install node from its official website, npm will come by default.
Which version of node are you running? I was using v0.5.0-pre and I had this exact same error. Once I downgraded to v0.4.8 it worked.
brew install node
Or download v0.4.8 here