bitcoin core – Unable to compile due to Undefined Reference?

When trying to compile bitcoin core using this following configure command, it does not work.

EVENT_PTHREADS_CFLAGS='-I/usr/lib/i386-linux-gnu' EVENT_PTHREADS_LIBS='-L/usr/lib/i386-linux-gnu -levent' EVENT_CFLAGS='-I/usr/lib/i386-linux-gnu' EVENT_LIBS='-L/usr/lib/i386-linux-gnu -levent'  CFLAGS='-I/usr/lib/i386-linux-gnu -levent -DBOOST_NO_CXX11_SCOPED_ENUMS -O1 -m32 -g -latomic -lboost_system -lboost_filesystem -levent_core -lgcc_s --rtlib=compiler-rt' CXXFLAGS='-I/usr/lib/i386-linux-gnu -levent -DBOOST_NO_CXX11_SCOPED_ENUMS -O1 -m32 -g -latomic -lboost_system -lboost_filesystem -levent_core -lgcc_s --rtlib=compiler-rt' ./configure --enable-static --disable-hardening --enable-util-cli --enable-util-tx --enable-util-wallet --with-libmultiprocess=no --with-incompatible-bdb --with-boost-libdir=/usr/lib/i386-linux-gnu

Here is the error

/usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `directory_iterator':
/usr/local/include/boost/filesystem/directory.hpp:278: undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, unsigned int, boost::system::error_code*)'
/usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-init.o): in function `boost::filesystem::directory_entry::status() const':
/usr/local/include/boost/filesystem/directory.hpp:132: undefined reference to `boost::filesystem::directory_entry::get_status(boost::system::error_code*) const'
/usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-blockchain.o): in function `boost::filesystem::absolute(boost::filesystem::path const&, boost::filesystem::path const&)':
/usr/local/include/boost/filesystem/operations.hpp:258: undefined reference to `boost::filesystem::detail::absolute(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*)'
/usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-torcontrol.o): in function `StartTorControl(CService)':
/home/akshat/bitcoin-0.21.0/src/torcontrol.cpp:753: undefined reference to `evthread_use_pthreads'
/usr/bin/ld: libbitcoin_server.a(libbitcoin_server_a-httpserver.o): in function `InitHTTPServer()':
/home/akshat/bitcoin-0.21.0/src/httpserver.cpp:376: undefined reference to `evthread_use_pthreads'
/usr/bin/ld: libbitcoin_wallet.a(libbitcoin_wallet_a-walletutil.o): in function `recursive_directory_iterator':
/usr/local/include/boost/filesystem/directory.hpp:456: undefined reference to `boost::filesystem::detail::recursive_directory_iterator_construct(boost::filesystem::recursive_directory_iterator&, boost::filesystem::path const&, unsigned int, boost::system::error_code*)'
/usr/bin/ld: libbitcoin_wallet.a(libbitcoin_wallet_a-walletutil.o): in function `boost::filesystem::directory_entry::symlink_status() const':
/usr/local/include/boost/filesystem/directory.hpp:134: undefined reference to `boost::filesystem::directory_entry::get_symlink_status(boost::system::error_code*) const'
/usr/bin/ld: libbitcoin_wallet.a(libbitcoin_wallet_a-walletutil.o): in function `boost::filesystem::recursive_directory_iterator::increment(boost::system::error_code&)':
/usr/local/include/boost/filesystem/directory.hpp:500: undefined reference to `boost::filesystem::detail::recursive_directory_iterator_increment(boost::filesystem::recursive_directory_iterator&, boost::system::error_code*)'
/usr/bin/ld: libbitcoin_wallet.a(libbitcoin_wallet_a-bdb.o): in function `boost::filesystem::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option::enum_type)':
/usr/local/include/boost/filesystem/operations.hpp:355: undefined reference to `boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, unsigned int, boost::system::error_code*)'

I am trying to compile a 32bit version of the software on Ubuntu 20.04. I did some research and this problem might occur when the libraries are not for the right architecture. I double check and I installed all libraries under the i386 tag. How can I solve this problem?