Your statements are the negations of existence and uniqueness of factorizations into irreducibles. Since PID $\Rightarrow $ existence and uniqueness, by contrapositive, negating either $\Rightarrow \lnot \rm PID,\,$ hence some nonprincipal ideal exists. Indeed, one of the ideals assumed principal in these proofs must fail to be principal for the proof to break down - which yields your sought "construction".
For example, let's consider the case of uniqueness. If that fails then so too does Euclid's Lemma, and we can state that in a form that makes the nonprincipality explicit as below - which is the common Bezout-based proof of Euclid's Lemma recast into (principal) ideal form (recall that "contains" = "divides" for principal ideals, i.e. $\,(d)\supseteq (c)\!\iff\! d\mid c\,)$
Euclid's Lemma $ $ If $\,(a,b)\,$ is principal then if $\,a,b\,$ are coprime and $\,a\mid bc\,$ then $\,a\mid c$
Proof $\,\ (a,b)=(d)\Rightarrow d\mid a,b\,$ coprimes, so $\,d\,$ is a unit, so $\color{#c00}{(a,b)=(d)=(1)}\,$ therefore $\, (a)\supseteq (ac),(bc)\Rightarrow (a)\supseteq (ac,bc)=\color{#c00}{(a,b)}(c) = (c)\Rightarrow a\mid c.\,$
Therefore if Euclid's Lemma fails, i.e. $\,a,b\,$ are coprime $\,a\mid bc,\, a\nmid c\,$ then $\,(a,b)\,$ is nonprincipal. The same method works to deduce nonexistence of gcds if we replace ideals by gcds.
Similarly the common proof of existence of factorization into irreducibles uses ACCP (ascending chain condition for principal ideals) to deduce that ascending unions are principal, so if existence fails then some such union must be a nonprincipal ideal. But we can't judge if that satisfies your notion of "constructive" since you don't define it.
Remark $ $ More generally a domain is a PID $\!\iff\! $ it satisfies ACCP and is Bezout, i.e. every two-generated ideal is principal $(a,b) = (c)\ $ [$\!\iff\!$ every finitely generated ideal is principal].
For some explicit examples, the ring of all algebraic integers is Bezout and is closed under sqrt, so given any nonunit $a$ (e.g. $a=2$) we can generate an infinite properly ascending chain by repeatedly taking sqrts $(a) \subsetneq (a^{1/2}) \subsetneq (a^{1/4}) \subsetneq \ldots $ The union of this chain is a nonprincipal ideal (cf. standard argument in Thomas's answer). Otoh, any non-UFD (quadratic) number ring satsfies ACCP, but is not Bezout (number rings, being $1$ dimensional, are PID $\!\iff\!$ UFD)