Software > Programmieren, Kompilieren
Welches GCC fuer Solaris 10
signal_15:
und so wie ich's mir dachte. ist voll in die hose gegangen. geht schon los mit sachen wie "ld: fatal: file Screen.o: section .group%cc_00000000_B255D78120TabPlacementMenuItemE: has invalid sh_info: 4294967295". vielleicht sagt dir das ja was.
--- Code: ---g++ -g -O2 -I/usr/openwin/include -DSHAPE -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -o fluxbox ArrowButton.o FbAtoms.o FbWinFrame.o FbWinFrameTheme.o fluxbox.o Keys.o main.o Netizen.o RootTheme.o FbRootWindow.o Screen.o ScreenResources.o Slit.o SlitTheme.o SlitClient.o WinButton.o WinButtonTheme.o Window.o Workspace.o FbCommands.o LayerMenu.o IntResMenuItem.o FbMenu.o WinClient.o Xutil.o CurrentWindowCmd.o WorkspaceCmd.o CommandParser.o FbCommandFactory.o Shape.o MenuTheme.o Container.o TextTheme.o BorderTheme.o CommandDialog.o SendToMenu.o Parser.o FbMenuParser.o StyleMenuItem.o RootCmdMenuItem.o MenuCreator.o IconMenu.o WorkspaceMenu.o HeadArea.o Resources.o WindowCmd.o FocusControl.o CascadePlacement.o ColSmartPlacement.o RowSmartPlacement.o ScreenPlacement.o UnderMousePlacement.o WinClientUtil.o AttentionNoticeHandler.o Ewmh.o Gnome.o Remember.o RegExp.o ClientPattern.o Toolbar.o ToolbarTheme.o ToolbarItem.o ClockTool.o WorkspaceNameTool.o IconbarTool.o IconbarTheme.o ToolTheme.o IconButton.o SystemTray.o GenericTool.o ButtonTool.o ButtonTheme.o ToolFactory.o defaults.o -L/usr/openwin/lib -lSM -lICE FbTk/libFbTk.a /usr/local/lib/libiconv.so -L/usr/local/lib -L/usr/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -lnsl -lsocket -lX11 -lXext -L/usr/sfw/lib -L/usr/openwin/sfw/lib -lXft /usr/local/lib/libfreetype.so -lz -lfontconfig -lXrender -lXpm -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/openwin/lib -Wl,-R -Wl,/usr/sfw/lib -Wl,-R -Wl,/usr/openwin/lib:/usr/openwin/sfw/lib
ld: fatal: file Screen.o: section .group%cc_00000000_B255D78120TabPlacementMenuItemE: has invalid sh_info: 4294967295
ld: fatal: file Screen.o: section .gnu.linkonce.r._ZTVN38_GLOBAL__N_Screen%cc_00000000_B255D78120TabPlacementMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Screen.o: section .gnu.linkonce.r._ZTIN38_GLOBAL__N_Screen%cc_00000000_B255D78120TabPlacementMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Screen.o: section .gnu.linkonce.r._ZTSN38_GLOBAL__N_Screen%cc_00000000_B255D78120TabPlacementMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Screen.o: section .group%cc_00000000_B255D78120TabPlacementMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Window.o: section .group%cc_00000000_A503ACD712SetClientCmdE: has invalid sh_info: 4294967295
ld: fatal: file Window.o: section .gnu.linkonce.r._ZTVN38_GLOBAL__N_Window%cc_00000000_A503ACD712SetClientCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Window.o: section .gnu.linkonce.r._ZTIN38_GLOBAL__N_Window%cc_00000000_A503ACD712SetClientCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Window.o: section .gnu.linkonce.r._ZTSN38_GLOBAL__N_Window%cc_00000000_A503ACD712SetClientCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Window.o: section .group%cc_00000000_A503ACD712SetClientCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Workspace.o: section .group%cc_00000000_3F4AFB4014ClientMenuItemE: has invalid sh_info: 4294967295
ld: fatal: file Workspace.o: section .gnu.linkonce.r._ZTVN41_GLOBAL__N_Workspace%cc_00000000_3F4AFB4014ClientMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Workspace.o: section .gnu.linkonce.r._ZTIN41_GLOBAL__N_Workspace%cc_00000000_3F4AFB4014ClientMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Workspace.o: section .gnu.linkonce.r._ZTSN41_GLOBAL__N_Workspace%cc_00000000_3F4AFB4014ClientMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Workspace.o: section .group%cc_00000000_3F4AFB4014ClientMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file AttentionNoticeHandler.o: section .group%cc_00000000_B125FA6819ToggleFrameFocusCmdE: has invalid sh_info: 4294967295
ld: fatal: file AttentionNoticeHandler.o: section .gnu.linkonce.r._ZTVN54_GLOBAL__N_AttentionNoticeHandler%cc_00000000_B125FA6819ToggleFrameFocusCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file AttentionNoticeHandler.o: section .gnu.linkonce.r._ZTIN54_GLOBAL__N_AttentionNoticeHandler%cc_00000000_B125FA6819ToggleFrameFocusCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file AttentionNoticeHandler.o: section .gnu.linkonce.r._ZTSN54_GLOBAL__N_AttentionNoticeHandler%cc_00000000_B125FA6819ToggleFrameFocusCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file AttentionNoticeHandler.o: section .group%cc_00000000_B125FA6819ToggleFrameFocusCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Remember.o: section .group%cc_00000000_B262CE9316RememberMenuItemE: has invalid sh_info: 4294967295
ld: fatal: file Remember.o: section .gnu.linkonce.r._ZTVN40_GLOBAL__N_Remember%cc_00000000_B262CE9316RememberMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Remember.o: section .gnu.linkonce.r._ZTIN40_GLOBAL__N_Remember%cc_00000000_B262CE9316RememberMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Remember.o: section .gnu.linkonce.r._ZTSN40_GLOBAL__N_Remember%cc_00000000_B262CE9316RememberMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file Remember.o: section .group%cc_00000000_B262CE9316RememberMenuItemE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .group%cc_00000000_052E164317WheelWorkspaceCmdE: has invalid sh_info: 4294967295
ld: fatal: file IconButton.o: section .group%cc_00000000_052E164312FocusCommandE: has invalid sh_info: 4294967295
ld: fatal: file IconButton.o: section .group%cc_00000000_052E16438ShowMenuE: has invalid sh_info: 4294967295
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTVN42_GLOBAL__N_IconButton%cc_00000000_052E164317WheelWorkspaceCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTIN42_GLOBAL__N_IconButton%cc_00000000_052E164317WheelWorkspaceCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTSN42_GLOBAL__N_IconButton%cc_00000000_052E164317WheelWorkspaceCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTVN42_GLOBAL__N_IconButton%cc_00000000_052E164312FocusCommandE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTIN42_GLOBAL__N_IconButton%cc_00000000_052E164312FocusCommandE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTSN42_GLOBAL__N_IconButton%cc_00000000_052E164312FocusCommandE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTVN42_GLOBAL__N_IconButton%cc_00000000_052E16438ShowMenuE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTIN42_GLOBAL__N_IconButton%cc_00000000_052E16438ShowMenuE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .gnu.linkonce.r._ZTSN42_GLOBAL__N_IconButton%cc_00000000_052E16438ShowMenuE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .group%cc_00000000_052E164317WheelWorkspaceCmdE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .group%cc_00000000_052E164312FocusCommandE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file IconButton.o: section .group%cc_00000000_052E16438ShowMenuE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file ToolFactory.o: section .group%cc_00000000_EBF06D6B20ShowMenuAboveToolbarE: has invalid sh_info: 4294967295
ld: fatal: file ToolFactory.o: section .gnu.linkonce.r._ZTVN43_GLOBAL__N_ToolFactory%cc_00000000_EBF06D6B20ShowMenuAboveToolbarE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file ToolFactory.o: section .gnu.linkonce.r._ZTIN43_GLOBAL__N_ToolFactory%cc_00000000_EBF06D6B20ShowMenuAboveToolbarE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file ToolFactory.o: section .gnu.linkonce.r._ZTSN43_GLOBAL__N_ToolFactory%cc_00000000_EBF06D6B20ShowMenuAboveToolbarE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: file ToolFactory.o: section .group%cc_00000000_EBF06D6B20ShowMenuAboveToolbarE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found
ld: fatal: File processing errors. No output written to fluxbox
collect2: ld returned 1 exit status
make[4]: *** [fluxbox] Error 1
make[4]: Leaving directory `/Download/fluxbox-1.0rc2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/Download/fluxbox-1.0rc2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/Download/fluxbox-1.0rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Download/fluxbox-1.0rc2'
make: *** [all] Error 2
odin/Download/fluxbox-1.0rc2$
--- Ende Code ---
ct,
paraglider242:
--- Zitat von: signal_15 am 11. September 2006, 20:19:07 ---ich wollte nicht meine path variable aendern, keine ahnung warum. ich hab die gcc dateien von sunfreeware, die im /usr/local/bin verzeichniss sind, umbenannt auf *.sfw und die gcc dateien von sun in das verzeichniss verlinkt. ausserdem habe ich as und ld aus dem /usr/ccs/bin verzeichnis mit in das /usr/local/bin verzeichnis verlinkt.
--- Ende Zitat ---
Ähm - ob das eine so gute Idee war?
--- Zitat ---auf der cooltool seite habe ich mir die gcc flags angesehen und die option -fast ist mir gleich in's gesicht gesprungen. hoert sich nett an. ich frag mich nur wie man solch eine option benutzt. kann ich das beim aufruf des configure scripts mit uebergeben oder muss ich das dann erstellte makefile aendern?
--- Ende Zitat ---
Ja, Flags kannst du configure mitgeben -
--- Code: ---./configure --help
--- Ende Code ---
ist dein Freund...
--- Zitat ---und so wie ich's mir dachte. ist voll in die hose gegangen. geht schon los mit sachen wie "ld: fatal: file Screen.o: section .group%cc_00000000_B255D78120TabPlacementMenuItemE: has invalid sh_info: 4294967295". vielleicht sagt dir das ja was.
--- Ende Zitat ---
Nicht unbedingt - ich vermute aber, dass das das ganze an deiner oben beschriebenen, etwas "eigenwilligen", Konfiguration liegt.
Lies dir mal erisch's Kompilier-Tutorial durch (http://www.sonnenblen.de/content/01/solaris_compiler_tut.pdf)...
signal_15:
ich hab mir die anleitung vom erisch zu gemuete gezogen. sehen wir mal von den paar rechtschreibfehlern ab so war's doch eine gute lektuere die mir zeigte, dass ich nicht falsch lag und das was ich bereits uebers kompilieren wusste nicht falsch war.
wenn ich den gcc 3.4.6 von sunfreeware benutze laeuft das make ohne fehler durch. bei nutzung des gcc for sparc bringt am ende der linker fehler, wie oben beschrieben, dass keine 'corresponding SHT_GROUP section' gefunden werden. der einzige unterschied ist, dass ich andere optionen benutzen wie beim gcc for sparc. fuer den gcc for sparc gebe ich folgendes an:
CFLAGS='-xtarget=native -xarch=v8plus'
beim gcc von sunfreeware gebe ich folgendes an:
CFLAGS='-xO3'
ich kann mit den fehlern von ld ueberhaupt nichts anfangen. was zum teufel sind nur SHF_GROUP flags!?
kann es sein, dass es sich hier um nen bug im copiler handelt?
http://forum.sun.com/jive/thread.jspa?threadID=99754&tstart=0
ct,
signal_15:
ich glaube wenn man das problem wirklich verstehen will wird man um folgendes nicht herum kommen.
http://docs.sun.com/app/docs/doc/817-1984/6mhm7pl28?a=view
ct,
signal_15:
wow, nach dem definieren von CXX endet das kompilieren mit nem neuen fehler, mit dem ich und google noch weniger anfangen kann.
--- Code: ---/opt/gcc/bin/g++ -fno-comdat -xtarget=native -xarch=v8plus -I/usr/openwin/include -DSHAPE -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -o fluxbox ArrowButton.o FbAtoms.o FbWinFrame.o FbWinFrameTheme.o fluxbox.o Keys.o main.o Netizen.o RootTheme.o FbRootWindow.o Screen.o ScreenResources.o Slit.o SlitTheme.o SlitClient.o WinButton.o WinButtonTheme.o Window.o Workspace.o FbCommands.o LayerMenu.o IntResMenuItem.o FbMenu.o WinClient.o Xutil.o CurrentWindowCmd.o WorkspaceCmd.o CommandParser.o FbCommandFactory.o Shape.o MenuTheme.o Container.o TextTheme.o BorderTheme.o CommandDialog.o SendToMenu.o Parser.o FbMenuParser.o StyleMenuItem.o RootCmdMenuItem.o MenuCreator.o IconMenu.o WorkspaceMenu.o HeadArea.o Resources.o WindowCmd.o FocusControl.o CascadePlacement.o ColSmartPlacement.o RowSmartPlacement.o ScreenPlacement.o UnderMousePlacement.o WinClientUtil.o AttentionNoticeHandler.o Ewmh.o Gnome.o Remember.o RegExp.o ClientPattern.o Toolbar.o ToolbarTheme.o ToolbarItem.o ClockTool.o WorkspaceNameTool.o IconbarTool.o IconbarTheme.o ToolTheme.o IconButton.o SystemTray.o GenericTool.o ButtonTool.o ButtonTheme.o ToolFactory.o defaults.o -L/usr/local/lib -L/usr/openwin/lib -lSM -lICE FbTk/libFbTk.a /usr/local/lib/libiconv.so -L/usr/lib -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -lnsl -lsocket -lX11 -lXext -L/usr/sfw/lib -L/usr/openwin/sfw/lib -lXft /usr/local/lib/libfreetype.so -lz -lfontconfig -lXrender -lXpm -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/local/lib -Wl,-R -Wl,/usr/openwin/lib -Wl,-R -Wl,/usr/sfw/lib -Wl,-R -Wl,/usr/openwin/lib:/usr/openwin/sfw/lib
Undefined first referenced
symbol in file
__cxa_get_exception_ptr main.o
ld: fatal: Symbol referencing errors. No output written to fluxbox
collect2: ld returned 1 exit status
make[4]: *** [fluxbox] Error 1
make[4]: Leaving directory `/Download/fluxbox-1.0rc2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/Download/fluxbox-1.0rc2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/Download/fluxbox-1.0rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Download/fluxbox-1.0rc2'
make: *** [all] Error 2
odin/Download/fluxbox-1.0rc2$
--- Ende Code ---
ct,
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln