[MacPorts] #42375: i386-elf-gcc error while compiling: cannot find crt0.o

MacPorts noreply at macports.org
Sun Apr 12 22:18:24 UTC 2020


#42375: i386-elf-gcc error while compiling:  cannot find crt0.o
----------------------------+----------------------
  Reporter:  waves_no.13@…  |      Owner:  (none)
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.2.1
Resolution:                 |   Keywords:
      Port:  i386-elf-gcc   |
----------------------------+----------------------

Comment (by ryandesign):

 Reading through the crossgcc-1.0 portgroup, it looks like it just runs
 ./configure and make once. Reading various documents*, I don't think
 that's enough to build a functional cross compiler. We run ./configure
 with --target set to the cross-compiling target, which is indeed what we
 need to do to build gcc. But we apparently also need to run ./configure
 with --build set to the build machine target and --host set to the cross-
 compiling target in order to build a proper glibc.

 *\\
 https://rtime.felk.cvut.cz/hw/index.php/How_to_build_GNU_cross-compilers
 \\
 https://crossgcc.s0ufcgwqre.narkive.com/5dDCu94I/cross-compiled-native-
 compiler-ld-can-t-find-crt1-o \\
 https://www.gnu.org/software/libc/manual/html_node/Configuring-and-
 compiling.html \\
 https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/

-- 
Ticket URL: <https://trac.macports.org/ticket/42375#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list