In a large nonreactive Dutch oven, heat oil over medium heat. Add onion; cook until tender, about 3 minutes. Stir in garlic; cook for 30 seconds. Stir in flour; cook, stirring constantly, for 1 minute.
Stir in stock, tomatoes, sugar, basil, salt, and pepper, and bring to a boil, stirring frequently. Cover, reduce heat, and simmer for 40 minutes.