Solved make build32 failure

I wonder if there is something wrong with my box or this is a bug?
Code:
cc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file -std=gnu99   -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY  -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic /usr/src/lib/libmagic/../../contrib/file/apprentice.c /usr/src/lib/libmagic/../../contrib/file/encoding.c /usr/src/lib/libmagic/../../contrib/file/funcs.c /usr/src/lib/libmagic/../../contrib/file/magic.c /usr/src/lib/libmagic/../../contrib/file/print.c  -lz -legacy
/usr/bin/ld: cannot find -legacy
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Edit: I have no recollection of doing make cleanworld but obviously I did it. So make toolchain fixed it.
 
Almost ten years after this post, I had the same issue, and same solution. Doing
Code:
make toolchain
fixed it. This post was about the only reference I found for the error.
 
Back
Top