[Gambas-user] problem lto option with early version of gcc that supported but not right implementing

PICCORO McKAY Lenz mckaygerhard at gmail.com
Fri May 25 15:47:57 CEST 2018


i really dont understant those problems with lto

i using debian jeeesie and gcc 4.9 , reading
gcc.gnu.org/gcc-5/changes.html#general : "Contrary to earlier GCC releases,
the optimization and target options passed on the link command line are
ignored."

so seems in some distributions, lto linking need pass to the ld a plugin
argument, that in recent versions are not passed and dont need it! (gcc 5,
6,  7 or 8), so that's why some users here reported these error: "plugin
needed to handle lto object"

i think that's was the first and original problem with lto linking in
gambas!

so i think we need to detect the version of gcc and only enables if are gcc
6+ (not 5 due in this are still experimental)

so i must reported this at bugtracker, due i got those errors when
compiling with lto enabled:

  AR       libgbx.a
BFD: libgbx_a-gb_error.o: plugin needed to handle lto object
BFD: libgbx_a-gbx_split.o: plugin needed to handle lto object
.....
BFD: libgbx_a-gbx_exec_operator.o: plugin needed to handle lto object
BFD: libgbx_a-gbx_value.o: plugin needed to handle lto object
  CC       gb_la-gbx_c_class.lo
  CC       gb_la-gbx_c_collection.lo
.....
  CC       gbx3-gbx_signal.o
  CCLD     gbx3
/tmp/cckmyMwU.ltrans0.ltrans.o: In function `add_strftime':
/home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1202: undefined
reference to `COMMON_get_size_left'
/home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1202: undefined
reference to `COMMON_get_current'
/home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1203: undefined
reference to `COMMON_pos'
/tmp/cckmyMwU.ltrans0.ltrans.o: In function `LOCAL_format_date':
/home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1424: undefined
reference to `COMMON_strncasecmp'
/tmp/cckmyMwU.ltrans0.ltrans.o: In function `begin':



Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180525/11d9560f/attachment-0001.html>


More information about the User mailing list