"any small vessel or ship," early 15c., from French barque "boat" (15c.), from Late Latin barca, which is probably cognate with Vulgar Latin *barica (see barge (n.)). More precise sense of "three-masted ship fore-and-aft rigged on the mizzenmast" (17c.) often is spelled barque to distinguish it.
"utter an abrupt, explosive cry" (especially of dogs), Middle English berken (c. 1200), bark (late 15c.), from Old English beorcan "to bark," from Proto-Germanic *berkan (source also of Old Norse berkja "to bark"), of echoic origin. Related: Barked; barking. To bark at the moon "complain uselessly" is from 1650s. To bark up the wrong tree "mistake one's object, attack or pursue something other than what is intended" is U.S. colloquial, first attested 1832, from notion of hounds following the wrong scent.