Opened 11 years ago

Last modified 11 years ago

#40177 new defect

cross-compilers are missing the fortran compiler

Reported by: sam.halliday@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: crossgcc

Description

cross-compilers such as x86_64-elf-gcc are missing the fortran compiler

https://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/crossgcc-1.0.tcl

It would be good to offer this as a variant (or as default).

As a workaround, I'd really appreciate it if gfortran cross-compiler instructions were available.

Change History (3)

comment:1 Changed 11 years ago by sam.halliday@…

when I add fortran to the list of languages when compiling x86_64 or i386 elf-gcc, I get errors such as

:info:build checking whether symbol versioning is supported... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. :info:build checking for string.h... (cached) yes :info:build checking for strings.h... (cached) yes :info:build checking sys/ipc.h usability... make[1]: * [configure-target-libgfortran] Error 1 :info:build make[1]: * Waiting for unfinished jobs.... :info:build no

comment:2 Changed 11 years ago by sam.halliday@…

I'm not so sure if this is a fortran problem... I disabled parallel builds and now this is what I (repeatedly) get

checking whether symbol versioning is supported... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: * [configure-target-libgfortran] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_x86_64-elf-gcc/x86_64-elf-gcc/work/build' make: * [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_x86_64-elf-gcc/x86_64-elf-gcc/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_x86_64-elf-gcc/x86_64-elf-gcc/work/build" && /usr/bin/make -w all Exit code: 2 Error: org.macports.build for port x86_64-elf-gcc returned: command execution failed Warning: targets not executed for x86_64-elf-gcc: org.macports.activate org.macports.build org.macports.destroot org.macports.install

Some googling (http://gcc.gnu.org/ml/gcc-help/2012-07/msg00018.html) suggests that this is because I don't have the glibc for the target platform. How do I get past this?

Last edited 11 years ago by sam.halliday@… (previous) (diff)

comment:3 Changed 11 years ago by sam.halliday@…

(deleted... incorrect information)

Last edited 11 years ago by sam.halliday@… (previous) (diff)
Note: See TracTickets for help on using tickets.