public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "textdirected at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66534] New: Compilation error of gfortran building on YDL6.2
Date: Sun, 14 Jun 2015 11:13:00 -0000	[thread overview]
Message-ID: <bug-66534-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 66534
           Summary: Compilation error of gfortran building on YDL6.2
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: textdirected at gmail dot com
  Target Milestone: ---

Hello all,

When I tried to build gcc 5.0 downloaded from a mirror site, I encountered a
compilation error in building gfortran. I am working on YDL(yellow dog linux)
6.2 of an old iBook machine.

The console output is:

Checking multilib configuration for libgfortran...
make[2]: Entering directory `/home/zgzg/gcc-5.1.0/powerpc-unknown-linux
gnu/libgfortran'
make  all-am
make[3]: Entering directory
`/home/zgzg/gcc-5.1.0/powerpc-unknown-linux-gnu/libgfortran'
/bin/sh ./libtool  --tag=CC   --mode=compile
/home/zgzg/gcc-5.1.0/host-powerpc-unknown-linux-gnu/gcc/xgcc
-B/home/zgzg/gcc-5.1.0/host-powerpc-unknown-linux-gnu/gcc/
-B/opt/powerpc-unknown-linux-gnu/bin/ -B/opt/powerpc-unknown-linux-gnu/lib/
-isystem /opt/powerpc-unknown-linux-gnu/include -isystem
/opt/powerpc-unknown-linux-gnu/sys-include    -DHAVE_CONFIG_H -I.
-I../.././libgfortran  -iquote../.././libgfortran/io
-I../.././libgfortran/../gcc -I../.././libgfortran/../gcc/config 
-I../../host-powerpc-unknown-linux-gnu/gcc -I../.././libgfortran/../libgcc
-I../libgcc  -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 -O2 -MT string.lo -MD -MP -MF
.deps/string.Tpo -c -o string.lo `test -f 'runtime/string.c' || echo
'../.././libgfortran/'`runtime/string.c
libtool: compile:  /home/zgzg/gcc-5.1.0/host-powerpc-unknown-linux-gnu/gcc/xgcc
-B/home/zgzg/gcc-5.1.0/host-powerpc-unknown-linux-gnu/gcc/
-B/opt/powerpc-unknown-linux-gnu/bin/ -B/opt/powerpc-unknown-linux-gnu/lib/
-isystem /opt/powerpc-unknown-linux-gnu/include -isystem
/opt/powerpc-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../.././libgfortran -iquote../.././libgfortran/io
-I../.././libgfortran/../gcc -I../.././libgfortran/../gcc/config
-I../../host-powerpc-unknown-linux-gnu/gcc -I../.././libgfortran/../libgcc
-I../libgcc -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 -O2 -MT string.lo -MD -MP -MF
.deps/string.Tpo -c ../.././libgfortran/runtime/string.c  -fPIC -DPIC -o
.libs/string.o
make[3]: Leaving directory
`/home/zgzg/gcc-5.1.0/powerpc-unknown-linux-gnu/libgfortran'
make[2]: Leaving directory
`/home/zgzg/gcc-5.1.0/powerpc-unknown-linux-gnu/libgfortran'
make[1]: Leaving directory `/home/zgzg/gcc-5.1.0'
../.././libgfortran/runtime/string.c:96:1: error: static declaration of
'strnlen' follows non-static declaration
 strnlen (const char *s, size_t maxlen)
 ^
In file included from ../.././libgfortran/runtime/string.c:26:0:
/usr/include/string.h:249:15: note: previous declaration of 'strnlen' was here
 extern size_t strnlen (__const char *__string, size_t __maxlen)
               ^
In file included from /usr/include/string.h:417:0,
                 from ../.././libgfortran/runtime/string.c:26:
../.././libgfortran/runtime/string.c:110:1: error: expected identifier or '('
before '__extension__'
 strndup (const char *s, size_t n)
 ^
../.././libgfortran/runtime/string.c:96:1: warning: 'strnlen' defined but not
used [-Wunused-function]
 strnlen (const char *s, size_t maxlen)
 ^
make[3]: *** [string.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libgfortran] Error 2
make: *** [all] Error 2

Please help me

best regards,


             reply	other threads:[~2015-06-14 11:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-14 11:13 textdirected at gmail dot com [this message]
2015-06-14 11:33 ` [Bug fortran/66534] " schwab@linux-m68k.org
2015-08-30 10:42 ` dominiq at lps dot ens.fr
2015-09-06  8:08 ` textdirected at gmail dot com
2015-10-10  8:48 ` dominiq at lps dot ens.fr
2015-10-15  5:29 ` textdirected at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-66534-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).