Opened 3 months ago

Closed 12 days ago

#65784 closed defect (fixed)

cssed build fail on Rosetta: archive member: libscintilla.a(scintilla-marshal.o) cputype (16777223) does not match previous archive members cputype (18)

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

Description

Fails to build on Rosetta. With gcc-4.2:

d ar cru libscintilla.a CallTip.o CellBuffer.o ContractionState.o DocumentAccessor.o Document.o Editor.o Indicator.o KeyMap.o KeyWords.o LineMarker.o PropSet.o RESearch.o ScintillaBase.o StyleContext.o Style.o UniConversion.o ViewStyle.o WindowAccessor.o XPM.o AutoComplete.o ExternalLexer.o PlatGTK.o ScintillaGTK.o LexYAML.o LexVHDL.o LexVerilog.o LexVB.o LexTeX.o LexTADS3.o LexSQL.o LexSpecman.o LexSmalltalk.o LexScriptol.o LexRuby.o LexRebol.o LexPython.o LexPS.o LexPOV.o LexPerl.o LexPB.o LexPascal.o LexOthers.o LexNsis.o LexMSSQL.o LexMPT.o LexMMIXAL.o LexMetapost.o LexMatlab.o LexLua.o LexLout.o LexLisp.o LexKix.o LexHTML.o LexHaskell.o LexGui4Cli.o LexFortran.o LexForth.o LexFlagship.o LexEScript.o LexErlang.o LexEiffel.o LexCSS.o LexCsound.o LexCrontab.o LexCPP.o LexConf.o LexCLW.o LexCaml.o LexBullant.o LexBasic.o LexBash.o LexBaan.o LexAVE.o LexAU3.o LexAsn1.o LexAsm.o LexAPDL.o LexAda.o scintilla-marshal.o
:info:build /opt/local/bin/ranlib: archive member: libscintilla.a(scintilla-marshal.o) cputype (16777223) does not match previous archive members cputype (18) (all members must match)
:info:build ranlib libscintilla.a
:info:build ranlib: archive member: libscintilla.a(scintilla-marshal.o) cputype (16777223) does not match previous archive members cputype (18) (all members must match)
:info:build make[3]: *** [libscintilla.a] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cssed/cssed/work/cssed-0.4.0/scintilla/gtk'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cssed/cssed/work/cssed-0.4.0/scintilla'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cssed/cssed/work/cssed-0.4.0'
:info:build make: *** [all] Error 2

And also with gcc12:

/opt/local/bin/ranlib: archive member: libscintilla.a(scintilla-marshal.o) cputype (16777223) does not match previous archive members cputype (18) (all members must match)
ranlib libscintilla.a
ranlib: archive member: libscintilla.a(scintilla-marshal.o) cputype (16777223) does not match previous archive members cputype (18) (all members must match)
make[3]: *** [libscintilla.a] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cssed/cssed/work/cssed-0.4.0/scintilla/gtk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cssed/cssed/work/cssed-0.4.0/scintilla'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_cssed/cssed/work/cssed-0.4.0'
make: *** [all] Error 2

Attachments (1)

cssed_rosetta.log (579.2 KB) - added by barracuda156 3 months ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 months ago by barracuda156

Setting configure.args-append --build=powerpc-apple-darwin${os.major} does not help here.

Changed 3 months ago by barracuda156

Attachment: cssed_rosetta.log added

comment:2 Changed 6 weeks ago by barracuda156

Okay, so the reason is clear:

10:~ svacchanda$ file /opt/local/var/macports/build/_opt_PPCRosettaPorts_editors_cssed/cssed/work/cssed-0.4.0/scintilla/gtk/scintilla-marshal.o 
/opt/local/var/macports/build/_opt_PPCRosettaPorts_editors_cssed/cssed/work/cssed-0.4.0/scintilla/gtk/scintilla-marshal.o: Mach-O 64-bit object x86_64

Somewhere arch flags are not passed.

comment:3 Changed 12 days ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In ccc83d1f6dbf12a001cc3f4b9f6223bc1ff4caa8/macports-ports (master):

cssed: fix the build
Credit to @kencu for fixing build with Clang
Fixes: #42008
Fixes: #65784

Note: See TracTickets for help on using tickets.