Linux-gcc fehler
Verfasst: Mi Sep 23, 2009 3:20 pm
Ich wollte mal wieder an SaphireUX(alias SaphireOS) rumschrauben, und zwar auf meiner Linux Installation(sonst immer auf FreeBSD dran rumgeproggt). Als ich es kompilieren wollte bekam ich einen netten undefined reference to `__stack_chk_fail' Ok, kenn ich ja, unter Linux läuft das mit dem kompiler nit so, ist nicht das erste mal, und hab -fno-stack-protector drangehängt. Dann gings auch. Ich starte Qemu, denke mir nix böses, und woosh ne nen Divide by Zero:
Was kann ich jetzt tun, damit der linux-gcc das annimmt, ohne das ich den netten /by0 bekomme? Irgendwie mit Kompatibilitätsmodus? (wird ohne Warnungen/Fehler Kompiliert auf sowohl als auch)

Muss an der Kenrel binary liegen, ein Process(oder Programm) das einen Fehler auslöst wird gekillt, da is also 100% der Linux-gcc dran Schuld!!(unter FreeBSD gehts nämlich)Loading SaphireUX kernel... [jmp]
SaphireUX Release 9.6 i386 Version 0002416 - 32 Bit
Starting up System...
mb0: 1048576
panic (0x00) : cpu0: trap exception
eip 1018E6 104000 103E66 0 0 0 0 0 0 0 0
Was kann ich jetzt tun, damit der linux-gcc das annimmt, ohne das ich den netten /by0 bekomme? Irgendwie mit Kompatibilitätsmodus? (wird ohne Warnungen/Fehler Kompiliert auf sowohl als auch)
CFLAGS beim compilieren:cc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CFLAGS = -fno-builtin -fno-stack-protector -O2 -Wall -MD
