Skip to contentSkip to conversation

package/upx: fix build with host gcc 6.x

PATCH New Martin Bark 2 participants 2 messages Jun 16, 2016 – Jul 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/upx: fix build with host gcc 6.x

Disable the -Werror gcc option because is causes the following error when using gcc 6.x on the host.

p_vmlinx.cpp:100:5: error: this ?if? clause does not guard...
[-Werror=misleading-indentation] if (a->p_paddr > b->p_paddr) return 1;

---
 package/upx/upx.mk | 1 +
 1 file changed, 1 insertion(+)
package/upx/upx.mk +1 -0
index 400d283..eaef275 100644
@@ -17,6 +17,7 @@ HOST_UPX_DEPENDENCIES = host-ucl host-zlib
 define HOST_UPX_BUILD_CMDS
 	$(HOST_MAKE_ENV) $(MAKE) CPPFLAGS="$(HOST_CPPFLAGS)" \
 		LDFLAGS="$(HOST_LDFLAGS)" UPX_UCLDIR=$(HOST_DIR)/usr \
+		CXXFLAGS_WERROR= \
 		-C $(@D) all
 endef
 
Signature · 1 line
2.8.3
#1 lore raw

PATCH 1/1 package/upx: fix build with host gcc 6.x

Hello,

Quoted 10 lines · Martin Bark

Disable the -Werror gcc option because is causes the following error when using gcc 6.x on the host.

p_vmlinx.cpp:100:5: error: this ?if? clause does not guard...
[-Werror=misleading-indentation] if (a->p_paddr > b->p_paddr) return 1;

---
 package/upx/upx.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