public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97692] New: GNU Fortran is not working
@ 2020-11-03 11:26 nju044 at hotmail dot com
  2020-11-03 11:27 ` [Bug fortran/97692] " nju044 at hotmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-11-03 11:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97692
           Summary: GNU Fortran is not working
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nju044 at hotmail dot com
  Target Milestone: ---

Created attachment 49492
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49492&action=edit
build error log

I'm integrating meta-ros into xilinx zynqmp.

Console output snapshot:
| checking whether -lc should be explicitly linked in... no
| checking dynamic linker characteristics... GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking for shl_load... no
| checking for shl_load in -ldld... no
| checking for dlopen... no
| checking for dlopen in -ldl... yes
| checking whether a program can dlopen itself... cross
| checking whether stripping libraries is possible... yes
| checking if libtool supports shared libraries... yes
| checking whether to build shared libraries... yes
| checking whether to build static libraries... no
| checking for aarch64-xilinx-linux-gfortran... aarch64-xilinx-linux-gfortran 
-march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong 
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
| checking whether we are using the GNU Fortran compiler... no
| checking whether aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
accepts -g... no
| checking if libtool supports shared libraries... yes
| checking whether to build shared libraries... yes
| checking whether to build static libraries... no
| libtool.m4: error: problem compiling FC test program
| checking for aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
option to produce PIC...
| checking if aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
static flag  works... no
| checking if aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
supports -c -o file.o... no
| checking if aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
supports -c -o file.o... (cached) no
| checking whether the aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
linker (aarch64-xilinx-linux-ld
--sysroot=/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
) supports shared libraries... yes
| checking dynamic linker characteristics... (cached) GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking whether the GNU Fortran compiler is working... no
| configure: error: GNU Fortran is not working; please report a bug in
http://gcc.gnu.org/bugzilla, attaching
/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/gcc-9.2.0/build.aarch64-xilinx-linux.aarch64-xilinx-linux/aarch64-xilinx-linux/libgfortran/config.log

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
@ 2020-11-03 11:27 ` nju044 at hotmail dot com
  2020-11-03 11:45 ` jakub at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-11-03 11:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from ninos <nju044 at hotmail dot com> ---
Created attachment 49493
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49493&action=edit
gfortran config log

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
  2020-11-03 11:27 ` [Bug fortran/97692] " nju044 at hotmail dot com
@ 2020-11-03 11:45 ` jakub at gcc dot gnu.org
  2020-11-03 13:41 ` nju044 at hotmail dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-11-03 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
aarch64-xilinx-linux-gfortran: command not found
seems like user error.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
  2020-11-03 11:27 ` [Bug fortran/97692] " nju044 at hotmail dot com
  2020-11-03 11:45 ` jakub at gcc dot gnu.org
@ 2020-11-03 13:41 ` nju044 at hotmail dot com
  2020-11-04  1:12 ` nju044 at hotmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-11-03 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from ninos <nju044 at hotmail dot com> ---
