Rescuers tried to free dozens of people believed trapped in the concrete rubble after an eight-story building that housed garment factories collapsed, killing at least 87. Workers had complained about cracks in the structure before it came tumbling down, but were assured it was safe.

Searchers were clearing the jumbled mess of concrete with drills or their bare hands, passing water and flashlights to those pinned inside the building near Bangladesh’s capital of Dhaka.

“I gave them whistles, water, torchlights. I heard them cry. We can’t leave them behind this way,” said fire official Abul Khayer. Rescue operations illuminated by floodlights continued through the night.

The disaster came less than five months after a factory fire killed 112 people and underscored the unsafe conditions in Bangladesh’s massive garment industry.

Workers said they had hesitated to go to into the building on Wednesday morning because it had developed such large cracks a day earlier that it even drew the attention of local news channels.

Abdur Rahim, who worked on the fifth floor, said a factory manager gave assurances that there was no problem, so employees went inside.

“After about an hour or so, the building collapsed suddenly,” Rahim said. He next remembered regaining consciousness outside.

On a visit to the site, Bangladesh Home Minister Muhiuddin Khan Alamgir told reporters the building had violated construction codes and “the culprits would be punished.”

Among the textile businesses in the building were Phantom Apparels Ltd., New Wave Style Ltd., New Wave Bottoms Ltd. and New Wave Brothers Ltd., which make clothing for major brands including The Children’s Place, Dress Barn, and Primark.

Jane Singer, a spokeswoman for The Children’s Place, said that “while one of the garment factories located in the building complex has produced apparel for The Children’s Place, none of our product was in production at the time of this accident.”

Dress Barn said that to its knowledge, it had “not purchased any clothing from that facility since 2010. We work with suppliers around the world to manufacture our clothing, and have a supply chain transparency program to protect the rights of workers and their safety.”

Primark, a major British clothing retailer, confirmed that one of the suppliers it uses to produce some of its goods was located on the second floor of the building.

In a statement, Primark said it was “shocked and deeply saddened by the appalling incident.” It added that it has been working with other retailers to review the country’s approach to factory standards and will now push for this review to include building integrity.

Meanwhile, Primark’s ethical trade team is working to collect information, assess which communities the workers come from, and to provide support “where possible.”

John Howe, chief financial officer and executive vice president for Cato, a women’s clothing retailer, said that it didn’t contract with any of the factories directly but it’s currently investigating what its “ties” were.

Howe said that one of Cato’s domestic importers could have used one of the factories to fulfill some of the orders the retailer had placed. It’s expected to have more information by today.

Kevin Gardner, a spokesman at Wal-Mart Stores, Inc., the second-largest clothing producer in Bangladesh, said the company is investigating to see if a factory in the building was currently producing for the chain.

“We remain committed and are actively engaged in promoting stronger safety measures, and that work continues,” Gardner added.

Reports suggested the death toll was likely to rise.