Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues with compiles failed on ninja [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Tue Jan 24, 2023 11:26 pm    Post subject: Issues with compiles failed on ninja [SOLVED] Reply with quote

Hello!
Please I need your help!

In "dev-libs/libzip" and "kde-frameworks/karchive" I have the same failed in compile phase:

Quote:

* ERROR: dev-libs/libzip-1.9.2::gentoo failed (compile phase):
* ninja -v -j5 -l0 failed

* ERROR: dev-libs/libzip-1.9.2::gentoo failed (compile phase):
* ninja -v -j5 -l0 failed


In the next links show the complete output and portage info:
https://pastebin.com/vcjR43bv
https://pastebin.com/xQvgs727

What could be the problem? what is the solution?

Thank you!!


Last edited by natrix on Wed Jan 25, 2023 6:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23081

PostPosted: Wed Jan 25, 2023 12:00 am    Post subject: Reply with quote

Based on the output provided, it appears both of these packages failed in the compile phase. If you need more specific help, please follow the full instructions shown in the first pastebin. You provided only the terminal output for those packages, but not the full build log. Without the build log, we have no error messages from which to work.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Wed Jan 25, 2023 5:08 am    Post subject: Reply with quote

Hi Hu!
Thanks for you answer

I share the log compile, both has a "FAILED", but I can't understard the cause:

* libzip
https://pastebin.com/FkBUZhkk

* karchive
https://pastebin.com/5qspcGbR
Back to top
View user's profile Send private message
hdcg
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2013
Posts: 121

PostPosted: Wed Jan 25, 2023 6:02 am    Post subject: Reply with quote

Hi natrix,

the actual error is both times the same

* libzip
Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_PC32 against symbol `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status


* karchive
Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_PC32 against symbol `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status


Where is /usr/local/lib/libbz2.a coming from and how has it been compiled? Do you want to use this local version by intention?

Best Regards,
Holger


Last edited by hdcg on Wed Jan 25, 2023 6:09 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31459
Location: here

PostPosted: Wed Jan 25, 2023 6:06 am    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2119

PostPosted: Wed Jan 25, 2023 7:31 am    Post subject: Reply with quote

fedeliallalinea wrote:
Moved from Installing Gentoo to Portage & Programming.


It might constitute "unsupported". Anyway, yes, installing libraries - especially ones where you know the system has its own version - to /usr/local is asking for trouble.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31459
Location: here

PostPosted: Wed Jan 25, 2023 7:50 am    Post subject: Reply with quote

sam_ wrote:
It might constitute "unsupported". Anyway, yes, installing libraries - especially ones where you know the system has its own version - to /usr/local is asking for trouble.

Probably the OP no longer remembers that he/she installed a library manually, or at least that is in most cases, so there is no intention to use it instead of the system one for that for me it should not be moved to "Unsupported Software".
Also, leaving it in this forum makes users aware the problem that can occur installing something manually.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Wed Jan 25, 2023 5:25 pm    Post subject: Reply with quote

Hi everyone!
Thanks for the important comments!!

Quote:
Where is /usr/local/lib/libbz2.a coming from and how has it been compiled? Do you want to use this local version by intention?


This finding is very strange for my:
All programs depend on Portage. I have no external programs and I never changed their default settings.

I search the location and found this:

Code:
/usr/local/bin # ls
bunzip2  bzcat  bzcmp  bzdiff  bzegrep  bzfgrep  bzgrep  bzip2  bzip2recover  bzless  bzmore  rake  rdoc  ri


What is wrong? How delete the instalation on "/usr/local/".

Thanks!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31459
Location: here

PostPosted: Wed Jan 25, 2023 5:43 pm    Post subject: Reply with quote

natrix wrote:
What is wrong? How delete the instalation on "/usr/local/".

Check if listed command in /usr/local/bin exists also in /usr/bin (especially the bz* commands) and if is the case you can remove (or move in a temporary directory) the content of /usr/local/bin.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Wed Jan 25, 2023 6:00 pm    Post subject: Reply with quote

Hi!

The files exits in "/usr/bin" but I replaced it anyway. Now both programs compile!

And I compile again bzip2 and doesn't build in "/usr/local"

Thanks so much!

what happened?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31459
Location: here

PostPosted: Wed Jan 25, 2023 6:10 pm    Post subject: Reply with quote

natrix wrote:
what happened?

I have no idea, but usually files are installed there when you manually compile/install some program.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Wed Jan 25, 2023 6:19 pm    Post subject: Reply with quote

Strange!

Thanks!
Back to top
View user's profile Send private message
keekkenen
n00b
n00b


Joined: 05 Oct 2024
Posts: 32

PostPosted: Tue Nov 12, 2024 5:50 pm    Post subject: Reply with quote

natrix wrote:
Strange!

Thanks!

It's really strange, I got it yesterday.
list bz-apps in /usr/local/bin:

bunzip2  bzcat  bzcmp  bzdiff  bzegrep  bzfgrep  bzgrep  bzip2  bzip2recover  bzless  bzmore

and library in unexpected place
/usr/local:
libbz2.a

I deleted all of it and everything is good now.
_________________
7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum