Producers of metals and other raw materials rose as the dollar weakened against other currencies, in anticipation of further stimulus from the Federal Reserve and the U.S. government.

Gold futures, which are particularly sensitive to moves in the dollar, had their largest one-day gain of September so far, rising 0.8% to $1953 an ounce.

September lumber futures closed Friday at $948 per thousand board feet, a record high, pushing to 48% its climb above the commodity's prepandemic high, a reflection of the continued strength in demand for new homes.

Write to Rob Curran at rob.curran@dowjones.com