Yet another question

Stefan Kalkowski stefan.kalkowski at ...1...
Tue Dec 13 11:12:49 CET 2016


Hi Florian,

On 12/12/2016 11:24 PM, Florian Grätz wrote:
> I also have another concern when making for target linux_x86 according
> to section 'Quick start to build genode for linux'. make run/demo quits
> with the following errors:
> /usr/bin/ld: fb_sdl.o: relocation R_X86_64_32 agains symbol
> '_ZTIN6Genode11Msgbuf_base13_Too_many_capsE' can not be used when making
> a shared object; recompile with -fPIC
> /usr/bin/ld: input.o: relocation R_X86_64_32S agains '.rodata' can not
> be used when making a shared object recompile with -fPIC
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/6../../../x86_64-linux-gnu/crt1.o:
> relocation R_X86_64_32S against symbol '__libc_csu_fini' can not be used
> when making shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: error: ld returned 1 exit status
> /home/florian/genode/repos/base/mk/prg.mk:222 <http://prg.mk:222>:
> recipe for target 'fb_sdl' failed
> 
> If I run make without any arguments, the adio_drv doesn't build. The
> linker quits with the following messages:
> /usr/bin/ld: alsa.o: relocation R_X86_64_32 agains '.bss' can not be
> used when making a shared object; recompile with -fPIC
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/6../../../x86_64-linux-gnu/crt1.o:
> relocation R_X86_64_32S against symbol '__libc_csu_fini' can not be used
> when making shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> /home/florian/genode/repos/base/mk/prg.mk:222 <http://prg.mk:222>:
> recipe for target 'audio_drv' failed
> 
> Any hints would be greatly appreciated.

That is strange. To me it looks like a 32-bit / 64-bit issue. I assume
you are running on a 64-bit Linux distribution? Are your alsa libraries
and SDL libraries 32-bit version? Or do you somehow try to build 32-bit
Linux binaries for Genode?

Can you please post the content of the specs.conf file in your
Genode/Linux build-directory?

Regards
Stefan

-- 
Stefan Kalkowski
Genode Labs

https://github.com/skalk · http://genode.org/




More information about the users mailing list