Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc rebuild for -cilk reboots @fortran [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Wed Apr 01, 2015 4:30 pm    Post subject: gcc rebuild for -cilk reboots @fortran [SOLVED] Reply with quote

Hi, Considering
Code:
[b]gcc-config -l[/b]
 [1] x86_64-pc-linux-gnu-4.8.3 *
 [2] x86_64-pc-linux-gnu-4.9.2

equery u gcc-4.8.3 gcc
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-devel/gcc-4.8.3:
 U I
 + + cxx             : Build support for C++ (bindings, extra libraries, code
                       generation, ...)
 - - doc             : Add extra documentation (API, Javadoc, etc). It is
                       recommended to enable per package instead of globally
 + + fortran         : Add support for fortran
 - - gcj             : Enable building with gcj (The GNU Compiler for the
                       Javatm Programming Language)
 - - go              : Build the GCC Go language frontend.
 + + graphite        : Add support for the framework for loop optimizations
                       based on a polyhedral intermediate representation
 - - mudflap         : Add support for mudflap, a pointer use checking library
 + + nls             : Add Native Language Support (using gettext - GNU locale
                       utilities)
 - - nopie           : Disable PIE support (NOT FOR GENERAL USE)
 - - nossp           : Disable SSP support (NOT FOR GENERAL USE)
 + + nptl            : Enable support for Native POSIX Threads Library, the new
                       threading module (requires linux-2.6 or better usually)
 - - objc            : Build support for the Objective C code language
 - - objc++          : Build support for the Objective C++ language
 - - objc-gc         : Build support for the Objective C code language Garbage
                       Collector
 + + openmp          : Build support for the OpenMP (support parallel
                       computing), requires >=sys-devel/gcc-4.2 built with
                       USE="openmp"
 - - regression-test : Run the testsuite and install the results (requires
                       FEATURES=test)
 + + sanitize        : Build support various sanitizer functions
                       (ASAN/TSAN/etc...)
 - - vanilla         : Do not add extra patches which change default behaviour;
                       DO NOT USE THIS ON A GLOBAL SCALE as the severity of the
                       meaning changes drastically

 * Found these USE flags for sys-devel/gcc-4.9.2:
 U I
 - - cilk            : Support the Cilk Plus language (C/C++ based languages
                       for parallel programming)
 + + cxx             : Build support for C++ (bindings, extra libraries, code
                       generation, ...)
 - - doc             : Add extra documentation (API, Javadoc, etc). It is
                       recommended to enable per package instead of globally
 + + fortran         : Add support for fortran
 - - gcj             : Enable building with gcj (The GNU Compiler for the
                       Javatm Programming Language)
 - - go              : Build the GCC Go language frontend.
 + + graphite        : Add support for the framework for loop optimizations
                       based on a polyhedral intermediate representation
 + + nls             : Add Native Language Support (using gettext - GNU locale
                       utilities)
 - - nopie           : Disable PIE support (NOT FOR GENERAL USE)
 - - nossp           : Disable SSP support (NOT FOR GENERAL USE)
 + + nptl            : Enable support for Native POSIX Threads Library, the new
                       threading module (requires linux-2.6 or better usually)
 - - objc            : Build support for the Objective C code language
 - - objc++          : Build support for the Objective C++ language
 - - objc-gc         : Build support for the Objective C code language Garbage
                       Collector
 + + openmp          : Build support for the OpenMP (support parallel
                       computing), requires >=sys-devel/gcc-4.2 built with
                       USE="openmp"
 - - regression-test : Run the testsuite and install the results (requires
                       FEATURES=test)
 + + sanitize        : Build support various sanitizer functions
                       (ASAN/TSAN/etc...)
 - - vanilla         : Do not add extra patches which change default behaviour;
                       DO NOT USE THIS ON A GLOBAL SCALE as the severity of the
                       meaning changes drastically
According to tail -n100 -f /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/temp/build.log, emerge reboots system @:
Code:
libtool: compile:  /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/xgcc -B/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran -iquote/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/io -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc/config -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libquadmath -I../.././gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -march=core-avx-i -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mtune=core-avx-i -O2 -pipe -c /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/intrinsics/args.c  -fPIC -DPIC -o .libs/args.o
libtool: compile:  /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/xgcc -B/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran -iquote/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/io -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc/config -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libquadmath -I../.././gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -march=core-avx-i -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mtune=core-avx-i -O2 -pipe -c /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/intrinsics/access.c -o access.o >/dev/null 2>&1
libtool: compile:  /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/xgcc -B/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran -iquote/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/io -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc/config -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libquadmath -I../.././gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -march=core-avx-i -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mtune=core-avx-i -O2 -pipe -c /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/intrinsics/args.c -o args.o >/dev/null 2>&1
/bin/sh ./libtool  --tag=CC   --mode=compile /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/xgcc -B/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include    -DHAVE_CONFIG_H -I. -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran  -iquote/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/io -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc/config -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libquadmath -I../.././gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libgcc -I../libgcc  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections  -g -march=core-avx-i -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mtune=core-avx-i -O2 -pipe -c -o bit_intrinsics.lo `test -f 'intrinsics/bit_intrinsics.c' || echo '/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/'`intrinsics/bit_intrinsics.c
libtool: compile:  /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/xgcc -B/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran -iquote/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/io -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../gcc/config -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libquadmath -I../.././gcc -I/var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -march=core-avx-i -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mtune=core-avx-i -O2 -pipe -c /var/no-tmpfs/portage/sys-devel/gcc-4.9.2/work/gcc-4.9.2/libgfortran/intrinsics/bit_intrinsics.c  -fPIC -DPIC -o .libs/bit_intrinsics.o


For the time beeing, it is planned to remove fortran USE flag at gcc slot level :?

Any advice on the subject?

Thks 4 ur attention

NB: for the record if related to https://bugs.gentoo.org/show_bug.cgi?id=540392 system reports:
Code:
grep ^dependency_libs.*-L /usr/lib/gcc/x86_64-pc-linux-gnu/*/32/*.la
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32/libgfortran.la:dependency_libs=' -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3 -lquadmath -lm'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/32/libcilkrts.la:dependency_libs=' -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2 -lpthread -ldl -lstdc++'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/32/libgfortran.la:dependency_libs=' -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2 -lquadmath -lm'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/32/libubsan.la:dependency_libs=' -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2 -lpthread -ldl -lstdc++ -lm'


Last edited by CaptainBlood on Fri Apr 03, 2015 2:00 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Wed Apr 01, 2015 8:26 pm    Post subject: Reply with quote

Chances are, your CPU overheated or something. See if your heatsink is clean of dust and your fan is working. You could also try reducing the number of threads compiling in make.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Fri Apr 03, 2015 1:52 am    Post subject: Reply with quote

Hi,
Little investigation revealed cpufreqd parameters to be to tightly set since almost every poll generated freq scaling.
After recalibrating, things when smoother from a general perspective.

Nevertheless some problem remained for gcc-compiling (+fortran).but for 4.8.3/4.8.4 not 4.9.2 which is another story.

Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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