This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/84880] New: [libgfortran] libgfortran fail to build on aarch64/arm 32bit cross toolchain


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84880

            Bug ID: 84880
           Summary: [libgfortran] libgfortran fail to build on aarch64/arm
                    32bit cross toolchain
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amker at gcc dot gnu.org
  Target Milestone: ---

After change at:
commit af3e0188d727fd2d2878d625dcd9919379a6374e
Author: kargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed Mar 14 00:56:48 2018 +0000

    2018-03-13  Steven G. Kargl  <kargl@gcc.gnu.org>

        * check.c (gfc_check_kill_sub):  Remove check for INTEGER(4) or (8).
        * intrinsic.c (add_functions): Remove reference to gfc_resolve_kill.
        (add_subroutines): Remove reference to gfc_resolve_kill_sub.
        * intrinsic.texi: Update documentation.
        * iresolve.c (gfc_resolve_kill, gfc_resolve_kill_sub): Remove.
        * trans-decl.c (gfc_build_intrinsic_function_decls):  Add
        gfor_fndecl_kill and gfor_fndecl_kill_sub
        * trans-intrinsic.c (conv_intrinsic_kill, conv_intrinsic_kill_sub): new
        functions.
        (gfc_conv_intrinsic_function): Use conv_intrinsic_kill.
            (gfc_conv_intrinsic_subroutine): Use conv_intrinsic_kill_sub.
        * trans.h: Declare gfor_fndecl_kill and gfor_fndecl_kill_sub.

    2018-03-13  Steven G. Kargl  <kargl@gcc.gnu.org>

        * libgfortran/gfortran.map: Remove _gfortran_kill_i4,
        _gfortran_kill_i4_sub, _gfortran_kill_i8, and _gfortran_kill_i8_sub.
        Add _gfortran_kill and _gfortran_kill_sub.
        * libgfortran/intrinsics/kill.c: Eliminate _gfortran_kill_i4,
        _gfortran_kill_i4_sub, _gfortran_kill_i8, and _gfortran_kill_i8_sub.
        Add _gfortran_kill and _gfortran_kill_sub.


    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258511
138bc75d-0d04-0410-961f-82ee72b054a4



libgfortran fail to build with below error message:

/.../obj/gcc2/./gcc/xgcc -B/.../obj/gcc2/./gcc/
-B/.../install/aarch64-none-elf/bin/
-B/.../install/aarch64-none-elf/lib/ -isystem
/.../install/aarch64-none-elf/include -isystem
/.../install/aarch64-none-elf/sys-include -DHAVE_CONFIG_H -I.
-I/.../gcc/libgfortran -iquote/.../gcc/libgfortran/io
-I/.../gcc/libgfortran/../gcc -I/.../gcc/libgfortran/../gcc/config
-I../../.././gcc -I/.../gcc/libgfortran/../libgcc -I../../libgcc
-I/.../gcc/libgfortran/../libbacktrace -I../../libbacktrace
-I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -ffunction-sections
-fdata-sections -O2 -mabi=ilp32 -MT kill.lo -MD -MP -MF .deps/kill.Tpo
-c /.../gcc/libgfortran/intrinsics/kill.c -o kill.o
/.../gcc/libgfortran/intrinsics/kill.c:54:22: error: conflicting types
for 'kill'
 extern GFC_INTEGER_4 kill (GFC_INTEGER_4, GFC_INTEGER_4);
                      ^~~~
In file included from /.../install/aarch64-none-elf/include/signal.h:6,
                 from /.../gcc/libgfortran/intrinsics/kill.c:28:
/.../install/aarch64-none-elf/include/sys/signal.h:176:5: note:
previous declaration of 'kill' was here
 int kill (pid_t, int);
     ^~~~
In file included from /.../gcc/libgfortran/intrinsics/kill.c:26:
/.../gcc/libgfortran/intrinsics/kill.c:55:14: error: conflicting types
for 'kill'
 export_proto(kill);
              ^~~~
/.../gcc/libgfortran/libgfortran.h:150:57: note: in definition of
macro 'sym_rename2'
 #define sym_rename2(old, ulp, new) extern __typeof(old) old __asm__(#ulp #new)
                                                         ^~~
/.../gcc/libgfortran/libgfortran.h:148:30: note: in expansion of macro
'sym_rename1'
 #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__, new)
                              ^~~~~~~~~~~
/.../gcc/libgfortran/libgfortran.h:195:26: note: in expansion of macro
'sym_rename'
 # define export_proto(x) sym_rename(x, PREFIX(x))
                          ^~~~~~~~~~
/.../gcc/libgfortran/intrinsics/kill.c:55:1: note: in expansion of
macro 'export_proto'
 export_proto(kill);
 ^~~~~~~~~~~~
In file included from /.../install/aarch64-none-elf/include/signal.h:6,
                 from /.../gcc/libgfortran/intrinsics/kill.c:28:
/.../install/aarch64-none-elf/include/sys/signal.h:176:5: note:
previous declaration of 'kill' was here
 int kill (pid_t, int);
     ^~~~
/.../gcc/libgfortran/intrinsics/kill.c:58:1: error: conflicting types for
'kill'
 kill (GFC_INTEGER_4 pid, GFC_INTEGER_4 signal)
 ^~~~
In file included from /.../install/aarch64-none-elf/include/signal.h:6,
                 from /.../gcc/libgfortran/intrinsics/kill.c:28:
/.../install/aarch64-none-elf/include/sys/signal.h:176:5: note:
previous declaration of 'kill' was here
 int kill (pid_t, int);
     ^~~~

The gcc is configured with:
gcc/configure --target=aarch64-none-elf --prefix=...
--with-gmp=.../host-tools --with-mpfr=.../host-tools
--with-mpc=.../host-tools --with-isl=.../host-tools
--with-pkgversion=unknown --disable-shared --disable-nls
--disable-threads --disable-tls --enable-checking=yes
--enable-languages=c,c++ --with-newlib
--enable-languages=c,c++,fortran

Also commented @https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00709.html

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]