libmpsse icon indicating copy to clipboard operation
libmpsse copied to clipboard

random parallel compilation failures (-j4)

Open blshkv opened this issue 8 years ago • 4 comments

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 avatar Feb 27 '16 08:02 blshkv

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 avatar Feb 27 '16 08:02 blshkv

Does the attached patch fix it?

pr-libmpsse-objconf.txt

jhgit avatar Feb 15 '17 17:02 jhgit

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

jhgit avatar May 02 '17 20:05 jhgit

Part of Pentoo since 19 of Feb as well https://github.com/pentoo/pentoo-overlay/commit/e6fcc3aa128cd623ea4a37a2fb7511cb96dc524b

blshkv avatar May 03 '17 01:05 blshkv