Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues with Ubuntu 18.04 LTS #4926

Closed
omkarnathsingh opened this issue Jul 1, 2018 · 9 comments
Closed

Build issues with Ubuntu 18.04 LTS #4926

omkarnathsingh opened this issue Jul 1, 2018 · 9 comments

Comments

@omkarnathsingh
Copy link
Contributor

I looked through all of solutions given here before, but they are not working now. I am using code from master branch of this repository and have followed all steps as given in Readme for Linux.

Error Logs of make:

09:55:17: Starting: "/usr/bin/cmake" --build . --target all
[  1%] Built target linux_glibc_wraps
[  2%] Built target codegen_emoji
[  3%] Built target crl
[  3%] Built target Updater
[  5%] Built target codegen_style
[  5%] Built target codegen_numbers
[ 12%] Built target libtgvoip
[ 13%] Built target codegen_lang
[ 14%] Built target tests_rpl
[ 14%] Built target tests_flat_set
[ 14%] Built target tests_flat_map
[ 15%] Built target tests_flags
[ 15%] Built target tests_algorithm
[ 15%] tests_algorithm..
[ 15%] tests_flags..
[ 15%] tests_flat_map..
[ 15%] tests_flat_set..
[ 15%] tests_rpl..
[ 15%] Built target tests__run_tests
[ 15%] Built target tests
[ 15%] Built target lib_scheme__codegen_scheme
[ 15%] Built target lib_scheme
[ 16%] Built target lib_export
[ 16%] Built target Telegram__update_dependent_styles
[ 16%] Built target Telegram__codegen_lang
[ 16%] Built target Telegram__codegen_numbers
[ 17%] Built target Telegram__qt_rcc
[ 18%] Built target Telegram__codegen_emoji
[ 19%] Built target Telegram__codegen_style
[ 19%] Built target Telegram__codegen_palette
[ 19%] Built target Telegram__update_dependent_qrc
[ 53%] Built target Telegram__qt_moc
[ 53%] Linking CXX executable Telegram
/usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libXext.a(extutil.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libXext.a(Xge.o): relocation R_X86_64_32 against `.data' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libSM.a(sm_client.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libSM.a(sm_error.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libSM.a(sm_process.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
CMakeFiles/Telegram.dir/build.make:13870: recipe for target 'Telegram' failed
make[2]: *** [Telegram] Error 1
CMakeFiles/Makefile2:86: recipe for target 'CMakeFiles/Telegram.dir/all' failed
Makefile:83: recipe for target 'all' failed
make[1]: *** [CMakeFiles/Telegram.dir/all] Error 2
make: *** [all] Error 2
09:58:14: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project Telegram (kit: Imported Kit)
When executing step "CMake Build"
09:58:14: Elapsed time: 02:57```
@john-preston
Copy link
Member

@omkarnathsingh The build instructions are for Ubuntu 14.04, I’ve never tried building it on more new versions.

@Aokromes
Copy link
Collaborator

Aokromes commented Jul 3, 2018

#4275 ?

@omkarnathsingh
Copy link
Contributor Author

omkarnathsingh commented Jul 29, 2018

@john-preston any chance to support newer versions anytime soon?

@john-preston
Copy link
Member

@omkarnathsingh I'm not sure this is a good time investment :(

If I build a version on Ubuntu 14.04 it runs on all Ubuntu versions up till 18.04. But if I build version on Ubuntu 18.04 it is likely it won't run on the previous versions and I end up building an app for only the latest OS version, which is sad.

@nachfuellbar
Copy link

@john-preston so after next april this won't be an issue?
Or are you planing on further support for 14.04?
Just curious ;)

@john-preston
Copy link
Member

@nachfuellbar I still don't know how to decide on the client side if I can update to the next version or not.

I don't like the idea of dropping of some systems support with an option that they'll try to autoupdate and then just won't launch any longer.

So right now I don't know how to drop support of any of Linux systems.

@Aokromes
Copy link
Collaborator

Aokromes commented Sep 1, 2019

#4275

@Aokromes Aokromes closed this as completed Sep 1, 2019
@psychosys
Copy link

Edit links.txt and add -no-pie to your c++ command

@github-actions
Copy link

github-actions bot commented Mar 5, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants