This phase I trial is studying the side effects and best dose of gemcitabine hydrochloride and alvocidib in treating patients with solid tumors. Drugs used in chemotherapy, such as gemcitabine hydrochloride and alvocidib, use different ways to stop tumor cells from dividing so they stop growing or die. Combining more than one drug may kill more tumor cells