From nobody Thu Nov 09 12:00:56 2023 X-Original-To: uboot@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SR0sN3sXnz50YCK for ; Thu, 9 Nov 2023 12:00:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SR0sN2cj0z4VJL for ; Thu, 9 Nov 2023 12:00:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699531256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YSgekboMYNRCLCLSABjiNxYh2o+AfyQsHnCQ3mnt36A=; b=FY+J4V8qLW2VPfWsbRmKZ2bgz2Fl1lPTl7Q5rF4/YdAx5buzhL0jV0ymNMbLpSD2GLBshI IgA7GC72vaQjUQjTy+ebu8CVbC4r6xz/EGS5Yr/OYwWB/9xJXq9ujLroJTixn/fp9oR5jJ x5ZI4XNH+0EYD2zEihPNVhVhuMZ1lVC9jTnRRHqOlj8Q6a+YvMJGx2LgedHgjb99cewQHx cWFdZDf6NbtsfylSXMN4VG0jiaq9naJt5HXycxJG+snYRZT/RoKq/jrYJVqD+cD9ydX1jQ SoS6dP6BaitgZg2ytZPEalOCrqTOsGALnn39u86r33X4IzcFMJdz6WVflkeHHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699531256; a=rsa-sha256; cv=none; b=dFp14Wem16oDSCJl7535hy5HM8NboCrd3sNgRGxwwq9LN7mRdf3+SUsum4oDRqCBIPF5KP aCpSjXUCs49EXX2KfWgf7R/qRI+GKxHHnI4CC2dagGCQ6mfCMq/gdBaXaBjYkkMdwFNr+6 6GDxVKRwcmwfYo0lbpY1ei+yKrvqEsoT2keOEgGsqKBqZXk55JtWUvfw8bPIYZFvM2NKHX xnMdxavAj0/0jc4/wrjVfeNZAESHR04nLVA9toVUpWSygFrr4vyvyEnHOowPm3v/VE1XGB h0Oob2rDiIB3CFFiq2qwSR/sgZKNV0sEZHO4cm1faBTAyDDRJybksMUfvXJsww== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SR0sN1hvYzb5 for ; Thu, 9 Nov 2023 12:00:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3A9C0ugR077701 for ; Thu, 9 Nov 2023 12:00:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A9C0unH077673 for uboot@FreeBSD.org; Thu, 9 Nov 2023 12:00:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: uboot@FreeBSD.org Subject: [Bug 274978] emulators/qemu-devel: conflict with sysutils/dtc (libftd, ftd.h) Date: Thu, 09 Nov 2023 12:00:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274978 --- Comment #1 from John Hein --- @bofh, Why in ports e6a3abc3c8260427f41eb4e50d57cc1bceb891f7, do you escape the " = in CONFIGURE_ARGS (like: --extra-ldflags=3D-L\"${LOCALBASE}/lib\" )? It seems= to get passed to meson, and ultimately to cc, and the quotes actually are interpreted as part of the path string. I made a change to test --enable-fdt=3Dsystem, and got this error from meso= n (in build/meson-logs/meson-log.txt): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Command line: `/usr/bin/cc -m64 -mcx16 '-L"/usr/lib"' '-L"/usr/local/lib"' -I/z1/local/users/jhein/.nobak/wd/usr/ports/emulators/qemu-devel/work/qemu-= 6c9ae1ce82b65faa3f266fd103729878cf11e07e -I/usr/local/include -I/usr/local/include/capstone /z1/local/users/jhein/.nobak/wd/usr/ports/emulators/qemu-devel/work/qemu-6c= 9ae1ce82b65faa3f266fd103729878cf11e07e/build/meson-private/tmpdriw8mlm/test= file.c -o /z1/local/users/jhein/.nobak/wd/usr/ports/emulators/qemu-devel/work/qemu-6c= 9ae1ce82b65faa3f266fd103729878cf11e07e/build/meson-private/tmpdriw8mlm/outp= ut.exe -O2 -pipe -fstack-protector-strong -fno-strict-aliasing '-DPREFIX=3D\""/usr/local\""' -D_FILE_OFFSET_BITS=3D64 -O0 -Werror=3Dimplicit-function-declaration -Wl,--start-group -lfdt -Wl,--end-g= roup -Wl,--allow-shlib-undefined -Wl,-rpath=3D/usr/local/lib` -> 1 stderr: ld: error: unable to find library -lfdt cc: error: linker command failed with exit code 1 (use -v to see invocation) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Notice that there are literal " marks in -L"/usr/lib" and -L"/usr/local/lib= " in the meson log. That is causing the search for libfdt to fail since the quo= te characters are literally included in the path name. When I remove the \ (i.e., change \" to just ") in emulators/qemu-devel/Makefile, then the -L/usr/local/lib search works (and = cc can find -lfdt). I'm just wondering what was the reason behind adding the backslash escaped quoting in -L\"/usr/local/lib\" (and -L\"/usr/lib\" as well). It is a bit unusual to see that, so there must have been something specific that drove = the addition of the backslash escapes. Maybe it is to address potential spaces= in LOCALBASE (admittedly that would be tricky to support and get the right quo= ting passed through all the layers in play here: the Makefile, configure shell script, and meson python), but that would not explain the quoting around the literal /usr/lib. --=20 You are receiving this mail because: You are on the CC list for the bug.=