Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure script does not know GCC 8.x #16677

Closed
p5pRT opened this issue Sep 1, 2018 · 4 comments
Closed

Configure script does not know GCC 8.x #16677

p5pRT opened this issue Sep 1, 2018 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 1, 2018

Migrated from rt.perl.org#133490 (status was 'open')

Searchable as RT133490$

@p5pRT
Copy link
Author

p5pRT commented Sep 1, 2018

From xry111@mengyan1223.wang

Created by xry111@mengyan1223.wang

When I was building Perl I noticed a strange message​:

  You seem not to have gcc 4.x or later, not adding -D_FORTIFY_SOURCE.

But I had GCC 8.2. Reading Configure script I found​:

  case "$gccversion" in
  [4567].*) ... ...

So it seems the Configure script doesn't know GCC 8.x at all :(.

Perl Info

Flags:
    category=install
    severity=low

Site configuration information for perl 5.28.0:

Configured by root at Fri Aug  3 02:33:06 UTC 2018.

Summary of my perl5 (revision 5 version 28 subversion 0) configuration:

  Platform:
    osname=linux
    osvers=4.18.0-rc7+
    archname=x86_64-linux-thread-multi
    uname='linux xry111-laptop 4.18.0-rc7+ #1 smp wed aug 1 15:30:39 cst 2018 x86_64 gnulinux '
    config_args='-des -Dprefix=/usr -Dvendorprefix=/usr -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
-Dpager=/usr/bin/less -isR -Duseshrplib -Dusethreads'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-O2'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include'
    ccversion=''
    gccversion='8.2.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed /usr/lib /lib/../lib /usr/lib/../lib
/lib
    libs=-lpthread -lgdbm -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.28.so
    so=so
    useshrplib=true
    libperl=libperl.so
    gnulibc_version='2.28'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.28.0/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'



@INC for perl 5.28.0:
    /usr/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.28.0
    /usr/lib/perl5/vendor_perl/5.28.0/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.28.0
    /usr/lib/perl5/5.28.0/x86_64-linux-thread-multi
    /usr/lib/perl5/5.28.0


Environment for perl 5.28.0:
    HOME=/root
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

@p5pRT
Copy link
Author

p5pRT commented Sep 2, 2018

From @Tux

When I was building Perl I noticed a strange message​:

You seem not to have gcc 4\.x or later\, not adding \-D\_FORTIFY\_SOURCE\.

But I had GCC 8.2. Reading Configure script I found​:

case "$gccversion" in
\[4567\]\.\*\)    \.\.\. \.\.\.

So it seems the Configure script doesn't know GCC 8.x at all :(.

Fixed in

commit ae19550 (HEAD -> blead, origin/blead, origin/HEAD)
Author​: H.Merijn Brand <h.m.brand@​xs4all.nl>
Date​: Sun Sep 2 11​:00​:16 2018 +0200

  Add gcc-8 and gcc-9 for FORTIFY_SOURCE

--
H.Merijn Brand http​://tux.nl Perl Monger http​://amsterdam.pm.org/
using perl5.00307 .. 5.29 porting perl5 on HP-UX, AIX, and openSUSE
http​://mirrors.develooper.com/hpux/ http​://www.test-smoke.org/
http​://qa.perl.org http​://www.goldmark.org/jeff/stupid-disclaimers/

@p5pRT
Copy link
Author

p5pRT commented Sep 2, 2018

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Sep 3, 2018

From @jkeenan

On Sat, 01 Sep 2018 03​:18​:02 GMT, xry111@​mengyan1223.wang wrote​:

This is a bug report for perl from xry111@​mengyan1223.wang,
generated with the help of perlbug 1.41 running under perl 5.28.0.

-----------------------------------------------------------------
[Please describe your issue here]

When I was building Perl I noticed a strange message​:

You seem not to have gcc 4.x or later, not adding -D_FORTIFY_SOURCE.

But I had GCC 8.2. Reading Configure script I found​:

case "$gccversion" in
[4567].*) ... ...

So it seems the Configure script doesn't know GCC 8.x at all :(.

Xi Ruoyao​:

Can you build Perl 5 blead and let us know if Tux's patch has fixed your problem?

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants