America's shale boom has raised hopes of a revival in U.S. manufacturing, in part fueled by cheaper energy. But U.S. factories still are losing ground to rivals in Asia and Europe.

Much of the problem stems from steel, trucks, car parts, industrial machinery and furniture.

The U.S. deficit on trade in goods swelled in the first half to $371.59...