[yoshimi] Build problem on Ubuntu 16:04 / AMD64 -- Re: Yoshimi V 1.5.10

  • From: Ichthyostega <prg@xxxxxxxxxxxxxxx>
  • To: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>, yoshimi@xxxxxxxxxxxxx
  • Date: Mon, 17 Dec 2018 07:02:09 +0100

Just got a build error from the Ubuntu PPA builder.

The affected version is Ubuntu Xenial (16.04 LTS),
which is quite an old version. But seems worth inspecting though...


The failure happens when linking the main Yoshimi executable.

/usr/bin/ld: CMakeFiles/yoshimi.dir/Interface/CmdInterface.cpp.o:
relocation R_X86_64_32 against `.bss' can not be used when making
a shared object; recompile with -fPIC

CMakeFiles/yoshimi.dir/Interface/CmdInterface.cpp.o: error adding symbols:
Bad value


First thing to note, the i86 (32bit) build went through without problem.
Not really surprising, this whole PIC thing is typically related to x86_64


But the really interesting observation is, when we compare the linker
commandlines with the Build on Ubuntu Bionic (18.04), which was successful.


The differences are:

 * Xenial uses the additional switch  -fPIE -pie

 * Bionic gives the -rdynamic switch before the source objects (irrelevant?)


These flags are somehow inserted automatically, since we do not specify them
in our Makefile (nor in the Debian Package description, which only adds
-Wl,--as-needed). However, I could not find anything suspicious in the
configure-section at the begin of the build log.

Moreover, when I look into the build logs of the previous builds (which
fortunately are still available on my launchpad account), it is obvious
that these earlier builds on Ubuntu 16.04 also used these flags -fPIE -pie
just seemingly it didn't cause any problems then. Maybe some security fix
to some library we link against?

Weird stuff... not sure if any action is required, since 16.04 is quite
an old platform.


-- Hermann




Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: