Error on jhbuild bootstrap for gtk+ on OSX El Capitan - macos

I tried to install GTK+ on my iMac with OSX 10.11
$ sh gtk-osx-build-setup.sh
went without any error, but said "yelp-tools not available".
When I did
$ jhbuild bootstrap
I got the following error/output:
W: bash has a dependency on unknown "readline" module
*** Checking out xz *** [1/22]
curl --continue-at - -L http://tukaani.org/xz/xz-5.2.1.tar.bz2 -o /Users/Noemi/gtk/source/pkgs/xz-5.2.1.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1158k 100 1158k 0 0 2424k 0 --:--:-- --:--:-- --:--:-- 2423k
bunzip2 -dc "/Users/Noemi/gtk/source/pkgs/xz-5.2.1.tar.bz2" | tar xf -
*** Configuring xz *** [1/22]
./configure --prefix /Users/Noemi/gtk/inst --libdir '/Users/Noemi/gtk/inst/lib'
./configure: line 154: /Users/Noemi/gtk/inst/bin/bash: No such file or directory
./configure: line 154: exec: /Users/Noemi/gtk/inst/bin/bash: cannot execute: No such file or directory
*** Error during phase configure of xz: ########## Error running ./configure --prefix /Users/Noemi/gtk/inst --libdir '/Users/Noemi/gtk/inst/lib' *** [1/22]
[1] Rerun phase configure
[2] Ignore error and continue to build
[3] Give up on module
[4] Start shell
[5] Reload configuration
[6] Go to phase "wipe directory and start over"
[7] Go to phase "clean"
[8] Go to phase "distclean"
choice:

From .jhbuildrc:
# El Capitan needs bash to work around SIP. If you're using a
# common bootstrap directory (e.g. $HOME/.local) then override
# CONFIG_SHELL in .jhbuildrc-custom after calling setup_sdk().
so I added:
os.environ['CONFIG_SHELL'] = '/bin/bash'
into my .jhbuildrc-custom, just after the setup_sdk line and it appears to be working

Related

Unable to Install Erlang using asdf on OSX 10.15.4

I am running into an issue that I haven't previously had with over 6+ months of using asdf on osx. I need to install Erlang 21.3.7.1 and when I do I get this error output from the console that I honestly don't know how to solve:
Me#My-MacBook-Pro:~/Code/codebase|master
⇒ asdf install erlang 21.3.7.1
Downloading kerl...
Downloading OTP-21.3.7.1.tar.gz to /Users/Me/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 523 0 --:--:-- --:--:-- --:--:-- 523
100 51.5M 0 51.5M 0 0 8541k 0 --:--:-- 0:00:06 --:--:-- 9657k
Extracting source code
Building Erlang/OTP 21.3.7.1 (asdf_21.3.7.1), please wait...
DOCUMENTATION INFORMATION (See: /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_build_21.3.7.1.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
GEN obj/x86_64-apple-darwin19.4.0/opt/MADE
LD /Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup
ld: weak import of symbol '___darwin_check_fd_set_overflow' not supported because of option: -no_weak_imports for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [/Users/Me/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.7.1/otp_src_21.3.7.1/bin/x86_64-apple-darwin19.4.0/erl_child_setup] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator_profile_generate] Error 2
Nothing I found on the Erlang/Elixir/asdf forums was particularly helpful. asdf was installed with homebrew. I can install the ref:maint build and change my .tool-version to match but that sets off a whole slew of other issues with Crypto and openssl not being found even though they're installed. Anyone have an idea or two?
It's not possible to build Erlang 21 on Catalina (10.15), according to the comments in this bug report. You can use release 22.3.1 or later.
If you need to use an older Erlang version, you could try applying this change on the Erlang 21 source code.
After upgrading to Catalina I tried installing 22.3.1 but that was not enough for me; somehow Erlang on Catalina could not find OpenSSL.
What I had to do was:
1) Uninstall Erlang 22.3.1 if you have it already:
asdf uninstall erlang 22.3.1
2) Update Xcode to latest version & accept agreement
sudo xcodebuild -license
3) Set --with-ssl flag (copied from the asdf-erlang readme)
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
4) Reinstall Erlang
asdf install erlang 22.3.1

Installed openssl-dev on linux, but opensslv.h missing

That file opensslv.h is requested by "make modules bzImage" when trying to compile a new kernel. I had previously done
$ sudo apt-get install update and
$ sudo apt-get install libcurl4-openssl-dev
$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
with no problems reported;
This is the error msg given by make modules bzImage after a few seconds:
(...)
HOSTCC scripts/sign-file
scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed
make[1]: *** [scripts/sign-file] Error 1
Makefile:556: recipe for target 'scripts' failed
make: *** [scripts] Error 2
I searched google for the error message; most answers indicate that I should install openssl-dev, which I did. I also searched here for the name of the missing file but answers were not helpful.
I am doing this on ubuntu 16.04, trying to install kernel version linux 4.4.53. Previous steps (installing libncurses5-dev, make menuconfig and make localconfig) gave no problem.

DPDK Compilation Error When Building igb_uio

