Modify

Opened 3 years ago

Closed 3 years ago

#19975 closed defect (fixed)

px5g-standalone fails to compile after r46117 / fortify-headers

Reported by: hnyman Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: fortify-headers Cc:

Description

I successfully compiled trunk rev 46115 earlier today, but now at r46117 the package px5g-standalone does not compile any more. (Toolchain rebuilt after "make dirclean".)

The errors point toward the new fortify-headers stuff.

mips-openwrt-linux-musl-gcc -I. -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/Openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.10/usr/include -I/Openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.10/include -I/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include   --std=gnu99 -Wall -Werror -pedantic -L/Openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.10/usr/lib -L/Openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.10/lib -L/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro  -o px5g px5g.c library/x509write.c library/sha1.c library/timing.c library/rsa.c library/base64.c library/bignum.c library/havege.c
In file included from px5g.c:21:0:
/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h:19:2: error: #include_next is a GCC extension [-Werror]
 #include_next <stdio.h>
  ^
In file included from px5g.c:22:0:
/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdlib.h:19:2: error: #include_next is a GCC extension [-Werror]
 #include_next <stdlib.h>
  ^
In file included from px5g.c:22:0:
/Openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdlib.h:22:2: error: #include_next is a GCC extension [-Werror]
 #include_next <limits.h>
...

One reason might be that the package's own makefile specifies rather strict gcc options, creating possibly some conflict.

https://dev.openwrt.org/browser/trunk/package/utils/px5g-standalone/src/Makefile

CFLAGS?=-O2
CFLAGS+=
SFLAGS:=--std=gnu99
WFLAGS:=-Wall -Werror -pedantic
LDFLAGS?=

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by hnyman

Removing the "-pedantic" option makes this to compile again:

--- package/utils/px5g-standalone/src/Makefile	(revision 46117)
+++ package/utils/px5g-standalone/src/Makefile	(working copy)
@@ -1,7 +1,7 @@
 CFLAGS?=-O2
 CFLAGS+=
 SFLAGS:=--std=gnu99
-WFLAGS:=-Wall -Werror -pedantic
+WFLAGS:=-Wall -Werror
 LDFLAGS?=
 BINARY:=px5g
 

comment:3 Changed 3 years ago by cyrus

  • Resolution set to fixed
  • Status changed from new to closed

Grml didn't see your patch but just did the same, r46118
Thanks

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.