Building jami on ubuntu 22.04 (jammy)

That did not fix it. I am getting the same problem. I will try to check my paths and see if a different compiler is being run (cross-compiler, toolset etc)

[100%] Linking CXX executable jami
/usr/bin/ld: 3rdparty/md4c/src/libmd4c-html.a(md4c-html.c.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/jami.dir/build.make:1668: jami] Error 1
make[1]: *** [CMakeFiles/Makefile2:222: CMakeFiles/jami.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Traceback (most recent call last):
File “/usr/src/jami-client-qt/./build.py”, line 826, in
main()

I changed my PATH and got a different result. It was using a gcc cross compiler instead it seems.
It failed but had a different error. What version of gcc are you using?
touch .sum-upnp
rm -f -R upnp && tar xzf /usr/src/jami-client-qt/daemon/contrib/tarballs/pupnp-release-1.14.18.tar.gz
for dir in ; do if test -f “${dir}/config.sub” -a -f “${dir}/config.guess”; then cp “${dir}/config.sub” “${dir}/config.guess” pupnp-release-1.14.18; break; fi; done && cd pupnp-release-1.14.18 && mv config.guess config.sub
mv: cannot stat ‘config.guess’: No such file or directory
make: *** [/usr/src/jami-client-qt/daemon/contrib/src/upnp/rules.mak:17: upnp] Error 1
Traceback (most recent call last):
File “/usr/src/jami-client-qt/./build.py”, line 826, in
main()
File “/usr/src/jami-client-qt/./build.py”, line 801, in main
run_install(parsed_args)
File “/usr/src/jami-client-qt/./build.py”, line 443, in run_install
return subprocess.run(command, env=environ, check=True)
File “/usr/lib/python3.10/subprocess.py”, line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘extras/scripts/install.sh’, ‘-p’, ‘8’, ‘-Q’, ‘/usr/lib/libqt-jami’]’ returned non-zero exit status 2.

/usr/src/jami-client-qt$ gcc --version
gcc (GCC) 12.3.1 20230626

I finally got a completed build. I had several versions of compilers and cross compilers. They were somehow getting mixed up. So after a reinstall of all compilers, I got it to build. Thanks for your help.

1 Like