Lz4: v1.7.3 build fails with GCC 4.4.x (ie: CentOS 6.x)

Created on 17 Nov 2016  路  3Comments  路  Source: lz4/lz4

It would be nice to continue to support those older distributions (I don't like it, but I have to..).

Here's the build failure:

In file included from ../lib/lz4.c:92:
../lib/lz4.h:428: error: wrong number of arguments specified for 'deprecated' attribute
../lib/lz4.h:429: error: wrong number of arguments specified for 'deprecated' attribute
In file included from ../lib/lz4hc.h:43,
                 from ../lib/lz4hc.c:55:
../lib/lz4.h:428: error: wrong number of arguments specified for 'deprecated' attribute
(...)
../lib/lz4hc.h:217: error: wrong number of arguments specified for 'deprecated' attribute
../lib/lz4hc.h:218: error: wrong number of arguments specified for 'deprecated' attribute
make[1]: *** [../lib/lz4.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [../lib/lz4hc.o] Error 1
make[1]: *** [../lib/lz4frame.o] Error 1
make[1]: Leaving directory `/usr/src/tmp/BUILD/lz4-1.7.3/programs'
make: *** [lz4] Error 2

FYI: builds succeeded on all current and future versions of Fedora (up to gcc 6.2.1), openSUSE, CentOS 7.x, etc.
I did see an rpm lint warning though:

*** WARNING: identical binaries are copied, not linked:
        /usr/bin/lz4c
   and  /usr/src/tmp/BUILDROOT/lz4-1.7.3-1.fc23.x86_64/usr/bin/lz4
bug

All 3 comments

Mmmh, deprecated("message") is supposed to be a feature of gcc 4.x,
but if does not work for gcc 4.4, then I clearly missed something.

Indeed, my fault, I misinterpreted,
I though it was introduced within gcc 4.05,
but it was in fact introduced in gcc 4.5.
Hence problem with 4.4...

To be fixed

Latest update in dev branch should fix the reported issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cxht picture cxht  路  6Comments

Sanmayce picture Sanmayce  路  4Comments

vonHabsi picture vonHabsi  路  7Comments

ppodolsky picture ppodolsky  路  4Comments

aleksazr picture aleksazr  路  6Comments