Cannot compile freebsd-base-graphics (4c5467a) on FreeBSD 10.2, compiler fails to recognize warning option

Tommi Pernila tommi.pernila at iki.fi
Sat Mar 5 08:52:22 UTC 2016


Hi Arto,

That's a bug that is fixed in Fixed in r296324.

This DRM branch is just running a bit behind CURRENT.
So if some oneone has the time to merge the branch to r296324 or later this
should fix the issue.

You could go back a few commits in the DRM branch to 4c5467 (3rd of March)
I managed to compile this kernel without this issue.

Another which is most likely not the best way of solving it would be to
check all commits relating to to yacc during the last week ;)

-Tommi
Okay, now I did the following:
# rm -rf /usr/obj/*
# make kernel-toolchain

However, make kernel-toolchain command failed in error: compiler cannot
find file 'yacc.h'. Any idea what to do now? Here is the command output:

===> usr.bin/mkesdb_static (obj,build-tools)
/usr/obj/root/freebsd-base-graphics/usr.bin/mkesdb_static created for
/root/freebsd-base-graphics/usr.bin/mkesdb_static
cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv
-g -std=gnu99  -Qunused-arguments
-I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c
/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_bcs.c
-o citrus_bcs.o
cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv
-g -std=gnu99  -Qunused-arguments
-I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c
/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_db_factory.c
-o citrus_db_factory.o
cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv
-g -std=gnu99  -Qunused-arguments
-I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c
/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_db_hash.c
-o citrus_db_hash.o
cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv
-g -std=gnu99  -Qunused-arguments
-I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c
/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv/citrus_lookup_factory.c
-o citrus_lookup_factory.o
lex  -olex.c
/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb/lex.l
cc -O2 -pipe -I/root/freebsd-base-graphics/usr.bin/mkesdb_static
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb
-I/root/freebsd-base-graphics/usr.bin/mkesdb_static/../../lib/libc/iconv
-g -std=gnu99  -Qunused-arguments
-I/usr/obj/root/freebsd-base-graphics/tmp/legacy/usr/include -c lex.c -o
lex.o
/root/freebsd-base-graphics/usr.bin/mkesdb_static/../mkesdb/lex.l:44:10:
fatal error: 'yacc.h' file not found
#include "yacc.h"
         ^
1 error generated.
*** Error code 1

Stop.
make[3]: stopped in /root/freebsd-base-graphics/usr.bin/mkesdb_static
*** Error code 1

Stop.
make[2]: stopped in /root/freebsd-base-graphics
*** Error code 1

Stop.
make[1]: stopped in /root/freebsd-base-graphics
*** Error code 1

Stop.
make: stopped in /root/freebsd-base-graphics


Jean-Sébastien Pédron kirjoitti 04.03.2016 18:57:

> On 03/03/2016 20:22, Arto Pekkanen wrote:
>
>> Problem occurred after the merge with HEAD at commit 4c5467a. The new
>> source tree from HEAD seems to compile some modules with
>> -Wno-shift-negative-value -option, which is NOT supported by the compiler
>> of 10.2-RELEASE-p12
>>
>> Does anyone have any suggestions on how I could get this kernel to
>> compile on 10.2-RELEASE?
>>
>
> Hi!
>
> You should be able to build a working toolchain by first running:
>     make kernel-toolchain
>

-- 
Arto Pekkanen
_______________________________________________
freebsd-x11 at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"


More information about the freebsd-x11 mailing list