Issue with Intel MKL library for Mac OS Ventura 13.1: pointer not aligned - pointers

I upgraded my Mac (Intel chip) OS to Ventura 13.1 and try to compile with MKL. But I get the following error. It looks like MKL has not yet supported the 13.1 yet. Or is this something fixable?
opt/intel/oneapi/mkl/2023.0.0/lib/libmkl_intel_thread.a(blkslv_omp_mic_cmplx_lp64_sp.o))
ld: warning: pointer not aligned at page boundary address 0x104F4BFFC (‘.2.7_2_kmpc_loc_struct_pack.173’ + 16 from /opt/intel/oneapi/mkl/2023.0.0/lib/libmkl_intel_thread.a(compute_residual_cmplx_lp64_sp.o))
ld: warning: pointer not aligned at page boundary address 0x104F5AFFC (‘.2.4_2_kmpc_loc_struct_pack.228’ + 16 from /opt/intel/oneapi/mkl/2023.0.0/lib/libmkl_intel_thread.a(blkldl_ooc_omp_lp64_sp.o))
ld: unaligned pointer(s) for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [projects/tclmain/tcliset] Error 1
make[1]: *** [projects/tclmain/CMakeFiles/tcliset.dir/all] Error 2
make: *** [all] Error 2
I refreshed the MKL library from 2021.0.2 to 2023.0.0. But this does not fix the issue.

Related

HDF5 package error compile

I have compiled the HDF5 package by GCC 4.9.2, CentOS 6.8 and std=c++11, but I get error:
for package Linux 3.10 CentOS 7 x86_64 I get :
./host/src/hdf5/lib/libhdf5.so: undefined reference to `memcpy#GLIBC_2.14'
collect2: error: ld returned 1 exit status
for package Linux 2.6 CentOS 6 x86_64 I get :
/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld: warning: libsz.so.2, needed by ./host/src/hdf5/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_encoder_enabled'
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_BufftoBuffCompress'
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_BufftoBuffDecompress'
collect2: error: ld returned 1 exit status
Any idea to slove this?
Thank you
The compiler complains that it is not finding SZ_... routines. szip is an optional library for HDF5 that you have to download separately.
Two options:
Re-configure hdf5 to disable szip
download, build and install szip

Compiling clang on a 32-bit system fails because of insufficient virtual memory

I am trying to compile clang 3.9 on a 32 bit scientific linux.
The compilation process fails at 93% with the following error:
[ 93%] Linking CXX executable ../../bin/clang
/lib/ld-linux.so.2: could not read symbols: Memory exhausted
collect2: error: ld returned 1 exit status
gmake[2]: *** [bin/clang-3.9] Error 1
gmake[1]: *** [tools/driver/CMakeFiles/clang.dir/all]
Error 2 gmake: *** [all] Error 2
My machine has 8GB of RAM, and looking with top the memory usage evolution during linkage, I see that it fails after 3GB, which is the process virtual memory limit on 32bit linux.
I saw that for a quite similar problem, someone advised to compile the Release version, so I tried, but it fails with the same type of error (even if apparently going a little further):
[ 93%] Linking CXX executable ../../bin/clang
collect2: error: ld terminated with signal 11 [Segmentation fault]
/opt/rh/devtoolset-2/root/usr/libexec/gcc/i686-redhat-linux/4.8.2/ld: can not read symbols: Memory exhausted
gmake[2]: *** [bin/clang-3.9] Error 1
gmake[2]: *** Deleting file `bin/clang-3.9'
gmake[1]: *** [tools/driver/CMakeFiles/clang.dir/all] Error 2
gmake: *** [all] Error 2
Any ideas?
In GCC the following flags help ld in limited RAM environment:
-Wl,--no-keep-memory -Wl,--reduce-memory-overheads

cannot build qtwebengine for raspberry pi 2 from qt5.6 source

