View previous topic :: View next topic |
Author |
Message |
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Thu Jul 07, 2016 7:33 am Post subject: [solved]Gentoo FreeBSD: libarchive in error! |
|
|
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.
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 |
|
|
bstaletic Apprentice
Joined: 05 Apr 2014 Posts: 253
|
Posted: Thu Jul 07, 2016 7:23 pm Post subject: |
|
|
You've probably recently updated your compiler. What's the output of |
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Thu Jul 07, 2016 9:20 pm Post subject: |
|
|
bstaletic wrote: | You've probably recently updated your compiler. What's the output of |
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 |
|
|
bstaletic Apprentice
Joined: 05 Apr 2014 Posts: 253
|
Posted: Sun Jul 10, 2016 7:55 pm Post subject: |
|
|
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 |
|
|
324874 Apprentice
Joined: 26 Jul 2014 Posts: 168
|
Posted: Mon Jul 11, 2016 6:40 am Post subject: Quality Assurance! : app-arch/libarchive-3.2.1-r3 [~arch] |
|
|
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 |
|
|
zeldan n00b
Joined: 15 Jul 2016 Posts: 1 Location: Paraguay
|
Posted: Fri Jul 15, 2016 3:46 pm Post subject: |
|
|
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 |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Sat Aug 06, 2016 8:01 pm Post subject: |
|
|
Version app-arch/libarchive-3.2.1-r5 builds fine |
|
Back to top |
|
|
|