Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fortran 95 compiler



On Wed, Jun 21, 2017 at 11:31:45PM +1000, matthew green wrote:
> thanks!  can you try see if gcc will take them? :)

I mostly stole them from newer versions of GCC :-)
the failures for newer FSF GCC (what pkgsrc has) seems to be libgcc
getting misconfigured.

I did see something interesting in the gcc7.1 linux--powerpc libgcc
configure script, where it'd pick float choice based on existing
compiler float options.

on powerpc and ARM, I get something like this:
configure:3686: /usr/pkgsrc/lang/gcc48/work/build/./gcc/xgcc -B/usr/pkgsrc/lang/gcc48/work/build/./gcc/ -B/usr/pkg/gcc48/powerpc--netbsd/bin/ -B/usr/pkg/gcc48/powerpc--netbsd/lib/ -isystem /usr/pkg/gcc48/powerpc--netbsd/include -isystem /usr/pkg/gcc48/powerpc--netbsd/sys-include  -msoft-float -fPIC -mstrict-align -g -O2 -I/usr/include -I/usr/pkg/include -pthread  -Wl,-R/usr/pkg/lib conftest.c  >&5
/usr/pkgsrc/lang/gcc48/work/build/./gcc/soft-float/libgcc_s.so: undefined reference to `__muldf3'
/usr/pkgsrc/lang/gcc48/work/build/./gcc/soft-float/libgcc_s.so: undefined reference to `__gesf2'
/usr/pkgsrc/lang/gcc48/work/build/./gcc/soft-float/libgcc_s.so: undefined reference to `__ltdf2'
/usr/pkgsrc/lang/gcc48/work/build/./gcc/soft-float/libgcc_s.so: undefined reference to `__gedf2'
..

on GCC 7.1 and mips64 I get:
(this one looks like it might be some command line tool differences,
gsed vs. nbsed?)

gmake[3]: Entering directory '/home/fly/pkgsrc/lang/gcc7/work/build/mips64el--netbsd/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
gmake[4]: Entering directory '/home/fly/pkgsrc/lang/gcc7/work/build/mips64el--netbsd/libgcc'
if [ -z "" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../gcc-7.1.0/libgcc; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/fly/pkgsrc/lang/gcc7/work/build/./gcc/xgcc -B/home/fly/pkgsrc/lang/gcc7/work/build/./gcc/ -B/home/fly/pkg/gcc7/mips64el--netbsd/bin/ -B/home/fly/pkg/gcc7/mips64el--netbsd/lib/ -isystem /home/fly/pkg/gcc7/mips64el--netbsd/include -isystem /home/fly/pkg/gcc7/mips64el--netbsd/sys-include   "; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; /home/fly/pkg/bin/gmake "AR=ar" "AR_FLAGS=rc" "CC=/home/fly/pkgsrc/lang/gcc7/work/build/./gcc/xgcc -B/home/fly/pkgsrc/lang/gcc7/work/build/./gcc/ -B/home/fly/pkg/gcc7/mips64el--netbsd/bin/ -B/home/fly/pkg/gcc7/mips64el--netbsd/lib/ -isystem /home/fly/pkg/gcc7/mips64el--netbsd/include -isystem /home/fly/pkg/gcc7/mips64el--netbsd/sys-include   " "CFLAGS=-g -O2 -I/usr/include -I/home/fly/pkg/include" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/usr/bin/install -c -o fly -g users" "INSTALL_DATA=/usr/bin/install -c -o fly -g users -m 644" "INSTALL_PROGRAM=/usr/bin/install -c -s -o fly -g users -m 755" "LDFLAGS=-Wl,-R/home/fly/pkg/lib" "LOADLIBES=" "RANLIB=ranlib" "SHELL=/bin/sh" "prefix=/home/fly/pkg/gcc7" "exec_prefix=/home/fly/pkg/gcc7" "libdir=/home/fly/pkg/gcc7/lib" "libsubdir=/home/fly/pkg/gcc7/lib/gcc/mips64el--netbsd/7.1.0" "tooldir=/home/fly/pkg/gcc7/mips64el--netbsd" \
                        CFLAGS="-g -O2 -I/usr/include -I/home/fly/pkg/include ${flags}" \
                        CCASFLAGS=" ${flags}" \
                        FCFLAGS=" ${flags}" \
                        FFLAGS="-O ${flags}" \
                        ADAFLAGS=" ${flags}" \
                        prefix="/home/fly/pkg/gcc7" \
                        exec_prefix="/home/fly/pkg/gcc7" \
                        GOCFLAGS="-O2 -g ${flags}" \
                        CXXFLAGS="-g -O2 -I/usr/include -I/home/fly/pkg/include ${flags}" \
                        LIBCFLAGS="-g -O2 -I/usr/include -I/home/fly/pkg/include ${flags}" \
                        LIBCXXFLAGS="-g -O2 -I/usr/include -I/home/fly/pkg/include -fno-implicit-templates ${flags}" \
                        LDFLAGS="-Wl,-R/home/fly/pkg/lib ${flags}" \
                        MULTIFLAGS="${flags}" \
                        DESTDIR="" \
                        INSTALL="/usr/bin/install -c -o fly -g users" \
                        INSTALL_DATA="/usr/bin/install -c -o fly -g users -m 644" \
                        INSTALL_PROGRAM="/usr/bin/install -c -s -o fly -g users -m 755" \
                        INSTALL_SCRIPT="/usr/bin/install -c -o fly -g users -m 755" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
gmake[4]: Leaving directory '/home/fly/pkgsrc/lang/gcc7/work/build/mips64el--netbsd/libgcc'
Mode = sf\|df
Suffix = si\|2\|3
/home/fly/pkgsrc/lang/gcc7/work/build/./gcc/xgcc -B/home/fly/pkgsrc/lang/gcc7/work/build/./gcc/ -B/home/fly/pkg/gcc7/mips64el--netbsd/bin/ -B/home/fly/pkg/gcc7/mips64el--netbsd/lib/ -isystem /home/fly/pkg/gcc7/mips64el--netbsd/include -isystem /home/fly/pkg/gcc7/mips64el--netbsd/sys-include    -g -O2 -I/usr/include -I/home/fly/pkg/include -O2  -g -O2 -I/usr/include -I/home/fly/pkg/include -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fPIC -I. -I. -I../.././gcc -I../../../gcc-7.1.0/libgcc -I../../../gcc-7.1.0/libgcc/. -I../../../gcc-7.1.0/libgcc/../gcc -I../../../gcc-7.1.0/libgcc/../include  -DHAVE_CC_TLS  -o addsf3.o -MT addsf3.o -MD -MP -MF addsf3.dep addsf3 -c ../../../gcc-7.1.0/libgcc/config/hardfp.c -fvisibility=hidden -DHIDE_EXPORTS -Wno-missing-prototypes
xgcc: error: addsf3: No such file or directory
../../../gcc-7.1.0/libgcc/config/t-hardfp:80: recipe for target 'addsf3.o' failed


Home | Main Index | Thread Index | Old Index