Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netbsd-9 cross-buidl tools fail



I've seen this before. We are using an old version of the dtc source code that no longer builds with modern C compilers. GCC finally became a bit more compliant in that way somewhat recently uncovering this broken code.

The proper fix will be to import a newer version of dtc into the netbsd-9 branch.

A quick fix might be to simply delete the line defining yylloc in external/gpl2/dtc/dist/dtc-lexer.l (line 43 in my copy).

Cheers

On 10/04/22 07:10, Hauke Fath wrote:
Attempting a cross build of netbsd-9 on amd64 fails for me while
building the tools with

[...]
#      link  dtc/dtc
cc -O
-I/u/sources/netbsd-9/src/tools/dtc/../../sys/external/bsd/libfdt/dist
-I/u/netbsd-builds/9/evbarm/tools/include
-I/u/netbsd-builds/9/evbarm/tools/include/nbinclude
-I/u/netbsd-builds/9/evbarm/tools/include/compat
-I/u/sources/netbsd-9/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64
-I/u/sources/netbsd-9/src/tools/dtc/../../external/gpl2/dtc/usr.bin/dtc
-I/u/sources/netbsd-9/src/external/gpl2/dtc/dist
-I/u/sources/netbsd-9/src/sys/external/bsd/libfdt/dist   -o dtc
checks.lo data.lo dtc.lo flattree.lo fstree.lo livetree.lo srcpos.lo
treesource.lo util.lo dtc-lexer.lo dtc-parser.lo
-L/var/obj/netbsd-build-objects/9/evbarm/tools/libfdt -lfdt
-L/u/netbsd-builds/9/evbarm/tools/lib -lnbcompat -lrt -lz
ld: dtc-parser.lo:(.bss+0x0): multiple definition of `yylloc';
dtc-lexer.lo:(.bss+0x0): first defined here

*** Failed target:  dtc
[...]

Is this a known issue?

Cheerio,
Hauke



Home | Main Index | Thread Index | Old Index