Circular dependency observed
Hi Team,
-
My target switch OS is, /home/user # uname -a Linux MARVELL_LINUX 3.10.70 #1 (closed) SMP Fri Jun 19 07:41:25 IST 2020 armv7l GNU/Linux
-
I'm trying to cross compile tcl/tk libraries dependent for python2.7.12 and observed below error. /home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux-gnueabi/bin/ld: cannot find -lX11
-
Since it showed libX11 is a dependent library, downloaded libX11 source code and tried to cross compile.
./configure --build=x86_64-linux-gnu --host=arm-none-linux-gnueabi CC=arm-marvell-linux-gnueabi-gcc CXX=arm-marvell-linux-gnueabi-g++ AR=arm-marvell-linux-gnueabi-ar LD=arm-marvell-linux-gnueabi-ld CPP=arm-marvell-linux-gnueabi-cpp --disable-loadable-xc --disable-xthreads --disable-xcms --disable-xlocale --enable-xlocaledir --disable-xf86bigfont --disable-xkb --disable- composecache --enable-malloc0returnsnull --prefix=/home/balaram/MOXA/libx11
root@sfsubuntu11:/home/balaram/MOXA/tk8.6.10/unix# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/projects/Marvell_Latest_Toolchain/aarch64v8-marvell-linux-gnu-5.2.1_x86_64_20160301/bin:/home/balaram/MOXA/le/armv7_latest/bin
-
During make, observed below error, /home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux-gnueabi/bin/ld: cannot find -lxcb
-
Then downloaded libxcb-1.14.tar.gz and during compilation faced similar error, /home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux-gnueabi/bin/ld: cannot find -lXau
-
For xauth-master.tar.gz, below error observed:
configure: error: Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met:
No package 'xmuu' found
- For libXmu,
make[2]: Entering directory '/home/balaram/MOXA/libXmu-master/src'
CCLD libXmu.la
/home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux-
gnueabi/bin/ld: cannot find -lXt
/home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux-
gnueabi/bin/ld: cannot find -lXext
/home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux-
gnueabi/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
Makefile:509: recipe for target 'libXmu.la' failed
Now, X11 library is needed, but we are compiling these as dependent for libX11.
- Tried to compile libXext as well, same issue faced.
make\[2\]: Entering directory '/home/balaram/MOXA/libXext-master/src' CCLD libXext.la /home/balaram/MOXA/le/armv7_latest/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/../../../../arm-marvell-linux- gnueabi/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status Makefile:486: recipe for target 'libXext.la' failed
Now we are in circular depdendency. libx11 -> libxcb -> libXauth -> libXmu -> libXext ->
|__________________________________________________|
Requesting you people to help us in resolving the issue.
Thanks & Regard,
Balaram