(In reply to Jakub Jelinek from comment #2)
> aarch64-xilinx-linux-gfortran: command not found
> seems like user error.

FYI
target system: arm64-xilinx-linux
build system: ubuntu 16.04
yocto version: zeus (git commit id unkown, because xilinx provides it)
meta-ros version: https://github.com/ros/meta-ros/tree/zeus, git_commit_id
5707a46
action: use xilinx "petalinux-tools" (wrapping on bitbake) to integrate
meta-ros into xilinx device.

I think aarch64-xilinx-linux-gfortran is the gfortran used in target system, so
it can't be found in build system, which is user system.
Do you know why gfortran is thought to be misconfigured as indicated by
"/home/kn/xlxnew/petalinux/map_loc_os/zcu104/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/gcc-9.2.0/build.aarch64-xilinx-linux.aarch64-xilinx-linux/aarch64-xilinx-linux/libgfortran/config.log"
(attached as "gfortran config log") ?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (2 preceding siblings ...)
  2020-11-03 13:41 ` nju044 at hotmail dot com
@ 2020-11-04  1:12 ` nju044 at hotmail dot com
  2020-11-04  8:49 ` schwab@linux-m68k.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-11-04  1:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from ninos <nju044 at hotmail dot com> ---
(In reply to Jakub Jelinek from comment #2)
> aarch64-xilinx-linux-gfortran: command not found
> seems like user error.


I grep "command not found" and find more suspectible items, especially item
"19":
    ac_cv_fc_compiler_gnu=no
    ac_cv_func_dlopen=no
    ac_cv_func_shl_load=no
    ac_cv_header_minix_config_h=no 
    ac_cv_lib_dld_shl_load=no
    ac_cv_prog_fc_g=no
    lt_cv_archive_cmds_need_lc=no
    lt_cv_prog_compiler_c_o_FC=no
    lt_cv_prog_compiler_rtti_exceptions=no
    lt_cv_prog_compiler_static_works_FC=no
    lt_cv_shlibpath_overrides_runpath=no
    enable_static='no'

I googled "ac_cv_fc_compiler_gnu", think it means GNU Fortran Compiler. If
true, the fortran compiler is not enabled?

For detailed suspectible items, see below (grep from "gfortran config log"): 

1. --enable-version-specific-runtime-libs is no

2. "enable maintainer-specific portions of Makefiles" is no

3. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-V >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option '-V'
   aarch64-xilinx-linux-gcc: fatal error: no input files

4. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-qversion >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option
'-qversion'; did you mean '--version'?
   aarch64-xilinx-linux-gcc: fatal error: no input files

5. aarch64-xilinx-linux-gcc -E
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
 -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong 
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
conftest.c
   conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
       9 | #include <ac_nonexistent.h>

6. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-c  -O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0=/usr/src/debug/libgfortran/9.2.0-r0
                    
-fdebug-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0=/usr/src/debug/libgfortran/9.2.0-r0
                    
-fdebug-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot=
                    
-fdebug-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot-native=
  conftest.c >&5
   conftest.c:52:10: fatal error: minix/config.h: No such file or directory
      52 | #include <minix/config.h>
failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Fortran Runtime Library"
| #define PACKAGE_TARNAME "libgfortran"
| #define PACKAGE_VERSION "0.3"
| #define PACKAGE_STRING "GNU Fortran Runtime Library 0.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgfortran/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>

7. aarch64-xilinx-linux-gcc -E
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
 -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong 
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
conftest.c
   conftest.c:19:10: fatal error: minix/config.h: No such file or directory
      19 | #include <minix/config.h>
failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Fortran Runtime Library"
| #define PACKAGE_TARNAME "libgfortran"
| #define PACKAGE_VERSION "0.3"
| #define PACKAGE_STRING "GNU Fortran Runtime Library 0.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgfortran/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <minix/config.h>

8. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-V >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option '-V'
   aarch64-xilinx-linux-gcc: fatal error: no input files

9. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-qversion >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option
'-qversion'; did you mean '--version'?
   aarch64-xilinx-linux-gcc: fatal error: no input files

10. "CET support" is no

11. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-o conftest -std=gnu11  -O2 -pipe -g -feliminate-unused-debug-types
-fmacro-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0=/usr/src/debug/libgfortran/9.2.0-r0
                    
-fdebug-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0=/usr/src/debug/libgfortran/9.2.0-r0
                    
-fdebug-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot=
                    
-fdebug-prefix-map=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot-native=
    -mclear-hwcap conftest.c  >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option
'-mclear-hwcap'
failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Fortran Runtime Library"
| #define PACKAGE_TARNAME "libgfortran"
| #define PACKAGE_VERSION "0.3"
| #define PACKAGE_STRING "GNU Fortran Runtime Library 0.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgfortran/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| return 0;
|   ;
|   return 0;
| }

12.
/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld:
/tmp/ccvyGu7H.o: in function `main':
  
/usr/src/debug/libgfortran/9.2.0-r0/gcc-9.2.0/build.aarch64-xilinx-linux.aarch64-xilinx-linux/aarch64-xilinx-linux/libgfortran/conftest.c:60:
undefined reference to `shl_load'
   collect2: error: ld returned 1 exit status
failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Fortran Runtime Library"
| #define PACKAGE_TARNAME "libgfortran"
| #define PACKAGE_VERSION "0.3"
| #define PACKAGE_STRING "GNU Fortran Runtime Library 0.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgfortran/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| /* Define shl_load to an innocuous variant, in case <limits.h> declares
shl_load.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define shl_load innocuous_shl_load
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char shl_load (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef shl_load
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char shl_load ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_shl_load || defined __stub___shl_load
| choke me
| #endif
| 
| int
| main ()
| {
| return shl_load ();
|   ;
|   return 0;
| }

13.
/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld:
cannot find -ldld
   collect2: error: ld returned 1 exit status
failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Fortran Runtime Library"
| #define PACKAGE_TARNAME "libgfortran"
| #define PACKAGE_VERSION "0.3"
| #define PACKAGE_STRING "GNU Fortran Runtime Library 0.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgfortran/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char shl_load ();
| int
| main ()
| {
| return shl_load ();
|   ;
|   return 0;
| }

14.
/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux/../../libexec/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/9.2.0/ld:
/tmp/ccTAVrwg.o: in function `main':
  
/usr/src/debug/libgfortran/9.2.0-r0/gcc-9.2.0/build.aarch64-xilinx-linux.aarch64-xilinx-linux/aarch64-xilinx-linux/libgfortran/conftest.c:60:
undefined reference to `dlopen'
   collect2: error: ld returned 1 exit status
failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Fortran Runtime Library"
| #define PACKAGE_TARNAME "libgfortran"
| #define PACKAGE_VERSION "0.3"
| #define PACKAGE_STRING "GNU Fortran Runtime Library 0.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgfortran/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define dlopen innocuous_dlopen
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char dlopen (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef dlopen
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char dlopen ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_dlopen || defined __stub___dlopen
| choke me
| #endif
| 
| int
| main ()
| {
| return dlopen ();
|   ;
|   return 0;
| }

16. "build static libraries" is no

17. checking whether we are using the GNU Fortran compiler
configure:13223: aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-c   conftest.F >&5
  
../../../../../../../../work-shared/gcc-9.2.0-r0/gcc-9.2.0/libgfortran/configure:
line 1960: aarch64-xilinx-linux-gfortran: command not found
failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
| 
|       end

18. configure:13249: aarch64-xilinx-linux-gfortran  -march=armv8-a+crc
-mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-c -g  conftest.f >&5
  
../../../../../../../../work-shared/gcc-9.2.0-r0/gcc-9.2.0/libgfortran/configure:
line 1960: aarch64-xilinx-linux-gfortran: command not found
failed program was:
|       program main
| 
|       end

19. ac_cv_fc_compiler_gnu=no
    ac_cv_func_dlopen=no
    ac_cv_func_shl_load=no
    ac_cv_header_minix_config_h=no 
    ac_cv_lib_dld_shl_load=no
    ac_cv_prog_fc_g=no
    lt_cv_archive_cmds_need_lc=no
    lt_cv_prog_compiler_c_o_FC=no
    lt_cv_prog_compiler_rtti_exceptions=no
    lt_cv_prog_compiler_static_works_FC=no
    lt_cv_shlibpath_overrides_runpath=no
    enable_static='no'

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (3 preceding siblings ...)
  2020-11-04  1:12 ` nju044 at hotmail dot com
@ 2020-11-04  8:49 ` schwab@linux-m68k.org
  2020-11-04  9:05 ` nju044 at hotmail dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2020-11-04  8:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
You need to run configure in the toplevel directory.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (4 preceding siblings ...)
  2020-11-04  8:49 ` schwab@linux-m68k.org
@ 2020-11-04  9:05 ` nju044 at hotmail dot com
  2020-11-04  9:14 ` schwab@linux-m68k.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-11-04  9:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from ninos <nju044 at hotmail dot com> ---
(In reply to Andreas Schwab from comment #5)
> You need to run configure in the toplevel directory.

erh... I don't know what to do to run configure in the toplevel directory.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (5 preceding siblings ...)
  2020-11-04  9:05 ` nju044 at hotmail dot com
@ 2020-11-04  9:14 ` schwab@linux-m68k.org
  2020-11-21  4:28 ` nju044 at hotmail dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2020-11-04  9:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Andreas Schwab <schwab@linux-m68k.org> ---
https://gcc.gnu.org/install/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (6 preceding siblings ...)
  2020-11-04  9:14 ` schwab@linux-m68k.org
@ 2020-11-21  4:28 ` nju044 at hotmail dot com
  2020-12-07 18:46 ` dominiq at lps dot ens.fr
  2020-12-15  1:52 ` nju044 at hotmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-11-21  4:28 UTC (permalink / raw)
  To: gcc-bugs

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

ninos <nju044 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #8 from ninos <nju044 at hotmail dot com> ---
(In reply to Andreas Schwab from comment #7)
> https://gcc.gnu.org/install/

I have another project last week, so sorry for the late reply.

I've tried, but still failed. 
Warnings and errors are as follows(searched from log.do_configure):

   1. configure: WARNING: unrecognized options: --disable-dependency-tracking,
--with-libtool-sysroot, --enable-languages, --enable-threads,
--enable-default-pie, --enable-c99, --enable-long-long, --enable-symvers,
--enable-libstdcxx-pch, --without-local-prefix, --enable-lto, --disable-libssp,
--enable-libitm, --disable-bootstrap, --disable-libmudflap, --with-system-zlib,
--with-linker-hash-style, --enable-linker-build-id, --with-ppl, --with-cloog,
--enable-checking, --enable-cheaders, --without-isl, --with-sysroot,
--with-build-sysroot, --disable-nls, --with-glibc-version,
--enable-initfini-array, --enable-__cxa_atexit

   2. configure: error: GNU Fortran is not working

   3. libtool.m4: error: problem compiling FC test program

Any ideas?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (7 preceding siblings ...)
  2020-11-21  4:28 ` nju044 at hotmail dot com
@ 2020-12-07 18:46 ` dominiq at lps dot ens.fr
  2020-12-15  1:52 ` nju044 at hotmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-12-07 18:46 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-12-07
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
8. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-V >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option '-V'
   aarch64-xilinx-linux-gcc: fatal error: no input files

9. aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
-Werror=format-security
--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
-qversion >&5
   aarch64-xilinx-linux-gcc: error: unrecognized command line option
'-qversion'; did you mean '--version'?
   aarch64-xilinx-linux-gcc: fatal error: no input files

These seem user's errors. Why do you want to use

--sysroot=/home/base/zynqmp/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot?

If this not a user's error, it is at least a target problem.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug fortran/97692] GNU Fortran is not working
  2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
                   ` (8 preceding siblings ...)
  2020-12-07 18:46 ` dominiq at lps dot ens.fr
@ 2020-12-15  1:52 ` nju044 at hotmail dot com
  9 siblings, 0 replies; 11+ messages in thread
From: nju044 at hotmail dot com @ 2020-12-15  1:52 UTC (permalink / raw)
  To: gcc-bugs

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

ninos <nju044 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|WAITING                     |RESOLVED

--- Comment #10 from ninos <nju044 at hotmail dot com> ---
It is caused by xilinx bsp setting. Close for now.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-12-15  1:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 11:26 [Bug fortran/97692] New: GNU Fortran is not working nju044 at hotmail dot com
2020-11-03 11:27 ` [Bug fortran/97692] " nju044 at hotmail dot com
2020-11-03 11:45 ` jakub at gcc dot gnu.org
2020-11-03 13:41 ` nju044 at hotmail dot com
2020-11-04  1:12 ` nju044 at hotmail dot com
2020-11-04  8:49 ` schwab@linux-m68k.org
2020-11-04  9:05 ` nju044 at hotmail dot com
2020-11-04  9:14 ` schwab@linux-m68k.org
2020-11-21  4:28 ` nju044 at hotmail dot com
2020-12-07 18:46 ` dominiq at lps dot ens.fr
2020-12-15  1:52 ` nju044 at hotmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).