#16487: i386-elf-gcc doesn't compile

View: New views
6 Messages — Rating Filter:   Alert me  

#16487: i386-elf-gcc doesn't compile

by MacPorts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#16487: i386-elf-gcc doesn't compile
-----------------------------------+----------------------------------------
 Reporter:  msaeed999@...  |       Owner:  macports-tickets@...
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:  Port Bugs                            
Component:  ports                  |     Version:  1.6.0                                
 Keywords:                         |        Port:                                      
-----------------------------------+----------------------------------------
 I tried installing i386-elf-gcc on my Leopard OS, but it gets some errors
 while compilation.

 Here is my output:

 mahmood-mac:~ mahmood$ sudo /opt/local/bin/port install i386-elf-gcc

 --->  Fetching i386-elf-gcc

 --->  Verifying checksum(s) for i386-elf-gcc

 --->  Extracting i386-elf-gcc

 --->  Configuring i386-elf-gcc

 --->  Building i386-elf-gcc with target all

 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build

 /_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/build" && make all AR_FOR_TARGET=i386-elf-ar
 AS_FOR_TARGET=i386-elf-as LD_FOR_TARGET=i386-elf-ld NM_FOR_TARGET=i386
 -elf-nm RANLIB_FOR_TARGET=i386-elf-ranlib "

 returned error 2

 Command output: cc -no-cpp-precomp -c   -O2 -DIN_GCC -DCROSS_COMPILE  -W
 -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
 -Wno-long-long    -DHAVE_CONFIG_H    -I. -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/../include -I../intl
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/tree-optimize.c -o tree-optimize.o
 cc -no-cpp-precomp -c   -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-
 strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
 -DHAVE_CONFIG_H    -I. -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/../include -I../intl
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/cgraph.c -o cgraph.o
 cc -no-cpp-precomp -c   -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-
 strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
 -DHAVE_CONFIG_H    -I. -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/../include -I../intl
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/gcc-3.4.3/gcc/cgraphunit.c -o cgraphunit.o
 rm -rf libbackend.a
 ar rc 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
 cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o
 cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o
 debug.o df.o diagnostic.o dojump.o doloop.o dominance.o dwarf2asm.o
 dwarf2out.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 hooks.o ifcvt.o insn-attrtab.o insn-emit.o
 insn-modes.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 optabs.o options.o opts.o params.o postreload.o predict.o print-
 rtl.o print-tree.o value-prof.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 sreal.o stmt.o stor-layout.o
 stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o
 unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o
 et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o i386.o
 host-default.o hashtable.o tree-inline.o tree-optimize.o cgraph.o
 cgraphunit.o
 ranlib: file: libbackend.a(insn-peep.o) has no symbols
 ranlib: file: libbackend.a(reorg.o) has no symbols
 ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
 ranlib: file: libbackend.a(xcoffout.o) has no symbols
 ranlib libbackend.a
 ranlib: file: libbackend.a(insn-peep.o) has no symbols
 ranlib: file: libbackend.a(reorg.o) has no symbols
 ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
 ranlib: file: libbackend.a(xcoffout.o) has no symbols
 cc -no-cpp-precomp   -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-
 strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
 -DHAVE_CONFIG_H  -o cc1 \
                 c-parse.o c-lang.o c-pretty-print.o stub-objc.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-incpath.o cppdefault.o
 c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o
 libcpp.a  main.o libbackend.a ../libiberty/libiberty.a ../intl/libintl.a
 -L/opt/local/lib -liconv

 Undefined symbols:

   "_iconv_close", referenced from:

       __cpp_destroy_iconv in libcpp.a(cppcharset.o)

       __cpp_destroy_iconv in libcpp.a(cppcharset.o)

       __cpp_convert_input in libcpp.a(cppcharset.o)

   "_iconv", referenced from:

       _convert_using_iconv in libcpp.a(cppcharset.o)

       _convert_using_iconv in libcpp.a(cppcharset.o)

   "_iconv_open", referenced from:

       _init_iconv_desc in libcpp.a(cppcharset.o)

 ld: symbol(s) not found

 collect2: ld returned 1 exit status

 make[1]: *** [cc1] Error 1

 make: *** [all-gcc] Error 2

 Error: Status 1 encountered during processing.

 mahmood-mac:~ mahmood$

--
Ticket URL: <http://trac.macports.org/ticket/16487>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

Re: #16487: i386-elf-gcc doesn't compile

by MacPorts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#16487: i386-elf-gcc doesn't compile
------------------------------------+---------------------------------------
  Reporter:  msaeed999@...  |       Owner:  macports-tickets@...
      Type:  defect                 |      Status:  new                                  
  Priority:  Normal                 |   Milestone:  Port Bugs                            
 Component:  ports                  |     Version:  1.6.0                                
Resolution:                         |    Keywords:                                      
      Port:  i386-elf-gcc           |  
------------------------------------+---------------------------------------
Changes (by macsforever2000@...):

 * cc: msaeed999@... (removed)
  * port:  => i386-elf-gcc


