I had a hard time to install gmp-mpfr-sys. I am using Catalina 10.15.7. Is this Rust crate installable on mac at all?
It looks like some test-suits of gmp caused segmentation fault.
Cargo.toml:
[dependencies]
gmp-mpfr-sys = "1.4"
libtool: warning: '-no-install' is ignored for kabylake-apple-darwin19.6.0
libtool: warning: assuming '-no-fast-install' instead
libtool: warning: '-no-install' is ignored for kabylake-apple-darwin19.6.0
libtool: warning: assuming '-no-fast-install' instead
libtool: warning: '-no-install' is ignored for kabylake-apple-darwin19.6.0
libtool: warning: assuming '-no-fast-install' instead
libtool: warning: '-no-install' is ignored for kabylake-apple-darwin19.6.0
libtool: warning: assuming '-no-fast-install' instead
../../../gmp-src/test-driver: line 107: 81118 Segmentation fault: 11 "$#" > $log_file 2>&1
make[5]: *** [test-suite.log] Error 1
make[4]: *** [check-TESTS] Error 2
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
thread 'main' panicked at 'Program failed with code 2: "make" "-j" "16" "check"', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gmp-mpfr-sys-1.4.9/build.rs:1300:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Related
I am using an iMX8MQ EVK board with Linux. I want to install the apache2 server and MySQL database from the source. Started installing apache2 using this
Here is the Linux version:
root#imx8mqevk:~# cat /etc/os-release
ID=fsl-imx-wayland
NAME="NXP i.MX Release Distro"
VERSION="5.10-hardknott (hardknott)"
VERSION_ID=5.10-hardknott
PRETTY_NAME="NXP i.MX Release Distro 5.10-hardknott (hardknott)"
Here is the output of configure
Facing issue with make as crypto is not found. I am not able to resolve the issue.
I have tried installing glibc but the issue is not resolved.
make error
Making all in support
make[1]: Entering directory '/home/root/httpd-2.4.53/support'
make[2]: Entering directory '/home/root/httpd-2.4.53/support'
/usr/local/apr/build-1/libtool --silent --mode=link gcc -g -O2 -pthread -o htpasswd htpasswd.lo passwd_common.lo /usr/local/apr/lib/libaprutil-1.la -lexpat /usr/local/apr/lib/libapr-1.la -lrt -lpthread -ldl
/usr/lib/gcc/aarch64-poky-linux/10.2.0/../../../../aarch64-poky-linux/bin/ld: passwd_common.o: in function `mkhash':
/home/root/httpd-2.4.53/support/passwd_common.c:228: undefined reference to `crypt'
/usr/lib/gcc/aarch64-poky-linux/10.2.0/../../../../aarch64-poky-linux/bin/ld: /home/root/httpd-2.4.53/support/passwd_common.c:240: undefined reference to `crypt'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:48: htpasswd] Error 1
make[2]: Leaving directory '/home/root/httpd-2.4.53/support'
make[1]: *** [/home/root/httpd-2.4.53/build/rules.mk:75: all-recursive] Error 1
make[1]: Leaving directory '/home/root/httpd-2.4.53/support'
make: *** [/home/root/httpd-2.4.53/build/rules.mk:75: all-recursive] Error 1
Unable to install gobject-introspection - symbol lookup error: and undefined symbol: g_unicode_type_get_type
I tried to compile Gtk4, and download gobject-introspection 1.30, 1.40, 1.50, 1.64.1. All failed with the same exact error except the last one that produced another error.
Errors for gobject-introspection 1.30, 1.40, 1.50,
CCLD _giscanner.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC g_ir_compiler-compiler.o
CCLD g-ir-compiler
CC g_ir_generate-generate.o
CCLD g-ir-generate
CC g_ir_inspect-g-ir-inspect.o
CCLD g-ir-inspect
CC gi_dump_types-gdump.o
CC gi_dump_types-gi-dump-types.o
CCLD gi-dump-types
CC glib_print-glib-print.o
CCLD glib-print
GEN g-ir-scanner
GEN g-ir-annotation-tool
GEN g-ir-doc-tool
GISCAN GLib-2.0.gir
g-ir-scanner: GLib: warning: 736 warnings suppressed (use --warn-all to see them)
GISCAN GObject-2.0.gir
/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0: symbol lookup error: /home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0: undefined symbol: g_unicode_type_get_type
Command '[u'/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/GObject-2.0', u'--introspect-dump=/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/functions.txt,/home/elias/Downloads/gobject-introspection-1.50.0/tmp-introspectCppLzz/dump.xml']' returned non-zero exit status 127
Makefile:3520: recipe for target 'GObject-2.0.gir' failed
make[2]: *** [GObject-2.0.gir] Error 1
make[2]: Leaving directory '/home/elias/Downloads/gobject-introspection-1.50.0'
Makefile:2810: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/elias/Downloads/gobject-introspection-1.50.0'
Makefile:1570: recipe for target 'all' failed
make: *** [all] Error 2
I solved that problem finding the solution here:
You're probably missing the development package. The package name
varies by distribution, but it's the one containing
/usr/lib/pkgconfig/gobject-introspection-1.0.pc (or
/usr/lib64/pkgconfig/gobject-introspection-1.0.pc for some 64-bit
distros):
Fedora, CentOS, RHEL, etc.: gobject-introspection-devel
Debian,Ubuntu, Mint, etc.: libgirepository1.0-dev Arch: gobject-introspection
FreeBSD: gobject-introspection
Cygwin: libgirepository1.0-devel msys2:
mingw-w64-x86_64-gobject-introspection and/or mingw-w64-i686-gobject-introspection
I encountered the following error while I was compiling gpfs.
OS:RHEL7.4
GPFS:4.2.1
1.# cd /usr/lpp/mmfs/src/
2.# make LINUX_DISTRIBUTION=REDHAT_AS_LINUX Autoconfig
3.# make World
When the third step occurs, the following error occurs。
DVERBOSETRACE -DLROC -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR()" -fno-stack-protector -Wformat=0 -Wno-format-security -I/usr/lpp/mmfs/src/gpl-linux -c kdump.c
cc kdump.o kdump-kern.o kdump-kern-dwarfs.o -o kdump -lpthread
kdump-kern.o: In function `GetOffset':
kdump-kern.c:(.text+0x9): undefined reference to `page_offset_base'
kdump-kern.o: In function `KernInit':
kdump-kern.c:(.text+0x58): undefined reference to `page_offset_base'
collect2: error: ld returned 1 exit status
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/lpp/mmfs/src/gpl-linux'
make: *** [Modules] Error 1
add unsigned long page_offset_base; on top of the file /usr/lpp/mmfs/src/gpl-linux/kdump.c
i see the same problem compiling with the kernel (3.10.0-693.1.1.el7.x86_64). (rhel7.3 updated + GPFS 4.2.3-1)
I resolved it using a previous kernel: kernel-3.10.0-514.el7.x86_64
I hope this help.
Regards
Got below error when installing gtk+-3.0.5 from source code on CentOS Linux release 7.1.1503.
Error msg:
/usr/bin/ld: queryimmodules.o: undefined reference to symbol
'g_module_close' /usr/bin/ld: note: 'g_module_close' is defined in DSO
/lib64/libgmodule-2.0.so.0 so try adding it to the linker command line
/lib64/libgmodule-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Environment:
[root#localhost gtk+-3.0.5]# cat /etc/*release CentOS Linux release
7.1.1503 (Core)
CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.1.1503 (Core) CentOS Linux release 7.1.1503
(Core)
[root#localhost gtk+-3.0.5]# uname -a Linux localhost.localdomain
3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
https://developer.gnome.org/gtk3/stable/gtk-building.html
./configure --prefix=/opt/gtk
GTK+ 3.0.5
GDK backends: x11 X11 extensions: XKB XI2 XFIXES DAMAGE
Print backends: file lpr Dynamic modules: yes Included
immodules: none PackageKit support: yes Introspection: no
Debugging: minimum Documentation: no
Make
... CCLD libgtk-3.la CC queryimmodules.o CCLD
gtk-query-immodules-3.0 /usr/bin/ld: queryimmodules.o: undefined
reference to symbol 'g_module_close' /usr/bin/ld: note:
'g_module_close' is defined in DSO /lib64/libgmodule-2.0.so.0 so try
adding it to the linker command line /lib64/libgmodule-2.0.so.0: could
not read symbols: Invalid operation collect2: error: ld returned 1
exit status make[4]: * [gtk-query-immodules-3.0] Error 1 make[4]:
Leaving directory /root/gtk/gtk+-3.0.5/gtk' make[3]: ***
[all-recursive] Error 1 make[3]: Leaving directory
/root/gtk/gtk+-3.0.5/gtk' make[2]: * [all] Error 2 make[2]: Leaving
directory /root/gtk/gtk+-3.0.5/gtk' make[1]: *** [all-recursive]
Error 1 make[1]: Leaving directory/root/gtk/gtk+-3.0.5' make: ***
[all] Error 2
# yum install gtk3-devel ... will provide version -3.8.8-10.el7
? Why do you want to use an old version ? Time stamp = 23 March 2011 !
I tried to install sphinxbase on my Windows 7 using Cygwin for running pocketsphinx android demo.
But I got the following error after executing make:
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.11-i686-2.6/sphinxbase.o -L../src/libsphinxbase/.libs -L/usr/lib/python2.6/config -lsphinxbase -liconv -lpython2.6 -o build/lib.cygwin-1.7.11-i686-2.6/sphinxbase.dll
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Makefile:471: recipe for target `pymod-build-stamp' failed
make[1]: *** [pymod-build-stamp] Error 1
make[1]: Leaving directory `/cygdrive/c/psph/sphinxbase/python'
Makefile:330: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1.
I visited the link http://www.cs.columbia.edu/~ecooper/CS4706/ps-cygwin.html and followed the steps, but to the same result.
I have used pocketsphinx-0.7 and sphinxbase-0.7 in above situation.
The error:
ld: cannot find -liconv
means, that you don't have iconv installed. Look for the package with the name libiconv-dev or similar in your package manager.