develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134189] configure: ubuntu without gcc

Thread Previous
From:
Hugo van der Sanden
Date:
June 10, 2019 14:51
Subject:
[perl #134189] configure: ubuntu without gcc
Message ID:
rt-4.0.24-16679-1560178289-896.134189-75-0@perl.org
# New Ticket Created by  Hugo van der Sanden 
# Please include the string:  [perl #134189]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134189 >



This is a bug report for perl from hv@crypt.org,
generated with the help of perlbug 1.41 running under perl 5.31.1.

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

On this new computer with a freshly installed Ubuntu (bionic), I tried
to build blead with clang and threads support, which fell over at the
linking stage missing references such as pthread_get_specific() and
some maths functions.

Tracking back, I found during configure that it had:
  Checking for optional libraries...
  What libraries to use? [none]

I then found that I hadn't actually installed gcc on this machine, so
the /usr/bin/cc link was also pointing at clang.

After installing gcc (which updated the /usr/bin/cc link), retrying the
clang build successfully found:
  What libraries to use? [-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc]	
.. to create the perl below.

Not sure if the fault here lies with me, perl or clang.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.31.1:

Configured by hv at Mon Jun 10 15:27:56 BST 2019.

Summary of my perl5 (revision 5 version 31 subversion 1) configuration:
  Commit id: 7948efd4698ec5639b8de124f836d9d3064798cb
  Platform:
    osname=linux
    osvers=4.18.0-21-generic
    archname=x86_64-linux-thread-multi
    uname='linux zen2 4.18.0-21-generic #22~18.04.1-ubuntu smp thu may 16 15:07:19 utc 2019 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Dcc=clang -Dprefix=/opt/scratch -Doptimize=-g -O3 -Dusethread -Duseithreads -DDEBUGGING -Dusedevel -Uversiononly'
    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='clang'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-g -O3'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='4.2.1 Compatible Clang 6.0.0 (tags/RELEASE_600/final)'
    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='clang'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/llvm-6.0/lib/clang/6.0.0/lib /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.27.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.27'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -g -O3 -L/usr/local/lib -fstack-protector-strong'


---
@INC for perl 5.31.1:
    lib
    /opt/scratch/lib/perl5/site_perl/5.31.1/x86_64-linux-thread-multi
    /opt/scratch/lib/perl5/site_perl/5.31.1
    /opt/scratch/lib/perl5/5.31.1/x86_64-linux-thread-multi
    /opt/scratch/lib/perl5/5.31.1
    /opt/scratch/lib/perl5/site_perl/5.28.1
    /opt/scratch/lib/perl5/site_perl

---
Environment for perl 5.31.1:
    HOME=/home/hv
    LANG=C
    LANGUAGE=en_GB:en
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/hv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About