[MacPorts] #19146: llvm-gcc42 fails to build

MacPorts noreply at macports.org
Fri Apr 3 07:58:22 PDT 2009


#19146: llvm-gcc42 fails to build
------------------------------------------+---------------------------------
 Reporter:  varkentje@…                   |       Owner:  macports-tickets@…                   
     Type:  defect                        |      Status:  new                                  
 Priority:  Normal                        |   Milestone:  Port Bugs                            
Component:  ports                         |     Version:  1.7.1                                
 Keywords:                                |        Port:  llvm-gcc42                           
------------------------------------------+---------------------------------
 Port llvm-gcc42 fails because it cannot find a type definition for
 AnchorDesc. This is on MacPorts-1.7.1 with all installed ports upgraded.

 {{{
  sudo port install llvm-gcc42
 --->  Fetching llvm-gcc42
 --->  Attempting to fetch llvm-gcc-4.2-2.4.source.tar.gz from
 http://trd.no.distfiles.macports.org/llvm-gcc42
 --->  Verifying checksum(s) for llvm-gcc42
 --->  Extracting llvm-gcc42
 --->  Configuring llvm-gcc42
 --->  Building llvm-gcc42
 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_llvm-gcc42/work/build" && make all " returned
 error 2
 Command output: ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:72: error:
 ISO C++ forbids declaration of 'AnchorDesc' with no type
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:72: error: expected ';'
 before '*' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:73: error: ISO C++ forbids
 declaration of 'AnchorDesc' with no type
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:73: error: expected ';'
 before '*' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:74: error: 'DebugInfoDesc'
 was not declared in this scope
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:74: error: template argument
 1 is invalid
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:74: error: template argument
 2 is invalid
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:76: error: ISO C++ forbids
 declaration of 'SubprogramDesc' with no type
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:76: error: expected ';'
 before '*' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:87: error: expected ';'
 before '(' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:91: error: expected ';'
 before '(' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:121: error: ISO C++ forbids
 declaration of 'TypeDesc' with no type
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:121: error: expected ';'
 before '*' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:125: error: ISO C++ forbids
 declaration of 'CompileUnitDesc' with no type
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-debug.h:125: error: expected ';'
 before '*' token
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp: In function 'void
 createOptimizationPasses()':
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:411: error:
 'createAddReadAttrsPass' was not declared in this scope
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:472: error: expected
 type-specifier before 'PrintModulePass'
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:472: error: expected `)'
 before 'PrintModulePass'
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:472: error: no matching
 function for call to 'llvm::PassManager::add(int*)'
 /opt/local/lib/llvm/src/include/llvm/PassManager.h:57: note: candidates
 are: virtual void llvm::PassManager::add(llvm::Pass*)
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp: In function 'void
 llvm_asm_file_end()':
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:660: error: expected
 type-specifier before 'PrintModulePass'
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:660: error: expected `)'
 before 'PrintModulePass'
 ../../llvm-gcc4.2-2.4.source/gcc/llvm-backend.cpp:660: error: no matching
 function for call to 'llvm::PassManager::add(int*)'
 /opt/local/lib/llvm/src/include/llvm/PassManager.h:57: note: candidates
 are: virtual void llvm::PassManager::add(llvm::Pass*)
 make[3]: *** [llvm-backend.o] Error 1
 make[2]: *** [all-stage1-gcc] Error 2
 make[1]: *** [stage1-bubble] Error 2
 make: *** [all] Error 2

 Error: Status 1 encountered during processing.

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/19146>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list