Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random parallel compilation failures (-j4) #16

Open
blshkv opened this issue Feb 27, 2016 · 4 comments
Open

random parallel compilation failures (-j4) #16

blshkv opened this issue Feb 27, 2016 · 4 comments

Comments

@blshkv
Copy link

blshkv commented Feb 27, 2016

The source fails to compile around 1 from 5 times with the following error:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-embedded/libmpsse-1.3_p20150711/work/libmpsse-f1a6744b220d4e7b2c8719e705f56d8c171a6a32/src ...
make -j4 
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DLIBFTDI1=0 -c support.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DSWIGPYTHON -DLIBFTDI1=0 -c support.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DLIBFTDI1=0 -c mpsse.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -c fast.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DSWIGPYTHON -DLIBFTDI1=0 -c mpsse.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -shared -Wl,-soname,libmpsse.so mpsse.o fast.o support.o \
        -o libmpsse.so -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
/usr/bin/swig -python mpsse.i
collect2: error: ld terminated with signal 11 [Segmentation fault]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: error in mpsse.o(.eh_frame); no .eh_frame_hdr table will be created.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: mpsse.o: invalid string offset 1701981696 >= 825 for section `.strtab'
Makefile:21: recipe for target 'mpsse' failed
make: *** [mpsse] Error 1
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -c  -DLIBFTDI1=0 mpsse_wrap.c  -I/usr/include/python2.7
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -shared  mpsse_wrap.o mpsse.o support.o \
        -o _pylibmpsse.so -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -I/usr/include/python2.7
 * ERROR: dev-embedded/libmpsse-1.3_p20150711::pentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-embedded/libmpsse-1.3_p20150711::pentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-embedded/libmpsse-1.3_p20150711::pentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-embedded/libmpsse-1.3_p20150711/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-embedded/libmpsse-1.3_p20150711/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-embedded/libmpsse-1.3_p20150711/work/libmpsse-f1a6744b220d4e7b2c8719e705f56d8c171a6a32/src'
 * S: '/var/tmp/portage/dev-embedded/libmpsse-1.3_p20150711/work/libmpsse-f1a6744b220d4e7b2c8719e705f56d8c171a6a32/src'
@blshkv
Copy link
Author

blshkv commented Feb 27, 2016

also, the following error:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-embedded/libmpsse-1.3_p20150711/work/libmpsse-f1a6744b220d4e7b2c8719e705f56d8c171a6a32/src ...
make -j4 
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DLIBFTDI1=0 -c support.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DSWIGPYTHON -DLIBFTDI1=0 -c support.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DSWIGPYTHON -DLIBFTDI1=0 -c mpsse.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -DLIBFTDI1=0 -c mpsse.c
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -c fast.c
/usr/bin/swig -python mpsse.i
x86_64-pc-linux-gnu-gcc -Wall -fPIC -fno-strict-aliasing -march=native -O2 -pipe -shared -Wl,-soname,libmpsse.so mpsse.o fast.o support.o \
        -o libmpsse.so -lftdi -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu
support.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:21: recipe for target 'mpsse' failed
make: *** [mpsse] Error 1

@blshkv blshkv changed the title random segmentation fault during compilations random parallel compilation failure (-j4) Feb 27, 2016
@blshkv blshkv changed the title random parallel compilation failure (-j4) random parallel compilation failures (-j4) Feb 27, 2016
@jhgit
Copy link

jhgit commented Feb 15, 2017

Does the attached patch fix it?

pr-libmpsse-objconf.txt

jhgit added a commit to jhgit/libmpsse that referenced this issue Feb 17, 2017
files & non-swig.  This can help fix parallel builds - building with
incorrect object file or trying to link with files that are still
being written.

See devttys0#16
@jhgit
Copy link

jhgit commented May 2, 2017

This patch is now part of the FreeBSD port of libmpsse.

@blshkv
Copy link
Author

blshkv commented May 3, 2017

Part of Pentoo since 19 of Feb as well
pentoo/pentoo-overlay@e6fcc3a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants