Opened 2 years ago

#65508 assigned defect

nhc98 fails to build on Rosetta: wrong target

Reported by: barracuda156 Owned by: barracuda156
Priority: Low Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, rosetta, snowleopard Cc:
Port: nhc98

Description

Assigning this to myself to track the progress. Gonna try finding a fix.

ld: warning: in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/lib/ix86-Darwin10/main.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/lib/ix86-Darwin10/mutlib.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/lib/ix86-Darwin10/mutator.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/lib/ix86-Darwin10/Runtime.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
  "_primIntegerAddC", referenced from:
      _FR_Prelude_46primIntegerAdd in Prelude.a(PrimIntegerAdd.o)
  "_primGetProgName", referenced from:
      _FR_System_46primGetProgName_35 in Prelude.a(GetProgName.o)
  "_hFlushC", referenced from:
      _FR_IO_46hFlushC_35 in Prelude.a(HFlush.o)
  "_nhc_getPackedString", referenced from:
      _FR_Directory_46hs_95doesFileExist_35 in Prelude.a(DoesFileExist.o)
      _FR_IO_46openFileC_35 in Prelude.a(OpenFile.o)
  "_primIntegerQuotC", referenced from:
      _FR_Prelude_46primIntegerQuot in Prelude.a(PrimIntegerQuotRem.o)
  "_primIntFromInteger", referenced from:
      _FN_Prelude_46primIntFromInteger in Prelude.a(PrimIntFromInteger.o)
  "_CF_IO_46stdin", referenced from:
      _CF_Prelude_46getContents in Prelude.a(GetContents.o)
  "_primDoubleEqC", referenced from:
      _FR_NHC_46Internal_46_95eqDouble in Prelude.a(Internal.o)
  "_cExitWith", referenced from:
      _FN_System_46cExitWith in Prelude.a(CExitWith.o)
  "_primFloatEqC", referenced from:
      _FR_NHC_46Internal_46_95eqFloat in Prelude.a(Internal.o)
  "_CF_IO_46stderr", referenced from:
      _startLabel in CppIfdef.o
      _F0_Language_46Preprocessor_46Cpphs_46ReadFirst_46readFirst in ReadFirst.o
      _F0_NonStdTrace_46trace in Prelude.a(NonStdTrace.o)
  "_nhc_mkInt", referenced from:
      _FR_System_46cGetArg_35 in Prelude.a(GetArgs.o)
      _FR_IO_46hFlushC_35 in Prelude.a(HFlush.o)
      _FR_Time_46hs_95getClockTime_35 in Prelude.a(GetClockTime.o)
      _FR_NHC_46FFI_46ptrToInt in Prelude.a(Ptr.o)
      _FR_NHC_46FFI_46intToPtr in Prelude.a(Ptr.o)
      _FR_NHC_46FFI_46castPtr in Prelude.a(Ptr.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _FR_NHC_46FFI_46getErrNo_35 in Prelude.a(CError.o)
      _FR_NHC_46FFI_46intToAddr in Prelude.a(Addr.o)
      _FR_NHC_46FFI_46addrToInt in Prelude.a(Addr.o)
      _FR_NHC_46FFI_46foreignObjToAddr in Prelude.a(ForeignObj.o)
  "_derefForeignObj", referenced from:
      _FR_IO_46hFlushC_35 in Prelude.a(HFlush.o)
      _FR_IO_46hCloseC_35 in Prelude.a(HClose.o)
      _FR_NHC_46FFI_46foreignObjToAddr in Prelude.a(ForeignObj.o)
      _FR_IO_46hGetFileNameC in Prelude.a(HGetFileName.o)
  "_primForeignObjC", referenced from:
      _FR_NHC_46FFI_46primForeignObjC_35 in Prelude.a(ForeignObj.o)
  "_CF_IO_46stdout", referenced from:
      _F0_Main_46execute in cpphs.o
      _CF_Prelude_46putStr in Prelude.a(PutStr.o)
      _F0_Prelude_46putChar in Prelude.a(PutChar.o)
  "_nhc_mkPackedString", referenced from:
      _FR_System_46ptrToCString_35 in Prelude.a(GetArgs.o)
      _FR_System_46primGetProgName_35 in Prelude.a(GetProgName.o)
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
      _FR_Prelude_46primStrError in Prelude.a(StrError.o)
      _FR_IO_46hGetFileNameC in Prelude.a(HGetFileName.o)
  "_primIntegerNegC", referenced from:
      _FR_Prelude_46primIntegerNeg in Prelude.a(PrimIntegerNeg.o)
  "_hGetFileNameC", referenced from:
      _FR_IO_46hGetFileNameC in Prelude.a(HGetFileName.o)
  "_primIntegerEqC", referenced from:
      _FR_NHC_46Internal_46_95eqInteger in Prelude.a(Internal.o)
      _FR_Prelude_46primIntegerEq in Prelude.a(PrimIntegerEq.o)
  "_primIntegerMulC", referenced from:
      _FR_Prelude_46primIntegerMul in Prelude.a(PrimIntegerMul.o)
  "_primIntegerLeC", referenced from:
      _FR_Prelude_46primIntegerLe in Prelude.a(PrimIntegerLe.o)
  "_main", referenced from:
      start in crt1.10.6.o
  "_primIntegerLtC", referenced from:
      _FR_Prelude_46primIntegerLt in Prelude.a(PrimIntegerLt.o)
  "_reallyFreeForeignObj", referenced from:
      _F0_NHC_46FFI_46withForeignObj in Prelude.a(ForeignObj.o)
  "_primIntegerRemC", referenced from:
      _FR_Prelude_46primIntegerRem in Prelude.a(PrimIntegerQuotRem.o)
  "_unpackPS", referenced from:
      _FN_NHC_46PackedString_46unpackPS in Prelude.a(PrimUnpackPS.o)
  "_hCloseC", referenced from:
      _FR_IO_46hCloseC_35 in Prelude.a(HClose.o)
  "_get_double_value", referenced from:
      _FR_NHC_46Internal_46_95eqDouble in Prelude.a(Internal.o)
      _FR_NHC_46Internal_46_95eqDouble in Prelude.a(Internal.o)
  "_nhc_mkTuple12", referenced from:
      _hs_toCalendarTime in Prelude.a(ToCalendarTime_.o)
  "_primIntegerFromIntC", referenced from:
      _FR_Prelude_46primIntegerFromInt in Prelude.a(PrimIntegerFromInt.o)
  "_primPackString", referenced from:
      _FN_NHC_46PackedString_46primPackString in Prelude.a(PrimPackString.o)
  "_getErrNo", referenced from:
      _FR_NHC_46FFI_46getErrNo_35 in Prelude.a(CError.o)
  "_primIntegerSubC", referenced from:
      _FR_Prelude_46primIntegerSub in Prelude.a(PrimIntegerSub.o)
  "_cGetArg", referenced from:
      _FR_System_46cGetArg_35 in Prelude.a(GetArgs.o)
  "_openFileC", referenced from:
      _FR_IO_46openFileC_35 in Prelude.a(OpenFile.o)
  "_Fp", referenced from:
      _Fp$non_lazy_ptr in Prelude.a(GetArgs.o)
      _Fp$non_lazy_ptr in Prelude.a(HFlush.o)
      _Fp$non_lazy_ptr in Prelude.a(ToCalendarTime.o)
      _Fp$non_lazy_ptr in Prelude.a(DoesFileExist.o)
      _Fp$non_lazy_ptr in Prelude.a(Internal.o)
      _Fp$non_lazy_ptr in Prelude.a(Ptr.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerFromInt.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerQuotRem.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerEq.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerLe.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerLt.o)
      _Fp$non_lazy_ptr in Prelude.a(HClose.o)
      _Fp$non_lazy_ptr in Prelude.a(OpenFile.o)
      _Fp$non_lazy_ptr in Prelude.a(Addr.o)
      _Fp$non_lazy_ptr in Prelude.a(StrError.o)
      _Fp$non_lazy_ptr in Prelude.a(ForeignObj.o)
      _Fp$non_lazy_ptr in Prelude.a(HGetFileName.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerAdd.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerNeg.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerMul.o)
      _Fp$non_lazy_ptr in Prelude.a(PrimIntegerSub.o)
     (maybe you meant: _Fp$non_lazy_ptr)
  "_Sp", referenced from:
      _Sp$non_lazy_ptr in Prelude.a(GetArgs.o)
      _Sp$non_lazy_ptr in Prelude.a(HFlush.o)
      _Sp$non_lazy_ptr in Prelude.a(GetClockTime.o)
      _Sp$non_lazy_ptr in Prelude.a(ToCalendarTime.o)
      _Sp$non_lazy_ptr in Prelude.a(DoesFileExist.o)
      _Sp$non_lazy_ptr in Prelude.a(Internal.o)
      _Sp$non_lazy_ptr in Prelude.a(GetProgName.o)
      _Sp$non_lazy_ptr in Prelude.a(Ptr.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerFromInt.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerQuotRem.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerEq.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerLe.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerLt.o)
      _Sp$non_lazy_ptr in Prelude.a(HClose.o)
      _Sp$non_lazy_ptr in Prelude.a(CError.o)
      _Sp$non_lazy_ptr in Prelude.a(OpenFile.o)
      _Sp$non_lazy_ptr in Prelude.a(Addr.o)
      _Sp$non_lazy_ptr in Prelude.a(StrError.o)
      _Sp$non_lazy_ptr in Prelude.a(ForeignObj.o)
      _Sp$non_lazy_ptr in Prelude.a(HGetFileName.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerAdd.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerNeg.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerMul.o)
      _Sp$non_lazy_ptr in Prelude.a(PrimIntegerSub.o)
     (maybe you meant: _Sp$non_lazy_ptr)
  "_get_float_value", referenced from:
      _FR_NHC_46Internal_46_95eqFloat in Prelude.a(Internal.o)
      _FR_NHC_46Internal_46_95eqFloat in Prelude.a(Internal.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
strip /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/lib/ix86-Darwin10/cpphs
error: strip: can't open file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/lib/ix86-Darwin10/cpphs (No such file or directory)
gmake[1]: *** [Makefile.nhc98:61: fromC] Error 1
gmake[1]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22/src/cpphs'
gmake: *** [Makefile:398: targets/ix86-Darwin10/cpphs-gcc] Error 2
gmake: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/work/nhc98-1.22" && /opt/local/bin/gmake -j1 -w all 
Exit code: 2
Error: Failed to build nhc98: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_nhc98/nhc98/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port nhc98 failed

Change History (0)

Note: See TracTickets for help on using tickets.