I cannot build gcc3.3 or 3.4

Da Zheng zhengda1936 at gmail.com
Sun Aug 24 11:10:27 PDT 2008


I run "sudo port install apple-gcc33", but get another error:

/usr/bin/gcc-4.0  tclAppInit.o 
-L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_apple-gcc33/work/build/tcl/unix 
-ltcl8.0  -lc \
         -o tclsh
make[1]: *** No rule to make target `all'.  Stop.
make: *** [all-expect] Error 2

It's too bad if gcc 3.x cannot be built in Leopard.
Actually what I really want is to build qemu.
Does anyone know how to install qemu in Leopard?
I installed Q, a port of qemu for Leopard, but it doesn't work well.
Any ideas?

Zheng Da


Harry van der Wolf wrote:
> I see.
> Can you try to install apple-gcc33 instead of gcc34 or gcc33, so "sudo 
> port install apple-gcc33"?
>
> I'm affraid though it won't work. Tiger came with 4.01 for Intel and 
> 3.3 for PPC. On Leopard both ppc and i386 are now 4.x. I'm affraid 
> Apple dropped support for 3.3 on Leopard.
>
> Harry
>
>
> 2008/8/24 Da Zheng <zhengda1936 at gmail.com <mailto:zhengda1936 at gmail.com>>
>
>     Hi,
>
>     I tried to install qemu with macports, and it suggested me to
>     install gcc 3.x first.
>
>     da-zhengs-macbook:gcc-3.3 dazheng$ sudo port install qemu
>     --->  Configuring qemu
>     Error: Target org.macports.configure returned: configure failure:
>     shell command " cd
>     "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/work/qemu-0.9.0"
>     && ./configure --prefix=/opt/local --enable-coreaudio
>     --enable-cocoa " returned error 1
>     Command output: WARNING: "gcc" looks like gcc 4.x
>     Looking for gcc 3.x
>     gcc 3.x not found!
>     QEMU is known to have problems when compiled with gcc 4.x
>     It is recommended that you use gcc 3.x to build QEMU
>     To use this compiler anyway, configure with --disable-gcc-check
>
>
>     Error: Status 1 encountered during processing.
>
>     Zheng Da
>
>
>
>     Harry van der Wolf wrote:
>
>         Why do you need gcc 3.3?
>         If you are on Leopard and you have macports, you can install
>         qemu from macports. macports has a qemu and a qemu-usermode
>         port. Did you already try these?
>
>         Hary
>
>
>         2008/8/24 Da Zheng <zhengda1936 at gmail.com
>         <mailto:zhengda1936 at gmail.com> <mailto:zhengda1936 at gmail.com
>         <mailto:zhengda1936 at gmail.com>>>
>
>
>            Hello,
>
>            I try to install gcc3.x because I want to install qemu.
>            but I cannot install gcc3.3 or 3.4.
>            I use Mac OS X v10.5.4, and I have gcc v4.0.1.
>
>            When I tried to install gcc3.4, I got the error as follow:
>
>            da-zhengs-macbook:opt dazheng$ sudo port install gcc34
>            --->  Fetching gcc34
>            --->  Attempting to fetch gcc-3.4.6.tar.bz2 from
>            http://ftp.gnu.org/gnu//gcc/gcc-3.4.6
>            --->  Verifying checksum(s) for gcc34
>            --->  Extracting gcc34
>            --->  Configuring gcc34
>            --->  Building gcc34 with target bootstrap-lean
>            Error: Target org.macports.build returned: shell command " cd
>          
>          "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/build"
>            && make bootstrap-lean " returned error 2
>            Command output:         > tmp-mlib.h; \
>               else \
>                 /bin/sh
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/genmultilib
>            '' '' '' '' '' '' '' no \
>                   > tmp-mlib.h; \
>               fi
>            /bin/sh
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/move-if-change
>            tmp-mlib.h multilib.h
>            echo timestamp > s-mlib
>          
>          lsf="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/cp/lang-specs.h
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/f/lang-specs.h
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/java/lang-specs.h
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h";
>            for f in $lsf; do \
>                   echo "#include \"$f\""; \
>               done | sed
>          
>          's|/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/||'
>             > tmp-specs.h
>            /bin/sh
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/move-if-change
>            tmp-specs.h specs.h
>            echo timestamp > s-specs
>            (SHLIB_LINK='' \
>               SHLIB_MULTILIB=''; \
>               /usr/bin/gcc-4.0   -g  -DIN_GCC   -W -Wall -Wwrite-strings
>            -Wstrict-prototypes -Wmissing-prototypes -pedantic
>         -Wno-long-long
>            -Wno-error  -DHAVE_CONFIG_H    -I. -I.
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/.
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/../include
>            \
>             -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
>            -DSTANDARD_EXEC_PREFIX=\"/opt/local/lib/gcc-3.4/gcc/\"
>            -DSTANDARD_LIBEXEC_PREFIX=\"/opt/local/libexec/gcc/\"
>            -DDEFAULT_TARGET_VERSION=\"3.4.6\"
>            -DDEFAULT_TARGET_MACHINE=\"i686-apple-darwin9.4.0\"
>            -DSTANDARD_BINDIR_PREFIX=\"/opt/local/bin/\"
>            -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test
>         "X${SHLIB_LINK}" =
>            "X" ||
>            test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test
>            "X${SHLIB_MULTILIB}" = "X" || echo
>         "-DNO_SHARED_LIBGCC_MULTILIB"` \
>             -c
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c
>            -o gcc.o)
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:716:
>            warning: string length '2483' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:723:
>            warning: string length '636' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:906:
>            warning: string length '529' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:924:
>            warning: string length '608' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>            In file included from ./specs.h:4,
>                            from
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:957:
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h:27:
>            warning: string length '603' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/objc/lang-specs.h:42:
>            warning: string length '783' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:1095:
>            error: syntax error before ',' token
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc34/work/gcc-3.4.6/gcc/gcc.c:1506:
>            warning: string length '833' is greater than the length
>         '509' ISO C89
>            compilers are required to support
>            make[2]: *** [gcc.o] Error 1
>            make[1]: *** [stage1_build] Error 2
>            make: *** [bootstrap-lean] Error 2
>
>            Error: Status 1 encountered during processing.
>
>
>            When I installed gcc3.3, I got the error:
>
>            da-zhengs-macbook:var dazheng$ sudo port install gcc33
>            Password:
>            --->  Fetching gcc33
>            --->  Attempting to fetch gcc-core-3.3.6.tar.bz2 from
>            http://ftp.gnu.org/gnu//gcc/gcc-3.3.6
>            --->  Attempting to fetch gcc-g77-3.3.6.tar.bz2 from
>            http://ftp.gnu.org/gnu//gcc/gcc-3.3.6
>            --->  Attempting to fetch gcc-g++-3.3.6.tar.bz2 from
>            http://ftp.gnu.org/gnu//gcc/gcc-3.3.6
>            --->  Attempting to fetch gcc-objc-3.3.6.tar.bz2 from
>            http://ftp.gnu.org/gnu//gcc/gcc-3.3.6
>            --->  Verifying checksum(s) for gcc33
>            --->  Extracting gcc33
>            --->  Configuring gcc33
>            --->  Building gcc33 with target bootstrap-lean
>            Error: Target org.macports.build returned: shell command " cd
>          
>          "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc33/work/build"
>            && make bootstrap-lean " returned error 2
>            Command output: mv: rename cc1obj to stage1/cc1obj: No such
>         file or
>            directory
>            make[2]: [objc.stage1] Error 1 (ignored)
>            echo timestamp > stage1_copy
>            echo stage2_build > stage_last
>            (cd stage1 && rm -f `echo main.o libbackend.a alias.o
>         bb-reorder.o
>            bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o
>         cfgbuild.o
>            cfgcleanup.o cfglayout.o cfgloop.o cfgrtl.o combine.o
>         conflict.o
>            convert.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o
>         doloop.o
>            dominance.o dwarf2asm.o dwarf2out.o dwarfout.o emit-rtl.o
>         except.o
>            explow.o expmed.o expr.o final.o flow.o fold-const.o
>         function.o gcse.o
>            genrtl.o ggc-common.o global.o graph.o gtype-desc.o
>         haifa-sched.o
>            hashtable.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o
>         insn-extract.o
>            insn-opinit.o insn-output.o insn-peep.o insn-recog.o
>         integrate.o
>            intl.o
>            jump.o  langhooks.o lcm.o lists.o local-alloc.o loop.o mbchar.o
>            optabs.o
>            params.o predict.o print-rtl.o print-tree.o profile.o ra.o
>         ra-build.o
>            ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o
>         reg-stack.o
>            regclass.o regmove.o regrename.o reload.o reload1.o reorg.o
>         resource.o
>            rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o
>            sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o ssa.o
>            ssa-ccp.o ssa-dce.o stmt.o stor-layout.o stringpool.o timevar.o
>            toplev.o
>            tracer.o tree.o tree-dump.o tree-inline.o unroll.o varasm.o
>         varray.o
>            version.o vmsdbgout.o xcoffout.o et-forest.o ggc-page.o i386.o
>            darwin.o
>            c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o
>         c-lex.o
>            c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
>         c-common.o
>            c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o
>         libcpp.a
>            darwin-c.o cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o
>         cpptrad.o
>            cpphash.o cpperror.o cppinit.o cppdefault.o cppmain.o
>         hashtable.o
>            line-map.o mkdeps.o prefix.o mbchar.o *.c *.h gen*`)
>            echo timestamp > clean_s1
>            make CC=" stage1/xgcc -Bstage1/
>            -B/opt/local/i686-apple-darwin9.4.0/bin/" \
>                    STAGE_PREFIX=stage1/ \
>                    ADAC="\$(CC)" AR_FOR_TARGET="ar"
>         RANLIB_FOR_TARGET="ranlib"
>            CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
>            STRICT_WARN="-Wtraditional -pedantic -Wno-long-long"
>            libdir=/opt/local/lib/gcc-3.3 LANGUAGES="c gcov c++ f77 objc"
>            MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
>            stage1/xgcc -Bstage1/
>         -B/opt/local/i686-apple-darwin9.4.0/bin/ -c   -g
>            -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
>            -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
>            -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I.
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc33/work/gcc-3.3.6/gcc
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc33/work/gcc-3.3.6/gcc/.
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc33/work/gcc-3.3.6/gcc/config
>          
>          -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc33/work/gcc-3.3.6/gcc/../include
>          
>          /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc33/work/gcc-3.3.6/gcc/gengenrtl.c
>            -o gengenrtl.o
>            /var/tmp//ccImCiva.s:3020:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3037:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3054:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3071:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3088:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3105:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3122:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3139:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3156:indirect jmp without `*'
>            /var/tmp//ccImCiva.s:3173:indirect jmp without `*'
>            stage1/xgcc -Bstage1/
>         -B/opt/local/i686-apple-darwin9.4.0/bin/      -g -O2
>            -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
>            -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
>            -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengenrtl \
>                gengenrtl.o ../libiberty/libiberty.a
>            Undefined symbols:
>             "__init_keymgr", referenced from:
>                 ___darwin_gcc3_preregister_frame_info in crt2.o
>            ld: symbol(s) not found for inferred architecture i386
>            collect2: ld returned 1 exit status
>            make[2]: *** [gengenrtl] Error 1
>            make[1]: *** [stage2_build] Error 2
>            make: *** [bootstrap-lean] Error 2
>
>            Error: Status 1 encountered during processing.
>
>
>            Where is the problem? What should I do to install gcc 3.x?
>            Does anyone compile gcc 3.x in Leopard with or without
>         macports?
>
>            Best,
>            Zheng Da
>            _______________________________________________
>            macports-users mailing list
>            macports-users at lists.macosforge.org
>         <mailto:macports-users at lists.macosforge.org>
>            <mailto:macports-users at lists.macosforge.org
>         <mailto:macports-users at lists.macosforge.org>>
>
>            http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
>
>
>



More information about the macports-users mailing list