Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#38826 closed defect (wontfix)

llvm-2.9 does not build on PPC Tiger 10.4.11

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: llvm-2.9

Description

This seems to be the error:

llvm[1]: Compiling APFloat.cpp for Release+Debug build
if /usr/bin/g++-3.3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Os  -g -fno-exceptions -fno-common -Woverloaded-virtual -Wcast-qual   -mmacosx-version-min=10.4 -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.d.tmp" -MT "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.o" -MT "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.d" APFloat.cpp -o /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.o ; \
        then /bin/mv -f "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.d.tmp" "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.d"; else /bin/rm "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.d.tmp"; exit 1; fi
cc1plus: error: invalid option `macosx-version-min=10.4'
rm: /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.d.tmp: No such file or directory
gmake[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug/APFloat.o] Error 1
gmake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support'
gmake: *** [all] Error 1
gmake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9" && /opt/local/bin/gmake -w all 
Exit code: 2
Error: org.macports.build for port llvm-2.9 returned: command execution failed
DEBUG: Error code: CHILDSTATUS 17681 2
DEBUG: Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: targets not executed for llvm-2.9: org.macports.install org.macports.build org.macports.destroot
Please see the log file for port llvm-2.9 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/main.log
DEBUG: Failed to locate 'xar' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Error: Unable to upgrade port: 1

Tiger does not seem to have xar either. And the directory /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-2.9/llvm-2.9/work/llvm-2.9/lib/Support/Release+Debug is empty, has only a .dir file.

Attachments (1)

main.log (37.8 KB) - added by ballapete (Peter "Pete" Dyballa) 12 years ago.
main.log

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

comment:1 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

It's failing because it's using /usr/bin/g++-3.3 ...

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Are you on base trunk? If not, can you please update?

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

And it's using g++-3.3 because 4.0 is blacklisted. If you don't want 3.3, blacklist that too.

comment:4 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

It should be using apple-gcc-4.2 instead of gcc-3.3. I don't want to put hacks into the Portfile for Tiger is he can just update base to trunk.

comment:5 in reply to:  4 ; Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

It should be using apple-gcc-4.2 instead of gcc-3.3. I don't want to put hacks into the Portfile for Tiger is he can just update base to trunk.

Here are the compilers of my Tiger system:

pete 287 /\ l /usr/bin | egrep 'gcc|llvm'
lrwxr-xr-x  1 root wheel        7 16. Apr 20:04 cc -> gcc-4.0
lrwxr-xr-x  1 root wheel        7 16. Apr 20:04 gcc -> gcc-4.0
-r-xr-xr-x  1 root wheel   260616 20. Apr 2007  gcc-3.3
-rwxr-xr-x  1 root wheel    80168 20. Apr 2007  gcc-4.0
-rwxr-xr-x  1 root wheel   343972 20. Apr 2007  i686-apple-darwin8-gcc-4.0.1
-rwxr-xr-x  1 root wheel   352256 20. Apr 2007  powerpc-apple-darwin8-gcc-4.0.1
pete 288 /\ l  /opt/local/bin | egrep 'gcc|llvm'
lrwxr-xr-x   1 root     admin       28 11. Apr 2012  gcc -> /opt/local/bin/gcc-apple-4.2
-rwxr-xr-x   1 macports admin    51804 15. Jan 19:30 gcc-apple-4.2
-rwxr-xr-x   3 root     admin   498796 16. Feb 14:25 gcc-mp-4.3
-rwxr-xr-x   1 root     admin    16487 16. Feb 14:25 gccbug-mp-4.3
lrwxr-xr-x   1 root     admin       29 25. Apr 2012  llvm-ar -> /opt/local/bin/llvm-ar-mp-2.9
-rwxr-xr-x   1 root     admin       62 16. Nov 19:56 llvm-ar-mp-2.9
lrwxr-xr-x   1 root     admin       29 25. Apr 2012  llvm-as -> /opt/local/bin/llvm-as-mp-2.9
-rwxr-xr-x   1 root     admin       62 16. Nov 19:56 llvm-as-mp-2.9
lrwxr-xr-x   1 root     admin       37 25. Apr 2012  llvm-bcanalyzer -> /opt/local/bin/llvm-bcanalyzer-mp-2.9
-rwxr-xr-x   1 root     admin       70 16. Nov 19:56 llvm-bcanalyzer-mp-2.9
lrwxr-xr-x   1 root     admin       33 25. Apr 2012  llvm-config -> /opt/local/bin/llvm-config-mp-2.9
-rwxr-xr-x   1 root     admin       66 16. Nov 19:56 llvm-config-mp-2.9
lrwxr-xr-x   1 root     admin       31 25. Apr 2012  llvm-diff -> /opt/local/bin/llvm-diff-mp-2.9
-rwxr-xr-x   1 root     admin       64 16. Nov 19:56 llvm-diff-mp-2.9
lrwxr-xr-x   1 root     admin       30 25. Apr 2012  llvm-dis -> /opt/local/bin/llvm-dis-mp-2.9
-rwxr-xr-x   1 root     admin       63 16. Nov 19:56 llvm-dis-mp-2.9
lrwxr-xr-x   1 root     admin       34 25. Apr 2012  llvm-extract -> /opt/local/bin/llvm-extract-mp-2.9
-rwxr-xr-x   1 root     admin       67 16. Nov 19:56 llvm-extract-mp-2.9
lrwxr-xr-x   1 root     admin       29 25. Apr 2012  llvm-ld -> /opt/local/bin/llvm-ld-mp-2.9
-rwxr-xr-x   1 root     admin       62 16. Nov 19:56 llvm-ld-mp-2.9
lrwxr-xr-x   1 root     admin       31 25. Apr 2012  llvm-link -> /opt/local/bin/llvm-link-mp-2.9
-rwxr-xr-x   1 root     admin       64 16. Nov 19:56 llvm-link-mp-2.9
lrwxr-xr-x   1 root     admin       29 25. Apr 2012  llvm-mc -> /opt/local/bin/llvm-mc-mp-2.9
-rwxr-xr-x   1 root     admin       62 16. Nov 19:56 llvm-mc-mp-2.9
lrwxr-xr-x   1 root     admin       29 25. Apr 2012  llvm-nm -> /opt/local/bin/llvm-nm-mp-2.9
-rwxr-xr-x   1 root     admin       62 16. Nov 19:56 llvm-nm-mp-2.9
lrwxr-xr-x   1 root     admin       34 25. Apr 2012  llvm-objdump -> /opt/local/bin/llvm-objdump-mp-2.9
-rwxr-xr-x   1 root     admin       67 16. Nov 19:56 llvm-objdump-mp-2.9
lrwxr-xr-x   1 root     admin       31 25. Apr 2012  llvm-prof -> /opt/local/bin/llvm-prof-mp-2.9
-rwxr-xr-x   1 root     admin       64 16. Nov 19:56 llvm-prof-mp-2.9
lrwxr-xr-x   1 root     admin       33 25. Apr 2012  llvm-ranlib -> /opt/local/bin/llvm-ranlib-mp-2.9
-rwxr-xr-x   1 root     admin       66 16. Nov 19:56 llvm-ranlib-mp-2.9
lrwxr-xr-x   1 root     admin       31 25. Apr 2012  llvm-stub -> /opt/local/bin/llvm-stub-mp-2.9
-rwxr-xr-x   1 root     admin       64 16. Nov 19:56 llvm-stub-mp-2.9
lrwxr-xr-x   1 root     admin       28 25. Apr 2012  llvm-tblgen -> /opt/local/bin/tblgen-mp-2.9
lrwxr-xr-x   1 root     admin       27 25. Apr 2012  llvmc -> /opt/local/bin/llvmc-mp-2.9
-rwxr-xr-x   1 root     admin       60 16. Nov 19:56 llvmc-mp-2.9
-rwxr-xr-x   1 macports admin   224088 15. Jan 19:30 powerpc-apple-darwin8-gcc-apple-4.2.1
-rwxr-xr-x   3 root     admin   498796 16. Feb 14:25 ppc-apple-darwin8-gcc-4.3.6
-rwxr-xr-x   3 root     admin   498796 16. Feb 14:25 ppc-apple-darwin8-gcc-mp-4.3

comment:6 in reply to:  5 ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jeremyhu@…:

It should be using apple-gcc-4.2 instead of gcc-3.3.

On trunk, yes; on the released version 2.1.3, no.

Replying to Peter_Dyballa@…:

Here are the compilers of my Tiger system:

Use gcc-apple-4.2. If you were on trunk this would happen automatically but on 2.1.3 it instead tries gcc 3.3 first which as we see doesn't work.

sudo port clean llvm-2.9
sudo port install llvm-2.9 configure.compiler=apple-gcc-4.2

comment:7 in reply to:  6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: wontfix
Status: newclosed

Replying to ryandesign@…:

Replying to jeremyhu@…:

It should be using apple-gcc-4.2 instead of gcc-3.3.

On trunk, yes; on the released version 2.1.3, no.

Right, but this is Tiger (which is not supported), so if the fix is to update base to trunk, that seems reasonable to me.

If you don't want to use trunk base, you can force the compiler as Ryan mentioned above.

comment:8 in reply to:  6 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign@…:

Use gcc-apple-4.2. If you were on trunk this would happen automatically but on 2.1.3 it instead tries gcc 3.3 first which as we see doesn't work.

sudo port clean llvm-2.9
sudo port install llvm-2.9 configure.compiler=apple-gcc-4.2

Overnight the last command succeeded to build llvm-2.9!

Note: See TracTickets for help on using tickets.