I am trying to test out the DPDK sample applications in a CentOS 6.4 VM running under KVM, but I can't get DPDK to compile.
When trying to run
make install T=x86_64-default-linuxapp-gcc -n
from DPDK-2.0.0, I get the following output:
[...]
make S=lib/librte_eal/linuxapp -f /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/Makefile -C /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp all
[ -d /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio ] || mkdir -p /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio
echo "== Build lib/librte_eal/linuxapp/igb_uio"
make S=lib/librte_eal/linuxapp/igb_uio -f /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/Makefile -C /home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio all
if [ ! -f igb_uio.c ]; then ln -nfs /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/igb_uio.c . ; fi
if [ ! -f Makefile ]; then ln -nfs /home/dpdk-1.6.0r2/lib/librte_eal/linuxapp/igb_uio/Makefile . ; fi
make -C /lib/modules/2.6.32-358.el6.x86_64/build M=/home/dpdk-1.6.0r2/x86_64-default-linuxapp-gcc/build/lib/librte_eal/linuxapp/igb_uio O=/lib/modules/2.6.32-358.el6.x86_64/build \
CROSS_COMPILE=
make: *** /lib/modules/2.6.32-358.el6.x86_64/build: No such file or directory. Stop.
make[7]: *** [igb_uio.ko] Error 2
make[6]: *** [igb_uio] Error 2
make[5]: *** [linuxapp] Error 2
make[4]: *** [librte_eal] Error 2
make[3]: *** [lib] Error 2
make[2]: *** [all] Error 2
make[1]: *** [x86_64-native-linuxapp-gcc_install] Error 2
make: *** [install] Error 2
I've installed all the required packages specified here:
http://dpdk.org/doc/guides/linux_gsg/sys_reqs.html
and I've seen and attempted the solution here:
Intel DPDK Compilation Error
The issue appears for both DPDK2-0.0 and 1.6.0.
Also, just to make sure; running
ls /lib/modules/2.6.32-358.el6.x86_64/build
returns output:
/lib/modules/2.6.32-358.el6.x86_64/build
so the directory definitely exists..
I've managed to compile DPDK in a CentOS 6.6 KVM on the same host without issue, but this time around I keep getting this error.
Also it does need to be CentOS 6.4, sadly.
Update:
Added verbose output above ^
Just solved it:
I was using kernel version 2.6.32-358.el6.x86_64, and I had to update to version 2.6.32-504.23.4.el6.x86_64 to get rid of this error.
Additionally, I ran into another error after this which included the line
previous definition of ‘skb_set_hash’ was here
This happened because of an issue with the DPDK version I was using (1.6) Trying 2.0 fixed this.
Then I got the following error when running any of the module-related options of the setup.sh script:
Traceback (most recent call last):
File "tools/dpdk_nic_bind.py", line 536, in <module>
main()
File "tools/dpdk_nic_bind.py", line 532, in main
get_nic_details()
File "tools/dpdk_nic_bind.py", line 225, in get_nic_details
dev_lines = check_output(["lspci", "-Dvmmn"]).splitlines()
File "tools/dpdk_nic_bind.py", line 120, in check_output
stderr=stderr).communicate()[0]
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
THIS error was because I didn't have pciutils installed and the script couldn't find lspci.
Hope this helps anyone else with the same issues.
When compiling the DPDK, you suppose to have dependency packages and besides that you must have kernel headers of the same kernel version. If you don't install kernel headers then "/lib/modules/your-kernel-version/build" folder is invalid otherwise it is valid.

OGRE1.9 build error on OSX

I am trying to install ogre v1.9 using homebrew. brew install ogre --HEAD
At some point I get the following errors:
duplicate symbol __ZN4Ogre18ControllerFunctionIfE16getAdjustedInputEf in:
CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o
duplicate symbol __ZN4Ogre18ControllerFunctionIdE16getAdjustedInputEd in:
CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o
CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o
...
ld: 564 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/macosx/Ogre.framework/Versions/1.9.0/Ogre] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2
==> Formula
Tap: osrf/homebrew-simulation
Path: /usr/local/Library/Taps/osrf/homebrew-simulation/ogre.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 01dd3e19f8e600c3f44a3b140103f330aa32447c
Last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.10.2-x86_64
Xcode: N/A
CLT: 6.2.0.0.1.1424975374
Clang: 6.0 build 600
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-p481
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Java: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/libzzip/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10:/opt/X11/lib/pk gconfig:/opt/X11/share/pkgconfig
ACLOCAL_PATH: /usr/local/share/aclocal:/opt/X11/share/aclocal
PATH:/usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/doxygen/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/libzzip/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Error: ogre HEAD did not build
The errors are so many and all in OgreAlignedAllocator.cpp.o. I think there is something defined twice. I tried to uninstall all OGRE dependencies and reinstall them again, but I still get the same error.
Any suggestion how can I solve or debug this kind of error?
Ok! It was a mess in the last commit, I checked out a previous revision and it works.

How to install GTK+/PyGTK on OSX?

I'm trying to install PyGTK on OSX 10.6 (snow leopard). I have followed this topic Where is PyGTK for Mac OS X?.
When I run the last command :
~/.local/bin/jhbuild build meta-gtk-osx-python
I have the following error :
*** Checking out gtk+ *** [10/18]
*** Configuring gtk+ *** [10/18]
autoreconf -fis && ./configure --prefix /Users/smu/gtk/inst --libdir '/Users/smu/gtk/inst/lib' --with-gdktarget=quartz --disable-static
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
configure.in:150: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /Users/smu/gtk/inst/bin/autoconf failed with exit status: 1
*** Error during phase configure of gtk+: ########## Error running autoreconf -fis && ./configure --prefix /Users/smu/gtk/inst --libdir '/Users/smu/gtk/inst/lib' --with-gdktarget=quartz --disable-static *** [10/18]
[1] Rerun phase configure
[2] Ignore error and continue to build
[3] Give up on module
[4] Start shell
[5] Reload configuration
[6] Go to phase "wipe directory and start over"
[7] Go to phase "clean"
[8] Go to phase "distclean"
choice:
What can I do to solve this error ? Thanks.
I have found a solution. I think that it's a problem with some versions of libraries.
Just bootstrap with --ignore-system to be sure that all libraries with their correct versions are correctly installed.
jhbuild bootstrap --ignore-system

Resources