[MacPorts] #42594: llvm-3.3 on PPC SnowLeopard has a problem in configure script
#42594: llvm-3.3 on PPC SnowLeopard has a problem in configure script -----------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: llvm-3.3 -----------------------------+-------------------------------- This is the start of the configure step: {{{ ---> Configuring llvm-3.3 DEBUG: Using compiler 'Xcode GCC 4.2' DEBUG: Executing org.macports.configure (llvm-3.3) DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-Os -arch ppc' CXXFLAGS='-Os -arch ppc' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/.CC_PRINT_OPTIONS' F90FLAGS='-Os -m32' LDFLAGS='-arch ppc' OBJC='/usr/bin/gcc-4.2' OBJCXX='/usr/bin/g++-4.2' FCFLAGS='-Os -m32' INSTALL='/usr/bin/install -c' OBJCFLAGS='-Os -arch ppc' OBJCXXFLAGS='-Os -arch ppc' FFLAGS='-Os -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src" && ./configure --build=powerpc-apple-darwin9 --enable-bindings=none --enable-libffi --enable-shared --enable-jit --enable-optimized --disable- profiling --enable-pic --enable-debug-symbols --disable-debug-runtime --prefix="/opt/local/libexec/llvm-3.3" --with-optimize-option=-Os' DEBUG: Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src" && ./configure --build=powerpc-apple-darwin9 --enable-bindings=none --enable-libffi --enable-shared --enable-jit --enable-optimized --disable- profiling --enable-pic --enable-debug-symbols --disable-debug-runtime --prefix="/opt/local/libexec/llvm-3.3" --with-optimize-option=-Os ./configure: line 1990: -Os: command not found ./configure: line 1991: -Os: command not found checking for C compiler default output file name... a.out }}} There is no further occurrence and the build succeeded and did not leave a LOG file. -- Ticket URL: <https://trac.macports.org/ticket/42594> MacPorts <http://www.macports.org/> Ports system for OS X
#42594: llvm-3.3: ./configure: line 1990: -Os: command not found ------------------------------+------------------------ Reporter: Peter_Dyballa@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: llvm-3.3 | ------------------------------+------------------------ Changes (by ryandesign@…): * cc: jeremyhu@… (removed) * owner: macports-tickets@… => jeremyhu@… Comment: Something similar occurs to me on Mavericks: {{{ DEBUG: Executing command line: cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src" && ./configure --build=x86_64-apple-darwin13 --disable-dependency-tracking --enable-bindings=none --enable-libffi --enable-shared --enable-jit --enable-optimized --disable-profiling --enable-pic --enable-debug-symbols --disable-debug-runtime --prefix="/opt/local/libexec/llvm-3.3" ./configure: line 1990: -pipe: command not found ./configure: line 1991: -pipe: command not found checking for C compiler default output file name... a.out }}} Lines 1990-1991 of the configure script read: {{{ ${CFLAGS=} ${CXXFLAGS=} }}} I don't know what that's supposed to mean. In llvm-3.2, which does not produce this message, these lines are absent. In llvm-3.4 and llvm-3.5, which do not produce this message, the lines instead read: {{{ : ${CFLAGS=} : ${CXXFLAGS=} }}} I still don't know what that's supposed to mean. -- Ticket URL: <https://trac.macports.org/ticket/42594#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42594: llvm-3.3: ./configure: line 1990: -Os: command not found ------------------------------+------------------------ Reporter: Peter_Dyballa@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: llvm-3.3 | ------------------------------+------------------------ Comment (by larryv@…): Replying to [comment:1 ryandesign@…]:
Lines 1990-1991 of the configure script read:
{{{ ${CFLAGS=} ${CXXFLAGS=} }}}
I don't know what that's supposed to mean.
These are special shell [http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag... parameter expansions], intended to assign default values. Given an expansion `${FOO=bar}`: - If `FOO` has a value (including null), that value is substituted. - If `FOO` is unset, it is assigned the value `bar`, which is then substituted. So these lines are intended to set `CFLAGS` and `CXXFLAGS` to be null if they aren’t already set in the invoking environment. It’s a bit of an obtuse method of accomplishing this.
In llvm-3.2, which does not produce this message, these lines are absent. In llvm-3.4 and llvm-3.5, which do not produce this message, the lines instead read:
{{{ : ${CFLAGS=} : ${CXXFLAGS=} }}}
I still don't know what that's supposed to mean.
The [http://pubs.opengroup.org/onlinepubs/009695399/utilities/colon.html colon] utility is a kind of weird no-op, except it still expands its arguments. So this accomplishes the same default-value behavior, except it avoids invoking a nonexistent command composed of compiler flags. -- Ticket URL: <https://trac.macports.org/ticket/42594#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42594: llvm-3.3: ./configure: line 1990: -Os: command not found ------------------------------+------------------------ Reporter: Peter_Dyballa@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: duplicate | Keywords: Port: llvm-3.3 | ------------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => duplicate Comment: http://llvm.org/bugs/show_bug.cgi?id=16724 #39761 -- Ticket URL: <https://trac.macports.org/ticket/42594#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts