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

[perl #134189] configure: ubuntu without gcc

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
June 10, 2019 15:52
Subject:
[perl #134189] configure: ubuntu without gcc
Message ID:
rt-4.0.24-17165-1560181968-727.134189-15-0@perl.org
On Mon, 10 Jun 2019 14:51:28 GMT, hv wrote:
> 
> 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.
> 

This is puzzling.  I've been running Ubuntu 18.04.02 LTS for most of a year now.  I don't recall having to specifically install gcc.  However, I was upgrading the OS on a machine from 16.04.  Still, if anything I would suspect you'd have to manually install clang rather than gcc.

[snip]

>     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 '

What's also odd is that my Linux kernel is only at the 4.15 level -- notwithstanding the fact that I diligently apply all Software Updates.

$ uname -a
Linux zareason 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Thank you very much.

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

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=134189

Thread Previous | Thread Next


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