The library libl.a containing auxiliary code for lexers generated with lex(1) is not generated for i386 even if lib32 support is enabled. This stops me from compiling projects requiring the libl for i386 on amd64 FreeBSD. I believe this is not intentional as the similar liby.a for yacc(1) is generated in /usr/lib32. Please provide an i386 libl.a in /usr/lib32 on amd64.
Created attachment 205414 [details] patch This simple patch fixes the problem. It also applies to stable/12. A proper fix is probably to move usr.bin/lex/lib to lib/libl, but this requires more extensive changes to Makefile1.inc.
Maybe Warner can give some input here.
I agree with Tijl. This patch is perfect for commit + quick MFC. It does suffer exactly what Tijl says: we should have a 'reach over' makefile in lib/libl that builds this and we should adjust things accordingly. This means more directories for tool lists, etc. That's the better, long term solution. There's no reason for the current state of affairs, other than I suppose it was easier when it was done originally.
A commit references this bug: Author: tijl Date: Sat Jun 29 17:01:56 UTC 2019 New revision: 349548 URL: https://svnweb.freebsd.org/changeset/base/349548 Log: Build lib32 libl. The library is built from usr.bin/lex/lib. It would be better to move this directory to lib/libl, but this requires more extensive changes to Makefile.inc1. This simple fix can be MFCed quickly. PR: 238874 Reviewed by: imp MFC after: 3 days Changes: head/Makefile.libcompat
A commit references this bug: Author: tijl Date: Thu Jul 4 10:16:45 UTC 2019 New revision: 349721 URL: https://svnweb.freebsd.org/changeset/base/349721 Log: MFC r349548: Build lib32 libl. The library is built from usr.bin/lex/lib. It would be better to move this directory to lib/libl, but this requires more extensive changes to Makefile.inc1. This simple fix can be MFCed quickly. PR: 238874 Reviewed by: imp Changes: _U stable/12/ stable/12/Makefile.libcompat
A commit references this bug: Author: tijl Date: Thu Jul 4 10:41:09 UTC 2019 New revision: 349722 URL: https://svnweb.freebsd.org/changeset/base/349722 Log: MFC r349548: Build lib32 libl. The library is built from usr.bin/lex/lib. It would be better to move this directory to lib/libl, but this requires more extensive changes to Makefile.inc1. This simple fix can be MFCed quickly. PR: 238874 Reviewed by: imp Changes: _U stable/11/ stable/11/Makefile.libcompat