<div dir="ltr">Hi,<div><br></div><div>I hope I posting my questions in the right forum. Please let me know if I am not.</div><div><br></div><div>I am new to systemd and I am trying to cross-compile the systemd-207 for the mips32 but I am facing below issues. Please help me to resolve the compilation issues.</div>
<div><br></div><div>When I have compiled for x86 machine in fedora 16, I am able to compile the systemd-207.</div><div><br></div><div><br></div><div>Downloaded code from <a href="http://www.freedesktop.org/software/systemd/">http://www.freedesktop.org/software/systemd/</a> version 207 and set the following environment variable to point to cross compiler.</div>
<div><br></div><div><div>export PATH=$PATH:/export/home/subhasp1/code/TCR_Head/.buildbox/opt/stbgcc-4.5.3-2.4/bin/</div><div>export AR=mipsel-linux-ar</div><div>export CPP=mipsel-linux-cpp</div><div>export CC=mipsel-linux-gcc</div>
<div>export LD=mipsel-linux-ld</div></div><div><br></div><div><br></div><div>I am trying to configure as below .</div><div><br></div><div> ./configure  --disable-tcpwrap   --disable-pam   --disable-audit   --disable-selinux  --disable-xz   --disable-acl   --disable-libcryptsetup  --host=mips32 --build=x86<br>
</div><div><br></div><div><br></div><div>The output is as below:</div><div><br></div><div><div>checking for mips32-gcc... mipsel-linux-gcc</div><div>checking whether the C compiler works... yes</div><div>checking for C compiler default output file name... a.out</div>
<div>checking for suffix of executables...</div><div>checking whether we are cross compiling... yes</div><div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div>
<div>checking whether mipsel-linux-gcc accepts -g... yes</div><div>checking for mipsel-linux-gcc option to accept ISO C89... none needed</div><div>checking how to run the C preprocessor... mipsel-linux-cpp</div><div>checking for grep that handles long lines and -e... /bin/grep</div>
<div>checking for egrep... /bin/grep -E</div><div>checking for ANSI C header files... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>
checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div>
<div>checking minix/config.h usability... no</div><div>checking minix/config.h presence... no</div><div>checking for minix/config.h... no</div><div>checking whether it is safe to define __EXTENSIONS__... yes</div><div>checking for special C compiler options needed for large files... no</div>
<div>checking for _FILE_OFFSET_BITS value needed for large files... 64</div><div>checking for a BSD-compatible install... /usr/bin/install -c</div><div>checking whether build environment is sane... yes</div><div>checking for mips32-strip... no</div>
<div>checking for strip... strip</div><div>configure: WARNING: using cross tools not prefixed with host triplet</div><div>checking for a thread-safe mkdir -p... /bin/mkdir -p</div><div>checking for gawk... gawk</div><div>
checking whether make sets $(MAKE)... yes</div><div>checking for style of include used by make... GNU</div><div>checking whether make supports nested variables... yes</div><div>checking how to create a pax tar archive... gnutar</div>
<div>checking dependency style of mipsel-linux-gcc... gcc3</div><div>checking whether make supports nested variables... (cached) yes</div><div>checking build system type... x86-unknown-none</div><div>checking host system type... mips642-unknown-elf</div>
<div>checking how to print strings... printf</div><div>checking for a sed that does not truncate output... /bin/sed</div><div>checking for fgrep... /bin/grep -F</div><div>checking for ld used by mipsel-linux-gcc... mipsel-linux-ld</div>
<div>checking if the linker (mipsel-linux-ld) is GNU ld... yes</div><div>checking for BSD- or MS-compatible name lister (nm)... no</div><div>checking for mips32-dumpbin... no</div><div>checking for mips32-link... no</div>
<div>checking for dumpbin... no</div><div>checking for link... link -dump</div><div>checking the name lister (nm) interface... BSD nm</div><div>checking whether ln -s works... yes</div><div>checking the maximum length of command line arguments... 1572864</div>
<div>checking whether the shell understands some XSI constructs... yes</div><div>checking whether the shell understands "+="... yes</div><div>checking how to convert x86-unknown-none file names to mips642-unknown-elf format... func_convert_file_noop</div>
<div>checking how to convert x86-unknown-none file names to toolchain format... func_convert_file_noop</div><div>checking for mipsel-linux-ld option to reload object files... -r</div><div>checking for mips32-objdump... no</div>
<div>checking for objdump... objdump</div><div>checking how to recognize dependent libraries... unknown</div><div>checking for mips32-dlltool... no</div><div>checking for dlltool... no</div><div>checking how to associate runtime and link libraries... printf %s\n</div>
<div>checking for mips32-ar... mipsel-linux-ar</div><div>checking for archiver @FILE support... @</div><div>checking for mips32-strip... strip</div><div>checking for mips32-ranlib... no</div><div>checking for ranlib... ranlib</div>
<div>checking command to parse nm output from mipsel-linux-gcc object... ok</div><div>checking for sysroot... no</div><div>checking for mips32-mt... no</div><div>checking for mt... no</div><div>checking if : is a manifest tool... no</div>
<div>checking for dlfcn.h... yes</div><div>checking for objdir... .libs</div><div>checking if mipsel-linux-gcc supports -fno-rtti -fno-exceptions... no</div><div>checking for mipsel-linux-gcc option to produce PIC... -fPIC -DPIC</div>
<div>checking if mipsel-linux-gcc PIC flag -fPIC -DPIC works... yes</div><div>checking if mipsel-linux-gcc static flag -static works... yes</div><div>checking if mipsel-linux-gcc supports -c -o file.o... yes</div><div>checking if mipsel-linux-gcc supports -c -o file.o... (cached) yes</div>
<div>checking whether the mipsel-linux-gcc linker (mipsel-linux-ld) supports shared libraries... yes</div><div>checking whether -lc should be explicitly linked in... no</div><div>checking dynamic linker characteristics... no</div>
<div>checking how to hardcode library paths into programs... immediate</div><div>checking whether stripping libraries is possible... yes</div><div>checking if libtool supports shared libraries... no</div><div>checking whether to build shared libraries... no</div>
<div>checking whether to build static libraries... yes</div><div><font color="#ff0000">configure: error: --enable-static is not supported by systemd</font></div></div><div><br></div><div>I have tried to delete the below check in configure file to check how far I can go </div>
<div><br></div><div><div><font color="#0000ff">if test "x$enable_static" = "xyes"; then :</font></div><div><font color="#0000ff">  as_fn_error $? "--enable-static is not supported by systemd" "$LINENO" 5</font></div>
<div><font color="#0000ff">fi</font></div></div><div><font color="#0000ff"><br></font></div><div><font color="#000000">It is continued to configure but stuck at below error.</font></div><div><font color="#000000"><br></font></div>
<div><div style="color:rgb(0,0,0)">checking if mipsel-linux-gcc -std=gnu99 supports flag -Wl,-z,now in envvar LDFLAGS... yes</div><div style="color:rgb(0,0,0)">checking for python... /usr/local/bin/python</div><div style="color:rgb(0,0,0)">
checking for python version... 2.7</div><div style="color:rgb(0,0,0)">checking for python platform... linux2</div><div style="color:rgb(0,0,0)">checking for python script directory... ${prefix}/lib/python2.7/site-packages</div>
<div style="color:rgb(0,0,0)">checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages</div><div style="color:rgb(0,0,0)">checking for PYTHON_DEVEL... yes</div><div style="color:rgb(0,0,0)">
checking for library containing dlsym... -ldl</div><div style="color:rgb(0,0,0)">checking sys/capability.h usability... no</div><div style="color:rgb(0,0,0)">checking sys/capability.h presence... no</div><div style="color:rgb(0,0,0)">
checking for sys/capability.h... no</div><div><font color="#cc0000">configure: error: *** POSIX caps headers not found</font></div><div style="color:rgb(0,0,0)"><br></div></div><div><font color="#000000">Please let me know if I am doing something wrong. </font></div>
<div><div><br></div>-- <br><div> </div>
<div> </div>
<div>Thanks and Regards,<br>Praveenkumar.S</div>
</div></div>