develooper Front page | perl.perl5.porters | Postings from September 2016

[perl #129354] Default configuration on x86_64-linux-gnu cannotbuild binary extension modules

Thread Next
From:
Daniel Schepler
Date:
September 25, 2016 22:31
Subject:
[perl #129354] Default configuration on x86_64-linux-gnu cannotbuild binary extension modules
Message ID:
rt-4.0.24-7230-1474836465-1756.129354-75-0@perl.org
# New Ticket Created by  Daniel Schepler 
# Please include the string:  [perl #129354]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129354 >


This is a bug report for perl from dschepler@gmail.com,
generated with the help of perlbug 1.40 running under perl 5.24.0.


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

For example, when subsequently configuring texinfo, I got these errors
under tp/Texinfo/Convert/XSParagraph:

/bin/sh ./libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib  -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE"  -MT TestXS_la-TestXS.lo
-MD -MP -MF .deps/TestXS_la-TestXS.Tpo -c -o TestXS_la-TestXS.lo `test
-f 'TestXS.c' || echo
'../../../../../tp/Texinfo/Convert/XSParagraph/'`TestXS.c
libtool: compile:  cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c  -fPIC -DPIC -o
.libs/TestXS_la-TestXS.o
libtool: compile:  cc -DHAVE_CONFIG_H -I.
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph
-I../../../../../tp/Texinfo/Convert/XSParagraph/lib -I./lib -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE -MT TestXS_la-TestXS.lo -MD
-MP -MF .deps/TestXS_la-TestXS.Tpo -c
../../../../../tp/Texinfo/Convert/XSParagraph/TestXS.c -o
TestXS_la-TestXS.o >/dev/null 2>&1
mv -f .deps/TestXS_la-TestXS.Tpo .deps/TestXS_la-TestXS.Plo
/bin/sh ./libtool  --tag=CC   --mode=link cc -fwrapv
-fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DVERSION=\"6.3\" -DXS_VERSION=\"6.3\"
"-I/usr/lib/perl5/5.24.0/x86_64-linux/CORE"  -no-undefined
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl -avoid-version
-module -Wl,-E  -o TestXS.la -rpath /usr/lib/texinfo
TestXS_la-TestXS.lo
libtool: link: cc -shared  -fPIC -DPIC  .libs/TestXS_la-TestXS.o
-L/usr/lib/perl5/5.24.0/x86_64-linux/CORE -lperl
-fstack-protector-strong -Wl,-E   -Wl,-soname -Wl,TestXS.so -o
.libs/TestXS.so
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(op.o): relocation
R_X86_64_32S against symbol `PL_opargs' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perl.o): relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(gv.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(toke.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perly.o): relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pad.o): relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regcomp.o):
relocation R_X86_64_32S against symbol `PL_utf8skip' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dump.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(util.o): relocation
R_X86_64_32S against symbol `PL_fold' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mg.o): relocation
R_X86_64_32 against `.text' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mro_core.o):
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(keywords.o):
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(hv.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(av.o): relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_hot.o):
relocation R_X86_64_32 against undefined symbol `PL_sv_undef' can not
be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(sv.o): relocation
R_X86_64_32S against undefined symbol `PL_sv_undef' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp.o): relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(scope.o): relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_ctl.o):
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sys.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doop.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(doio.o): relocation
R_X86_64_32 against symbol `PL_memory_wrap' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(regexec.o):
relocation R_X86_64_32S against `.rodata' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(utf8.o): relocation
R_X86_64_32S against symbol `PL_charclass' can not be used when making
a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(taint.o): relocation
R_X86_64_32 against symbol `PL_no_security' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(deb.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(universal.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(perlio.o):
relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(numeric.o):
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(mathoms.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(locale.o):
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_pack.o):
relocation R_X86_64_32S against symbol `PL_uuemap' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(pp_sort.o):
relocation R_X86_64_32 against `.text' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(caretx.o):
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(dquote.o):
relocation R_X86_64_32S against symbol `PL_charclass' can not be used
when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/perl5/5.24.0/x86_64-linux/CORE/libperl.a(time64.o):
relocation R_X86_64_32S against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile:916: TestXS.la] Error 1
checking whether we can build Perl extension (XS) modules... no
checking for prove... prove
checking parser tests requirements... no


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

Configured by daniel at Sat Sep 24 12:22:49 PDT 2016.

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

  Platform:
    osname=linux, osvers=4.5.2, archname=x86_64-linux
    uname='linux frobnitz 4.5.2 #1 smp fri apr 29 08:43:46 pdt 2016
x86_64 gnulinux '
    config_args='-de -Dprefix=/usr -Dsiteprefix=/usr/local
-Dvendorprefix=/usr -Dinc_version_list=none -Dmksymlinks'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
    ccversion='', gccversion='6.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/6.2.0/include-fixed /usr/lib
/lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64
/usr/local/lib64
    libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.24.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.24'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector-strong'


---
@INC for perl 5.24.0:
    /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.24.0
    /usr/lib/perl5/vendor_perl/5.24.0/x86_64-linux
    /usr/lib/perl5/vendor_perl/5.24.0
    /usr/lib/perl5/5.24.0/x86_64-linux
    /usr/lib/perl5/5.24.0
    .

---
Environment for perl 5.24.0:
    HOME=/home/daniel
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/bin:/usr/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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