Bug 1397579 - /usr/bin/aarch64-linux-gnu-ld: cannot find crt1.o: No such file or directory
Summary: /usr/bin/aarch64-linux-gnu-ld: cannot find crt1.o: No such file or directory
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: cross-gcc
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Howells
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-22 21:04 UTC by Konrad Rzeszutek Wilk
Modified: 2019-01-09 12:54 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:26:30 UTC
Type: Bug


Attachments (Terms of Use)

Description Konrad Rzeszutek Wilk 2016-11-22 21:04:59 UTC
Description of problem:

Trying to cross-compile boot-wrapper-aarch64.git and I am getting an issue with configure complaining that the compiler can't compile. Looking at config.log I see it failing with:
/* confdefs.h */
#define PACKAGE_NAME "boot-wrapper"
#define PACKAGE_TARNAME "boot-wrapper"
#define PACKAGE_VERSION "v0.2"
#define PACKAGE_STRING "boot-wrapper v0.2"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "boot-wrapper"
#define VERSION "v0.2"
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}

And if I try to compile:
> aarch64-linux-gnu-gcc a.c -o a
/usr/bin/aarch64-linux-gnu-ld: cannot find crt1.o: No such file or directory
/usr/bin/aarch64-linux-gnu-ld: cannot find crti.o: No such file or directory
/usr/bin/aarch64-linux-gnu-ld: cannot find -lc
/usr/bin/aarch64-linux-gnu-ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status



Version-Release number of selected component (if applicable):

> rpm -qa | grep aarch
gcc-c++-aarch64-linux-gnu-6.1.1-2.fc25.x86_64
gcc-aarch64-linux-gnu-6.1.1-2.fc25.x86_64
binutils-aarch64-linux-gnu-2.27-3.fc25.x86_64
edk2-aarch64-20161105git3b25ca8-1.fc25.noarch
qemu-system-aarch64-2.7.0-7.fc25.x86_64

How reproducible:

100%

Steps to Reproduce:
1. git clone git://git.kernel.org/pub/scm/linux/kernel/git/mark/boot-wrapper-aarch64.git

2. autoreconf -i
3. ./configure

Actual results:
/usr/bin/aarch64-linux-gnu-ld: cannot find crt1.o: No such file or directory
/usr/bin/aarch64-linux-gnu-ld: cannot find crti.o: No such file or directory
/usr/bin/aarch64-linux-gnu-ld: cannot find -lc
/usr/bin/aarch64-linux-gnu-ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status


Expected results:

No errors.
Additional info:

Comment 1 Konrad Rzeszutek Wilk 2016-11-22 21:12:41 UTC
The configure invocation is:

~/ARM/boot-wrapper-aarch64.git>  ./configure --host=aarch64-linux-gnu --with-kernel-dir=$HOME/ARM/linux-build --with-dtb=$HOME/ARM/linux-build/arch/arm64/boot/dts/arm/foundation-v8.dtb 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for aarch64-linux-gnu-strip... aarch64-linux-gnu-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for /home/konrad/ARM/linux-build... yes
checking for /home/konrad/ARM/linux-build/arch/arm64/boot/dts/arm/foundation-v8.dtb... yes
checking for /home/konrad/ARM/linux-build/arch/arm64/boot/Image... yes
checking for aarch64-linux-gnu-gcc... aarch64-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/home/konrad/ARM/boot-wrapper-aarch64.git':
configure: error: C compiler cannot create executables
See `config.log' for more details


I also tried with the arm-linux-gnu:

  ./configure --host=arm-linux-gnu --with-kernel-dir=$HOME/ARM/linux-build --with-dtb=$HOME/ARM/linux-build/arch/arm64/boot/dts/arm/foundation-v8.dtb 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-gnu-strip... arm-linux-gnu-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for /home/konrad/ARM/linux-build... yes
checking for /home/konrad/ARM/linux-build/arch/arm64/boot/dts/arm/foundation-v8.dtb... yes
checking for /home/konrad/ARM/linux-build/arch/arm64/boot/Image... yes
checking for arm-linux-gnu-gcc... arm-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/home/konrad/ARM/boot-wrapper-aarch64.git':
configure: error: C compiler cannot create executables
See `config.log' for more details

With these RPMs:
$rpm -qa | grep arm
gcc-arm-linux-gnu-6.1.1-2.fc25.x86_64
glibc-arm-linux-gnu-2.24-2.fc25.noarch
binutils-arm-linux-gnu-2.27-3.fc25.x86_64

Comment 2 Fedora End Of Life 2017-11-16 19:32:59 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-12-12 10:26:30 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.