Harvey-OS/harvey

Clang 11 errors

orangecms opened this issue · 2 comments

Expected behavior

build runs fine

Actual behavior

/usr/bin/ld -o 9pvpxy 9pvpxy.o -L /home/dan/Projects/harvey/amd64/lib -static -e_main -lavl -lcomplete -lcontrol -ljay -ldisk -lflate -lframe -lfreetyp
e -lgeometry -lhttpd -lbin -llex -lmach -lmemdraw -lmemlayer -lmemdraw -ldraw -lplumb -lregexp -lString -loventi -l9p -lauth -lauthsrv -lndb -lip -lven
ti -lsec -lstdio -lauth -lmp -lthread -lbio -lc -z noseparate-code -z max-page-size=0x200000
/usr/bin/ld -o aan aan.o -L /home/dan/Projects/harvey/amd64/lib -static -e_main -lavl -lcomplete -lcontrol -ljay -ldisk -lflate -lframe -lfreetype -lge
ometry -lhttpd -lbin -llex -lmach -lmemdraw -lmemlayer -lmemdraw -ldraw -lplumb -lregexp -lString -loventi -l9p -lauth -lauthsrv -lndb -lip -lventi -ls
ec -lstdio -lauth -lmp -lthread -lbio -lc -z noseparate-code -z max-page-size=0x200000
/usr/bin/ld -o ar ar.o -L /home/dan/Projects/harvey/amd64/lib -static -e_main -lavl -lcomplete -lcontrol -ljay -ldisk -lflate -lframe -lfreetype -lgeom
etry -lhttpd -lbin -llex -lmach -lmemdraw -lmemlayer -lmemdraw -ldraw -lplumb -lregexp -lString -loventi -l9p -lauth -lauthsrv -lndb -lip -lventi -lsec
 -lstdio -lauth -lmp -lthread -lbio -lc -z noseparate-code -z max-page-size=0x200000
/usr/bin/ld -o archfs archfs.o -L /home/dan/Projects/harvey/amd64/lib -static -e_main -lavl -lcomplete -lcontrol -ljay -ldisk -lflate -lframe -lfreetyp
e -lgeometry -lhttpd -lbin -llex -lmach -lmemdraw -lmemlayer -lmemdraw -ldraw -lplumb -lregexp -lString -loventi -l9p -lauth -lauthsrv -lndb -lip -lven
ti -lsec -lstdio -lauth -lmp -lthread -lbio -lc -z noseparate-code -z max-page-size=0x200000
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(file.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arc
hfs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(mem.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arch
fs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(rfork.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; ar
chfs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(srv.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arch
fs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(uid.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arch
fs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(fid.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arch
fs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(intmap.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; a
rchfs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(listen.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; a
rchfs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(req.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arch
fs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
/usr/bin/ld: /home/dan/Projects/harvey/amd64/lib/lib9p.a(post.o):/home/dan/Projects/harvey/sys/include/9p.h:225: multiple definition of `chatty9p'; arc
hfs.o:/home/dan/Projects/harvey/sys/include/9p.h:225: first defined here
exit status 1

(previous output omitted)

Steps to reproduce

  • install Clang 11 (I have it on Arch Linux)
  • ./bootstrap.sh
  • CC=clang ARCH=amd64 ./linux_amd64/bin/build
fhs commented

I think this was recently fixed by c7b659d? Is your main branch up to date?

Indeed, I was behind main, my bad :-)

Jugglig with too many remotes 😅 Thanks!