Opened 9 months ago

Last modified 9 months ago

#5895 open defect

Configure error with GCC 6.2.0 and libsnappy

Reported by: Zeranoe Owned by:
Priority: important Component: build system
Version: git-master Keywords: regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When using MinGW-w64 and GCC 6.2.0 and configuring with

--enable-libsnappy

the configure process errors with relocation overflows.

There are numerous overflow errors, but the first is

libstdc++.a(cow-stdexcept.o): In function `_txnal_cow_string_C1_for_exceptions(void*, char const*, void*)':
cow-stdexcept.cc:236:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU1'

This appears to be happening because of the ldflag

-Wl,--image-base,0x140000000

added on line 4769 in configure, and removing this ldflag resolves the issue for me.

This ldflag was added with commit a58c22d61260941fc651add73836882d5b112fdb

Change History (2)

comment:1 Changed 9 months ago by cehoyos

  • Keywords regression added
  • Status changed from new to open

comment:2 Changed 9 months ago by heleppkes

This LDFLAG exists for security reasons, I suggest you inquire with snappy why they don't work with it.

Note: See TracTickets for help on using tickets.