On 13/05/2018 14:24, Pierre Labastie wrote: > On 09/05/2018 21:49, Thanos Baloukas wrote: >> gcc -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W >> -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=implicit >> -Werror=missing- >> braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith >> -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment >> -Werror=vla -DHA >> VE_CONFIG_H -I. -I. -I./include -I./include -I./x86 -I./x86 -I./asm -I./asm >> -I./disasm -I./disasm -I./output -I./output -o stdlib/snprintf.o >> stdlib/snprintf.c >> In file included from stdlib/snprintf.c:13: >> ./include/nasmlib.h:194:1: error: ...pure... attribute on function returning >> ...void... [-Werror=attributes] >> void pure_func seg_init(void); >> ^~~~ >> >> Two solutions: >> >> sed 's/-Werror=attributes //' -i Makefile >> >> or by a fedora patch >> >> sed -e 's/pure_func seg_init/seg_init/' \ >> -e 's/pure_func seg_alloc/seg_alloc/' -i include/nasmlib.h >> > > Looks like upstream completely removed any reference to seg_init. See > http://repo.or.cz/nasm.git/commit/9f45a77f46829e666b35530939b9237cf978d4dc > so the sed could be sed '/seg_init/d' -i ... > > For the second one, it is OK, since it looks like seg_alloc is not pure... > > Fixing the book. > > Pierre >
Done at revision 20141. Thanks Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
