Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge schlägt fehl - killed (program cc1plus)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Wed Mar 07, 2007 8:12 pm    Post subject: emerge schlägt fehl - killed (program cc1plus) Reply with quote

Hi,

ich bau grad ein Gentoo in einer Xen domU und hab damit so meine Probleme...
Z.B. beim Bauen von dev-db/mysql

[ebuild N ] dev-db/mysql-5.0.26-r2 USE="berkdb big-tables perl ssl -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 0 kB

kommt nach 5 Minuten compilen folgendes:
Code:
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item.o -MD -MP -MF .deps/item.Tpo -c -o item.o item.cc
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_sum.o -MD -MP -MF .deps/item_sum.Tpo -c -o item_sum.o item_sum.cc
i686-pc-linux-gnu-gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/usr\" -DDATADIR=\"/var/lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.c  -fPIC -DPIC -o .libs/udf_example.o
i686-pc-linux-gnu-gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/usr\" -DDATADIR=\"/var/lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I. -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c udf_example.c -o udf_example.o >/dev/null 2>&1
mv -f .deps/sql_handler.Tpo .deps/sql_handler.Po
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_buff.o -MD -MP -MF .deps/item_buff.Tpo -c -o item_buff.o item_buff.cc
mv -f .deps/sql_lex.Tpo .deps/sql_lex.Po
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_func.o -MD -MP -MF .deps/item_func.Tpo -c -o item_func.o item_func.cc
mv -f .deps/item_sum.Tpo .deps/item_sum.Po
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_cmpfunc.o -MD -MP -MF .deps/item_cmpfunc.Tpo -c -o item_cmpfunc.o item_cmpfunc.cc
mv -f .deps/udf_example.Tpo .deps/udf_example.Plo
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_strfunc.o -MD -MP -MF .deps/item_strfunc.Tpo -c -o item_strfunc.o item_strfunc.cc
mv -f .deps/item.Tpo .deps/item.Po
i686-pc-linux-gnu-g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -DHAVE_CONFIG_H -I. -I.. -I../bdb/build_unix -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -march=pentium3 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates   -fno-implicit-templates -fno-exceptions -fno-rtti -MT item_timefunc.o -MD -MP -MF .deps/item_timefunc.Tpo -c -o item_timefunc.o item_timefunc.cc
i686-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
mv -f .deps/item_buff.Tpo .deps/item_buff.Po
make[4]: *** [item_func.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/item_timefunc.Tpo .deps/item_timefunc.Po
mv -f .deps/item_strfunc.Tpo .deps/item_strfunc.Po
mv -f .deps/item_cmpfunc.Tpo .deps/item_cmpfunc.Po
make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.26-r2/work/mysql/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.26-r2/work/mysql/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.26-r2/work/mysql/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.26-r2/work/mysql'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-5.0.26-r2 failed.
Call stack:
 ebuild.sh, line 1614:   Called dyn_compile
 ebuild.sh, line 971:   Called qa_call 'src_compile'
 environment, line 4374:   Called src_compile
 ebuild.sh, line 1304:   Called mysql_src_compile
 mysql.eclass, line 604:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.26-r2/temp/build.log'.


Irgendwer aus #gentoo-bugs meinte ich soll die toolchains neu bauen, dazu gibts ein kleines Script von https://forums.gentoo.org/viewtopic-t-282474.html:
emwrap.sh

Mit emwrap.sh -t baut man alle toolchains (gcc stuff) neu, hat aber leider nicht geholfen.
Ein bisschen zum (Host)System:

Ist ein P3 Xeon DualCPU System (HT), Kernel stimmt imho und auch die make.conf scheint sauber zu sein:

Code:
CHOST="i686-pc-linux-gnu"
#CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"

USE="-X -cups -arts -alsa -oss -gnome -gtk -gtk2 -qt apache2 sasl mbox bzlib ftp imap imlib mysql pdflib ruby \
perl python xml xml2 ssl snmp"

FEATURES="-sandbox buildpkg ccache"


-j5 weil 4 Prozessoren (durch HT) und das -mno-tls-direct-seg-refs braucht man wohl für Xen, habs aber mal rausgenommen um zu testen ob das emerge dann immernoch fehlschlägt.. und ja, es schlägt fehl... Wofür ist eigentlich genau dieses -mno-tls-direct-seg-refs ?

Vielleicht habt Ihr noch ne Idee was da genau schief läuft, wär cool wenns dann morgen funktioniert *g*


Grüße
equinox
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Wed Mar 07, 2007 9:24 pm    Post subject: Reply with quote

Das klingt nach zu wenig Speicher - ist bei -j5 auch nicht so unwahrscheinlich.
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Thu Mar 08, 2007 7:58 am    Post subject: Reply with quote

Ich hab mir jetzt mal etwas mehr RAM gegeben (vorher 256, jetzt 512 MB).. Alternativ sollte ich vielleicht -j5 runtersetzen? Aber sind ja wie gesagt vier Prozessoren und wie das genau mit dem -j5 zusammenhängt weiss ich auch nicht so, erklärst Du mir das bitte?


Danke und Gruß
equinox
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
Klaus Meier
Advocate
Advocate


Joined: 18 Apr 2005
Posts: 2908
Location: Bozen

PostPosted: Thu Mar 08, 2007 9:58 am    Post subject: Reply with quote

Jeder Prozess braucht Speicher. Und wenn du 5 gleichzeitig laufen läßt, dann brauchst du diesen Speicher 5mal. Und der gcc 4 braucht bei einigen Paketen davon ziemlich viel. Einfach ausprobieren, wenn es mit -j2 geht, dann hat sich das Problem doch gelöst, wenn nicht, dann schauen wir weiter.
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Thu Mar 08, 2007 10:18 am    Post subject: Reply with quote

Danke, wenn ich drüber nachdenk klingt das auch ganz logisch, warum bin ich da nicht selbst draufgekommen... :roll:

Ich hab ja wie gesagt mehr RAM dazugedröselt und auch nochmal mehr swap dazugegeben, jetzt läuft alles sauber durch, auch mit -j5.

Daher vielen Dank an alle Beteiligten :)


Zum Schluss würde mich noch interessieren wie man auf die Lösung gekommen wäre, bzw. warum und wie Ihr da drauf gekommen seid :)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum