Skip to contentSkip to conversation

fcgiwrap: Disable -Werror in CFLAGS set by configure.

PATCH New Thomas Claveirole 4 participants 9 messages Jun 19, 2017 – Jun 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

fcgiwrap's configure script appends -Werror to AM_CFLAGS, then use it to build the package. This is an issue when Buildroot supports a new compiler version and this version makes some warnings appear. Luckily, one can provide CFLAGS=-Wno-error to the configure script so it appends -Wno-error to AM_CFLAGS.

---
 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)
package/fcgiwrap/fcgiwrap.mk +1 -0
index dd74c1ef72..c080a1ae49 100644
@@ -10,6 +10,7 @@ FCGIWRAP_DEPENDENCIES = host-pkgconf libfcgi
 FCGIWRAP_LICENSE = MIT
 FCGIWRAP_LICENSE_FILES = COPYING
 FCGIWRAP_AUTORECONF = YES
+FCGIWRAP_CONF_OPTS += CFLAGS=-Wno-error
 
 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 FCGIWRAP_DEPENDENCIES += systemd
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

Hi Thomas,

Quoted 5 lines · Thomas Claveirole

fcgiwrap's configure script appends -Werror to AM_CFLAGS, then use it to build the package. This is an issue when Buildroot supports a new compiler version and this version makes some warnings appear. Luckily, one can provide CFLAGS=-Wno-error to the configure script so it appends -Wno-error to AM_CFLAGS.

Please add a reference to the autobuild failure:

http://autobuild.buildroot.net/results/8e0/8e04bf5a85ecd7f120bc9dedeedc891def6c46c1/

baruch

Quoted 17 lines
---
 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)
package/fcgiwrap/fcgiwrap.mk +1 -0
index dd74c1ef72..c080a1ae49 100644
@@ -10,6 +10,7 @@ FCGIWRAP_DEPENDENCIES = host-pkgconf libfcgi
 FCGIWRAP_LICENSE = MIT
 FCGIWRAP_LICENSE_FILES = COPYING
 FCGIWRAP_AUTORECONF = YES
+FCGIWRAP_CONF_OPTS += CFLAGS=-Wno-error
 
 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 FCGIWRAP_DEPENDENCIES += systemd
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

v2 cover fcgiwrap: Disable -Werror in CFLAGS set by configure.

Hi,

Quoted 3 lines

Please add a reference to the autobuild failure:

http://autobuild.buildroot.net/results/8e0/8e04bf5a85ecd7f120bc9dedeedc891def6c46c1/

Done, thanks. I also forgot to mention $(TARGET_CFLAGS) when overriding the CFLAGS for configure, this should be fixed now.

Thomas Claveirole (1):
fcgiwrap: Disable -Werror in CFLAGS set by configure.

 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.11.0
#3 lore raw

PATCH v2 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

Thus, fix
http://autobuild.buildroot.net/results/8e0/8e04bf5a85ecd7f120bc9dedeedc891def6c46c1/

fcgiwrap's configure script appends -Werror to AM_CFLAGS, then use it to build the package. This is an issue when Buildroot supports a new compiler version and this version makes some warnings appear. Luckily, one can provide CFLAGS=-Wno-error to the configure script so it appends -Wno-error to AM_CFLAGS.

---
 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)
package/fcgiwrap/fcgiwrap.mk +1 -0
index dd74c1ef72..aed68dcedc 100644
@@ -10,6 +10,7 @@ FCGIWRAP_DEPENDENCIES = host-pkgconf libfcgi
 FCGIWRAP_LICENSE = MIT
 FCGIWRAP_LICENSE_FILES = COPYING
 FCGIWRAP_AUTORECONF = YES
+FCGIWRAP_CONF_OPTS += CFLAGS='-Wno-error $(TARGET_CFLAGS)'
 
 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 FCGIWRAP_DEPENDENCIES += systemd
Signature · 1 line
2.11.0
#4 lore raw

PATCH v2 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

Hello,

Quoted 1 line · Thomas Claveirole

+FCGIWRAP_CONF_OPTS += CFLAGS='-Wno-error $(TARGET_CFLAGS)'

Should be:

FCGIWRAP_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -Wno-error"

I.e:

- Use CONF_ENV, not CONF_OPTS, since we pass the original CFLAGS in CONV_ENV

- Use double quotes instead of simple quotes

- Pass your option *after* TARGET_CFLAGS.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#5 lore raw

v3 cover fcgiwrap: Disable -Werror in CFLAGS set by configure.

Quoted 4 lines

Should be:

FCGIWRAP_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -Wno-error"

Quoted 8 lines

I.e:

- Use CONF_ENV, not CONF_OPTS, since we pass the original CFLAGS in CONV_ENV

- Use double quotes instead of simple quotes

- Pass your option *after* TARGET_CFLAGS.

Done, thanks.

Thomas Claveirole (1):
fcgiwrap: Disable -Werror in CFLAGS set by configure.

 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.11.0
#6 lore raw

PATCH v3 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

Thus, fix
http://autobuild.buildroot.net/results/8e0/8e04bf5a85ecd7f120bc9dedeedc891def6c46c1/

fcgiwrap's configure script appends -Werror to AM_CFLAGS, then use it to build the package. This is an issue when Buildroot supports a new compiler version and this version makes some warnings appear. Luckily, one can provide CFLAGS=-Wno-error to the configure script so it appends -Wno-error to AM_CFLAGS.

---
 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)
package/fcgiwrap/fcgiwrap.mk +1 -0
index dd74c1ef72..62c4c1369d 100644
@@ -10,6 +10,7 @@ FCGIWRAP_DEPENDENCIES = host-pkgconf libfcgi
 FCGIWRAP_LICENSE = MIT
 FCGIWRAP_LICENSE_FILES = COPYING
 FCGIWRAP_AUTORECONF = YES
+FCGIWRAP_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -Wno-error"
 
 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 FCGIWRAP_DEPENDENCIES += systemd
Signature · 1 line
2.11.0
#7 lore raw

PATCH v3 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

Hello,

Quoted 9 lines · Thomas Claveirole

Thus, fix
http://autobuild.buildroot.net/results/8e0/8e04bf5a85ecd7f120bc9dedeedc891def6c46c1/

fcgiwrap's configure script appends -Werror to AM_CFLAGS, then use it to build the package. This is an issue when Buildroot supports a new compiler version and this version makes some warnings appear. Luckily, one can provide CFLAGS=-Wno-error to the configure script so it appends -Wno-error to AM_CFLAGS.

Quoted 4 lines
---
 package/fcgiwrap/fcgiwrap.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#8 lore raw

PATCH v3 1/1 fcgiwrap: Disable -Werror in CFLAGS set by configure.

In reply to Thomas Claveirole
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Claveirole <[email protected]> writes:

Thus, fix
http://autobuild.buildroot.net/results/8e0/8e04bf5a85ecd7f120bc9dedeedc891def6c46c1/

Quoted 7 lines

fcgiwrap's configure script appends -Werror to AM_CFLAGS, then use it to build the package. This is an issue when Buildroot supports a new compiler version and this version makes some warnings appear. Luckily, one can provide CFLAGS=-Wno-error to the configure script so it appends -Wno-error to AM_CFLAGS.

Committed to 2017.02.x and 2017.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard