"Nonrepresentable section on output" error during linking on linux

Asked
Active3 hr before
Viewed126 times

7 Answers

sectionoutput
90%

I've received the "nonrepresentable section on output" error when crosscompiling for ARM and some of the libraries was not correctly compiled with -fPIC. Pretty sure that's not the error here though...,I'd like some pointers on how to attack this problem, either by looking into the "hidden sybmol" error or by helping me understand what the "Nonrepresentable section on output" message from the linker actually means. , 2 This was our problem: multiple ARM compilers, resulting in the "nonrepresentable section on output" error. Adding -fPIC resolved the problem. – Jason Swager Jan 31 '13 at 16:46 ,You probably compiled with -fvisibility=hidden, and whether it was a compiler-added feature (like stack protector) or something else entirely, the symbol emitted in your code overrode the default visibility of an undefined symbol reference of the same name in libc_nonshared.a that would normally be satisfied by libc.so.

You can reproduce a similar problem like this:

#include <stdio.h>

extern __attribute__((visibility ("hidden")))
FILE* open_memstream( char**, size_t* );

char* asdf;
size_t mysize;

FILE* blah() {
  return open_memstream( &asdf, &mysize );
}
load more v
88%

I get this error at the linker stage when compiling the webkit-1.1.5 package on my Ubuntu 9.04 box:,c++linker-errorslinux,I'd like some pointers on how to attack this problem, either by looking into the "hidden sybmol" error or by helping me understand what the "Nonrepresentable section on output" message from the linker actually means. ,I've received the "nonrepresentable section on output" error when crosscompiling for ARM and some of the libraries was not correctly compiled with -fPIC. Pretty sure that's not the error here though...

I get this error at the linker stage when compiling the webkit-1.1.5 package on my Ubuntu 9.04 box:

libtool: link: gcc - ansi - fno - strict - aliasing - O2 - Wall - W - Wcast - align - Wchar - subscripts - Wreturn - type - Wformat - Wformat - security - Wno - format - y2k - Wundef - Wmissing - format - attribute - Wpointer - arith - Wwrite - strings - Wno - unused - parameter - Wno - parentheses - fno - exceptions - fvisibility = hidden - D_REENTRANT - I / usr / include / gtk - 2.0 - I / usr / lib / gtk - 2.0 / include - I / usr / include / atk - 1.0 - I / usr / include / cairo - I / usr / include / pango - 1.0 - I / usr / include / pixman - 1 - I / usr / include / freetype2 - I / usr / include / directfb - I / usr / include / libpng12 - I / usr / include / glib - 2.0 - I / usr / lib / glib - 2.0 / include - I / usr / include / libsoup - 2.4 - I / usr / include / libxml2 - I / usr / include / glib - 2.0 - I / usr / lib / glib - 2.0 / include - g - O2 - O2 - o Programs / .libs / GtkLauncher WebKitTools / GtkLauncher / Programs_GtkLauncher - main.o - pthread. / .libs / libwebkit - 1.0.so / usr / lib / libgtk - x11 - 2.0.so / usr / lib / libgdk - x11 - 2.0.so / usr / lib / libatk - 1.0.so / usr / lib / libpangoft2 - 1.0.so / usr / lib / libgdk_pixbuf - 2.0.so - lm / usr / lib / libpangocairo - 1.0.so / usr / lib / libgio - 2.0.so / usr / lib / libcairo.so / usr / lib / libpango - 1.0.so / usr / lib / libfreetype.so - lfontconfig / usr / lib / libgmodule - 2.0.so / usr / lib / libgobject - 2.0.so / usr / lib / libgthread - 2.0.so - lrt / usr / lib / libglib - 2.0.so - pthread
make[1]: Leaving directory `/home/nagul/build_area/webkit-1.1.5'
WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp: In function ‘NPError webkit_test_plugin_get_value(NPP_t*, NPPVariable, void*)’:
WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp:221: warning: deprecated conversion from string constant to ‘char*’
WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp:224: warning: deprecated conversion from string constant to ‘char*’
WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp: In function ‘char* NP_GetMIMEDescription()’:
WebKitTools/DumpRenderTree/gtk/TestNetscapePlugin/TestNetscapePlugin.cpp:260: warning: deprecated conversion from string constant to ‘char*’
/usr/bin/ld: Programs/.libs/GtkLauncher: hidden symbol `
__stack_chk_fail_local ' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO /
   usr / bin / ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: ** * [Programs / GtkLauncher] Error 1
make: ** * [all] Error 2
72%

g++ - I. - I.. - I.. / liboctave - I.. / src - I.. / libcruft / misc - DHAVE_CONFIG_H - mie
e - fp - Wall - W - Wshadow - Wold - style - cast - march = pentium4 - O2 - mmmx - msse - msse2
rdynamic\
   -
   L.. - fPIC - o octave\
main.o\ -
   L.. / liboctave - L.. / libcruft - L.. / src - Wl, -rpath - Wl, /usr/local / lib / oct
ve - 2.9 .12\ -
   loctinterp - loctave - lcruft\\\ -
   lfftw3 - lreadline - lncurses - ldl - lz - lm - L / usr / lib / gcc / i486 - slackwa
e - linux / 4.1 .2 - L / usr / lib / gcc / i486 - slackware - linux / 4.1 .2 / .. / .. / .. / .. / i486 - slackw
re - linux / lib - L / usr / lib / gcc / i486 - slackware - linux / 4.1 .2 / .. / .. / .. - lz - lgfortranb
gin - lgfortran - lm /
   usr / lib / gcc / i486 - slackware - linux / 4.1 .2 / .. / .. / .. / .. / i486 - slackware - linux / bin / ld
octave: hidden symbol `__powidf2' in /usr/lib/gcc/i486-slackware-linux/4.1.2/l
bgcc.a(_powidf2.o) is referenced by DSO
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld
 final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
65%

Expected outcome: jsonnet is installed.,I'm sure I have no other installation of a Python jsonnet library anywhere in my system, verified via find / -mount -iname '*jsonnet*'., Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. , The text was updated successfully, but these errors were encountered:

$ mkdir jsonnet - example
$ cd jsonnet - example
$ virtualenv.ve - ppython3
$..ve / bin / activate
$ pip install jsonnet
load more v
75%

--
Giacomo Fiorin
Associate Professor of Research, Temple University, Philadelphia, PA
Contractor, National Institutes of Health, Bethesda, MD
http: //goo.gl/Q3TBQU
   https: //github.com/giacomofiorin
40%

Created attachment 474740[details]
emerge--info

Installing dev - libs / libxml2 - 2.9 .4 - r1 with python3 .6 as one of the PYTHON_TARGETS fails with this message:

   /usr/lib / gcc / x86_64 - pc - linux - gnu / 6.3 .0 / .. / .. / .. / .. / x86_64 - pc - linux - gnu / bin / ld: /usr/local / lib / libpython3 .6 m.a(frozen.o): warning: relocation in readonly section `.rodata'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:596: libxml2mod.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64-python3_6/python'
make[1]: *** [Makefile:684: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64-python3_6/python'
make: *** [Makefile:524: all] Error 2
load more v
22%

0

Other "section-output" queries related to ""Nonrepresentable section on output" error during linking on linux"