Comment:

 If you install libiconv, and try it again, does that help?
 {{{
 sudo port install libiconv
 sudo port install i386-elf-gcc
 }}}
 Also, you should not need to specify the full path to the port command if
 you are setup correctly. See the
 [http://trac.macports.org/wiki/ProblemHotlist Problem Hotlist] if you find
 yourself needing that.

--
Ticket URL: <http://trac.macports.org/ticket/16487#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

Re: #16487: i386-elf-gcc doesn't compile

by MacPorts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#16487: i386-elf-gcc doesn't compile
------------------------------------+---------------------------------------
  Reporter:  msaeed999@...  |       Owner:  macports-tickets@...
      Type:  defect                 |      Status:  new                                  
  Priority:  Normal                 |   Milestone:  Port Bugs                            
 Component:  ports                  |     Version:  1.6.0                                
Resolution:                         |    Keywords:                                      
      Port:  i386-elf-gcc           |  
------------------------------------+---------------------------------------

Comment(by msaeed999@...):

 Sorry but that doesn't work.  libiconv was already installed

 {{{
 mahmood-mac:~ mahmood$ sudo port install libiconv; sudo port install i386
 -elf-gcc
 --->  Installing libiconv 1.12_0
 Error: Target org.macports.install returned: Registry error: libiconv
 @1.12_0 already registered as installed.  Please uninstall it first.
 Error: Status 1 encountered during processing.
 --->  Building i386-elf-gcc with target all
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386
 -elf-gcc/work/build" && make all AR_FOR_TARGET=i386-elf-ar
 AS_FOR_TARGET=i386-elf-as LD_FOR_TARGET=i386-elf-ld NM_FOR_TARGET=i386
 -elf-nm RANLIB_FOR_TARGET=i386-elf-ranlib " returned error 2
 Command output: make[2]: Nothing to be done for `all'.
 cc -no-cpp-precomp   -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-
 strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
 -DHAVE_CONFIG_H  -o cc1 \
                 c-parse.o c-lang.o c-pretty-print.o stub-objc.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-incpath.o cppdefault.o
 c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o
 libcpp.a  main.o libbackend.a ../libiberty/libiberty.a ../intl/libintl.a
 -L/opt/local/lib -liconv
 Undefined symbols:
   "_iconv_close", referenced from:
       __cpp_destroy_iconv in libcpp.a(cppcharset.o)
       __cpp_destroy_iconv in libcpp.a(cppcharset.o)
       __cpp_convert_input in libcpp.a(cppcharset.o)
   "_iconv", referenced from:
       _convert_using_iconv in libcpp.a(cppcharset.o)
       _convert_using_iconv in libcpp.a(cppcharset.o)
   "_iconv_open", referenced from:
       _init_iconv_desc in libcpp.a(cppcharset.o)
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make[1]: *** [cc1] Error 1
 make: *** [all-gcc] Error 2

 Error: Status 1 encountered during processing.
 mahmood-mac:~ mahmood$
 }}}

 P.S. thanks for the path configuration hint.

--
Ticket URL: <http://trac.macports.org/ticket/16487#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

Re: #16487: i386-elf-gcc doesn't compile

by MacPorts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#16487: i386-elf-gcc doesn't compile
------------------------------------+---------------------------------------
  Reporter:  msaeed999@...  |       Owner:  pguyot@...
      Type:  defect                 |      Status:  new                
  Priority:  Normal                 |   Milestone:  Port Bugs          
 Component:  ports                  |     Version:  1.6.0              
Resolution:                         |    Keywords:                    
      Port:  i386-elf-gcc           |  
------------------------------------+---------------------------------------
Changes (by macsforever2000@...):

  * owner:  macports-tickets@... => pguyot@...


Comment:

 Assigning to maintainer. I won't be able to test on an Intel Mac until
 tommorrow.

--
Ticket URL: <http://trac.macports.org/ticket/16487#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

Re: #16487: i386-elf-gcc doesn't compile

by MacPorts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#16487: i386-elf-gcc doesn't compile
------------------------------------+---------------------------------------
  Reporter:  msaeed999@...  |       Owner:  pguyot@...
      Type:  defect                 |      Status:  new                
  Priority:  Normal                 |   Milestone:  Port Bugs          
 Component:  ports                  |     Version:  1.6.0              
Resolution:                         |    Keywords:                    
      Port:  i386-elf-gcc           |  
------------------------------------+---------------------------------------

Comment(by macsforever2000@...):

 I am not able to install this on 10.5.4 Intel because of a problem
 installing i386-elf-binutils. I opened ticket #16515 to update it and
 hopefully allow me to install it.

--
Ticket URL: <http://trac.macports.org/ticket/16487#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

Re: #16487: i386-elf-gcc doesn't compile

by MacPorts :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#16487: i386-elf-gcc doesn't compile
------------------------------------+---------------------------------------
  Reporter:  msaeed999@...  |       Owner:  pguyot@...
      Type:  defect                 |      Status:  closed            
  Priority:  Normal                 |   Milestone:  Port Bugs          
 Component:  ports                  |     Version:  1.6.0              
Resolution:  fixed                  |    Keywords:                    
      Port:  i386-elf-gcc           |  
------------------------------------+---------------------------------------
Changes (by pguyot@...):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Fixed in r41443.

--
Ticket URL: <http://trac.macports.org/ticket/16487#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets@...
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets
LightInTheBox - Buy quality products at wholesale price!