Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Gentoo FreeBSD: libarchive in error!
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
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Thu Jul 07, 2016 7:33 am    Post subject: [solved]Gentoo FreeBSD: libarchive in error! Reply with quote

When updating
Code:
[ebuild     U  ] app-arch/libarchive-3.2.1-r3:0/13::gentoo [3.1.2-r5:0/13::gentoo] USE="acl (bzip2) iconv (lzma) xattr (zlib) (-e2fsprogs) -expat -libressl -lz4% -lzo -nettle -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB

I got the annoying "C compiler cannot create executables" message. The only way, I think, to continue is to restore the whole system. Or rebuild libarchive-3.1.2-r5 using a binary package. :evil:

My running system:
Code:
 uname -a
FreeBSD localhost 10.3-r3-Gentoo FreeBSD Gentoo 10.3-r3 #0: Wed Jul  6 20:13:26 CEST 2016     root@localhost:/var/tmp/portage/sys-freebsd/freebsd-sources-10.3-r3/work/sys/amd64/compile/GENTOO  amd64


Last edited by Irre on Sat Aug 06, 2016 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 253

PostPosted: Thu Jul 07, 2016 7:23 pm    Post subject: Reply with quote

You've probably recently updated your compiler. What's the output of
Code:
gcc-config -l
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Thu Jul 07, 2016 9:20 pm    Post subject: Reply with quote

bstaletic wrote:
You've probably recently updated your compiler. What's the output of
Code:
gcc-config -l

The error is independent of gcc-version
Code:
[1] x86_64-gentoo-freebsd10.3-4.9.3
[2] x86_64-gentoo-freebsd10.3-5.4.0 *
Parts of error message, when trying to emerge most packages:
Code:
checking for x86_64-gentoo-freebsd10.3-gcc... gcc
cat: -: Failed to open '-'
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/xxxxxxx':
configure: error: C compiler cannot create executables

Restoring previous version makes it possible to "emerge" again:
Code:
emerge -k =app-arch/libarchive-3.1.2-r5

I had rebuilt everything, but the problem with libarchive remains.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 253

PostPosted: Sun Jul 10, 2016 7:55 pm    Post subject: Reply with quote

I have no other ideas, as I've only encountered that error when my gcc was not even set (which can happen on updates).
Back to top
View user's profile Send private message
324874
Apprentice
Apprentice


Joined: 26 Jul 2014
Posts: 168

PostPosted: Mon Jul 11, 2016 6:40 am    Post subject: Quality Assurance! : app-arch/libarchive-3.2.1-r3 [~arch] Reply with quote

Do you read the Gentoo Bugzilla guide ? I think we haven't enough information about the error to find the cause and help you.
Back to top
View user's profile Send private message
zeldan
n00b
n00b


Joined: 15 Jul 2016
Posts: 1
Location: Paraguay

PostPosted: Fri Jul 15, 2016 3:46 pm    Post subject: Reply with quote

an older version of librachive installs a symlink /usr/bin/cat -> /usr/bin/bsdcat
which has path precedence over /bin/cat
and causes this problem
you have to remove this symlink: rm /usr/bin/cat
and try to emerge new version of libarchive and other packages
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Fri Jul 15, 2016 7:49 pm    Post subject: Reply with quote

Edit: I have rebuilt everything, but the error remains, so I reported this: https://bugs.gentoo.org/show_bug.cgi?id=589876
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Sat Aug 06, 2016 8:01 pm    Post subject: Reply with quote

Version app-arch/libarchive-3.2.1-r5 builds fine :D
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