I am trying to compile qtwebengine for raspberry pi using
[http://wiki.qt.io/RaspberryPi2EGLFS ](link url)
AND
compilation terminates with following errors :
...
...
.obj/qquickwebengineview.o:qquickwebengineview.cpp:function QQuickWebEngineView::webChannel(): error: undefined reference to 'QQmlWebChannel::QQmlWebChannel(QObject*)'
collect2: error: ld returned 1 exit status
make[2]: *** [../../lib/libQt5WebEngine.so.5.6.1] Error 1
make[2]: Leaving directory `/home/gesar/pi-qt5.6/raspi/qtwebengine/src/webengine'
make[1]: *** [sub-webengine-install_subtargets] Error 2
make[1]: Leaving directory `/home/gesar/pi-qt5.6/raspi/qtwebengine/src'
make: *** [sub-src-install_subtargets] Error 2
--
What am I missing? It says about qtwebchannel but I have successfully installed qtwebchannel.
Please help. I have been trying for more than 2 weeks
I was able to solve this problem by rebuilding the QtWebChannel:
~/raspi/qtwebchannel$ make
and then going back to the QtWebEngine:
~/raspi/qtwebengine$ make
This builds the libQt5WebEngine.so

Unable to Build Qt Code on Raspberry Pi

Past few weeks I have been trying to setup Qt native build environment on Raspberry Pi.
I followed steps mentioned in Native Build of Qt 5.4.1.
Since I do not use USB Hard Disk, I omitted following steps:
Unpacking source to an external USB HDD
Increasing available RAM for concurrent compilation
Instead I extracted to moved to path: cd ~/opt/qt-everywhere-opensource-src-5.4.1
and for compilation I ran: make 2>&1 | tee make.out
I tried Qt 5.4.1 to build on Jessie version of Raspbian OS, but it failed. I found similar error someone posted and tried to reply but no response at the end.
And now I tried Qt 5.4.1 on Wheezy version, and I get different error:
/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//libJavaScriptCore.a: member /home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore//.obj/dfg/DFGThunks.o in archive is not an object
collect2: ld returned 1 exit status
Makefile.jsc:98: recipe for target '../../bin/jsc' failed
make[3]: *** [../../bin/jsc] Error 1
make[3]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
Makefile.JavaScriptCore:126: recipe for target 'sub-jsc-pro-make_first-ordered' failed
make[2]: *** [sub-jsc-pro-make_first-ordered] Error 2
make[2]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit/Source/JavaScriptCore'
Makefile:93: recipe for target 'sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered' failed
make[1]: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/pi/opt/qt-everywhere-opensource-src-5.4.1/qtwebkit'
Makefile:485: recipe for target 'module-qtwebkit-make_first' failed
make: *** [module-qtwebkit-make_first] Error 2
Can someone tell me why this occurs? Is this Qt code issue? Is there a way to resolve this?

Installing HTTP /2 webserver

I am trying to do some performance analysis of HTTP/1.1 and HTTP /2. But I have not been successful in installing the later one. I need both the protocols from the same implementation (e.g. H2O). The first problem I got while installing H2O is the openssl version in ubuntu 14.04. The I updated the version to 1.0.2 as suggested by 1. Then I got the following error messages:
In function `h2o_socket_ssl_get_selected_protocol':
/tmp/h2o/lib/common/socket.c:499: undefined reference to `SSL_get0_alpn_selected'
CMakeFiles/h2o.dir/lib/common/socket.c.o: In function `h2o_ssl_register_alpn_protocols':
/tmp/h2o/lib/common/socket.c:542: undefined reference to `SSL_CTX_set_alpn_select_cb'
collect2: error: ld returned 1 exit status
make[2]: *** [h2o] Error 1
make[1]: *** [CMakeFiles/h2o.dir/all] Error 2
make: *** [all] Error 2
Can anybody please help me here.
Try using Nginx. There is a lot more support for it. H2O is a little more complicated to setup and the docs aren't as well written.

Resources