Gentoo Archives: gentoo-user

From: karl@××××××××.se
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4
Date: Mon, 05 Apr 2021 14:10:28
Message-Id: 20210405141016.D9737824758C@turkos.aspodata.se
In Reply to: Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4 by Michael Orlitzky
1 > On Mon, 2021-04-05 at 00:44 +0200, karl@××××××××.se wrote:
2 ...
3 > > $ cp -a ...
4 > > $ cd ...
5 > > $ make -j1
6 > > ...
7 > > $ echo $?
8 > > 0
9 > >
10 > > It builds without failure in that case.
11 > >
12 >
13 > That's (potentially) good news. Can you now try it with the
14 > CFLAGS/CXXFLAGS and LDFLAGS from your `emerge --info`? If the build
15 > fails in that case, then we know it's one of those flags causing a
16 > problem.
17
18 It seems -j1 succeeds where -j4 fails, and it might be memory related.
19
20 ///
21
22 # make clean
23 # make
24
25 does fail
26
27 # make clean
28 # ./configure
29 ...
30 R is now configured for x86_64-pc-linux-gnu
31
32 Source directory: .
33 Installation directory: /usr/local
34
35 C compiler: gcc -g -O2
36 Fortran fixed-form compiler: gfortran -fno-optimize-sibling-calls -g -O2
37
38 Default C++ compiler: g++ -std=gnu++11 -g -O2
39 C++14 compiler: g++ -std=gnu++14 -g -O2
40 C++17 compiler: g++ -std=gnu++17 -g -O2
41 C++20 compiler:
42 Fortran free-form compiler: gfortran -fno-optimize-sibling-calls -g -O2
43 Obj-C compiler: gcc -g -O2 -fobjc-exceptions
44
45 Interfaces supported: X11, tcltk
46 External libraries: pcre2, readline, curl
47 Additional capabilities: PNG, JPEG, TIFF, NLS, cairo, ICU
48 Options enabled: shared BLAS, R profiling
49
50 Capabilities skipped:
51 Options not enabled: memory profiling
52
53 Recommended packages: yes
54
55 # make
56
57 ok (=succeeds)
58
59 adding (as environment variables)
60 CBUILD="x86_64-pc-linux-gnu"
61 CFLAGS="-O2 -pipe"
62 make clean; make
63 ok
64
65 CHOST="x86_64-pc-linux-gnu"
66 CXXFLAGS="-O2 -pipe"
67 ok
68
69 FCFLAGS="-O2 -pipe"
70 FFLAGS="-O2 -pipe"
71 ok
72
73 LDFLAGS="-Wl,-O1 -Wl,--as-needed"
74 ok
75
76 From ..../portage/dev-lang/R-4.0.4/work/R-4.0.4/config.log
77 # make distclean
78 # ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/R-4.0.4 --htmldir=/usr/share/doc/R-4.0.4/html --with-sysroot=/ --libdir=/usr/lib64 --enable-byte-compiled-packages --enable-R-shlib --disable-R-framework --with-blas=-lblas rdocdir=/usr/share/doc/R-4.0.4 --disable-java --enable-nls --enable-openmp --disable-R-profiling --disable-memory-profiling --enable-static --enable-R-static-lib --without-cairo --without-ICU --with-jpeglib --without-lapack --with-recommended-packages --with-libpng --with-readline --with-libtiff --without-tcltk --without-tk-config --without-tcl-config --with-x
79 ...
80 R is now configured for x86_64-pc-linux-gnu
81
82 Source directory: .
83 Installation directory: /usr
84
85 C compiler: x86_64-pc-linux-gnu-gcc -g -O2
86 Fortran fixed-form compiler: x86_64-pc-linux-gnu-gfortran -fno-optimize-sibling-calls -g -O2
87
88 Default C++ compiler: x86_64-pc-linux-gnu-g++ -std=gnu++11 -g -O2
89 C++14 compiler: x86_64-pc-linux-gnu-g++ -std=gnu++14 -g -O2
90 C++17 compiler: x86_64-pc-linux-gnu-g++ -std=gnu++17 -g -O2
91 C++20 compiler:
92 Fortran free-form compiler: x86_64-pc-linux-gnu-gfortran -fno-optimize-sibling-calls -g -O2
93 Obj-C compiler: x86_64-pc-linux-gnu-gcc -g -O2 -fobjc-exceptions
94
95 Interfaces supported: X11
96 External libraries: pcre2, readline, BLAS(generic), curl
97 Additional capabilities: PNG, JPEG, TIFF, NLS
98 Options enabled: shared R library
99
100 Capabilities skipped: cairo, ICU
101 Options not enabled: shared BLAS, R profiling, memory profiling
102
103 Recommended packages: yes
104
105 # make
106 ok
107
108 add CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" FCFLAGS="-O2 -pipe" FFLAGS="-O2 -pipe" LDFLAGS="-Wl,-O1 -Wl,--as-needed"
109 # make distclean
110 # ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/R-4.0.4 --htmldir=/usr/share/doc/R-4.0.4/html --with-sysroot=/ --libdir=/usr/lib64 --enable-byte-compiled-packages --enable-R-shlib --disable-R-framework --with-blas=-lblas rdocdir=/usr/share/doc/R-4.0.4 --disable-java --enable-nls --enable-openmp --disable-R-profiling --disable-memory-profiling --enable-static --enable-R-static-lib --without-cairo --without-ICU --with-jpeglib --without-lapack --with-recommended-packages --with-libpng --with-readline --with-libtiff --without-tcltk --without-tk-config --without-tcl-config --with-x CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" FCFLAGS="-O2 -pipe" FFLAGS="-O2 -pipe" LDFLAGS="-Wl,-O1 -Wl,--as-needed"
111 ...
112 R is now configured for x86_64-pc-linux-gnu
113
114 Source directory: .
115 Installation directory: /usr
116
117 C compiler: x86_64-pc-linux-gnu-gcc -O2 -pipe
118 Fortran fixed-form compiler: x86_64-pc-linux-gnu-gfortran -fno-optimize-sibling-calls -O2 -pipe
119
120 Default C++ compiler: x86_64-pc-linux-gnu-g++ -std=gnu++11 -O2 -pipe
121 C++14 compiler: x86_64-pc-linux-gnu-g++ -std=gnu++14 -O2 -pipe
122 C++17 compiler: x86_64-pc-linux-gnu-g++ -std=gnu++17 -O2 -pipe
123 C++20 compiler:
124 Fortran free-form compiler: x86_64-pc-linux-gnu-gfortran -fno-optimize-sibling-calls -O2 -pipe
125 Obj-C compiler: x86_64-pc-linux-gnu-gcc -g -O2 -fobjc-exceptions
126
127 Interfaces supported: X11
128 External libraries: pcre2, readline, BLAS(generic), curl
129 Additional capabilities: PNG, JPEG, TIFF, NLS
130 Options enabled: shared R library
131
132 Capabilities skipped: cairo, ICU
133 Options not enabled: shared BLAS, R profiling, memory profiling
134
135 Recommended packages: yes
136
137 # make -j1
138 ok
139
140 # make clean
141 # make -j4
142 ...
143 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/tests'
144 you should 'make docs' now ...
145 make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/doc'
146 make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4'
147 make[1]: 'stamp-java' is up to date.
148 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4'
149 WARNING: ignoring environment value of R_HOME
150 WARNING: ignoring environment value of R_HOME
151 WARNING: ignoring environment value of R_HOME
152 Segmentation fault
153 make[1]: *** [Makefile:77: NEWS.3.rds] Error 139
154 make[1]: *** Waiting for unfinished jobs....
155 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/doc'
156 make: [Makefile:72: docs] Error 2 (ignored)
157 make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library'
158 make[2]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library'
159 installing parsed Rd
160 make[3]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library'
161 WARNING: ignoring environment value of R_HOME
162 WARNING: ignoring environment value of R_HOME
163 WARNING: ignoring environment value of R_HOME
164 WARNING: ignoring environment value of R_HOME
165 Segmentation fault
166 make[3]: *** [Makefile:73: stats.Rdts] Error 1
167 make[3]: *** Waiting for unfinished jobs....
168 Error in readRDS(mapfile) : error reading from connection
169 Execution halted
170 Warning message:
171 system call failed: Cannot allocate memory
172 Segmentation fault
173 make[3]: *** [Makefile:73: methods.Rdts] Error 1
174 make[3]: *** [Makefile:73: base.Rdts] Error 1
175 utils
176 make[3]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library'
177 make[2]: *** [Makefile:81: Rdobjects] Error 2
178 make[2]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library'
179 make[1]: *** [Makefile:62: docs] Error 2
180 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library'
181 make: [Makefile:73: docs] Error 2 (ignored)
182 make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library/Recommended'
183 make[2]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library/Recommended'
184 begin installing recommended package MASS
185 begin installing recommended package lattice
186 begin installing recommended package codetools
187 begin installing recommended package foreign
188 WARNING: ignoring environment value of R_HOME
189 Fatal error: couldn't allocate memory for pointer stack
190 Segmentation fault
191 make[2]: *** [Makefile:53: lattice.ts] Error 1
192 make[2]: *** Waiting for unfinished jobs....
193 WARNING: ignoring environment value of R_HOME
194 Segmentation fault
195 make[2]: *** [Makefile:53: codetools.ts] Error 1
196 WARNING: ignoring environment value of R_HOME
197 * installing *source* package ?foreign? ...
198 ** package ?foreign? successfully unpacked and MD5 sums checked
199 ** using non-staged installation
200 ** libs
201 make[3]: Entering directory '/tmp/Rtmpyf37hQ/R.INSTALL6e75db12a27/foreign/src'
202 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c R_systat.c -o R_systat.o
203 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c Rdbfread.c -o Rdbfread.o
204 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c Rdbfwrite.c -o Rdbfwrite.o
205 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c SASxport.c -o SASxport.o
206 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c avl.c -o avl.o
207 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c dbfopen.c -o dbfopen.o
208 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c file-handle.c -o file-handle.o
209 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c format.c -o format.o
210 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c init.c -o init.o
211 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c minitab.c -o minitab.o
212 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c pfm-read.c -o pfm-read.o
213 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c sfm-read.c -o sfm-read.o
214 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c spss.c -o spss.o
215 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c stataread.c -o stataread.o
216 x86_64-pc-linux-gnu-gcc -shared -L/home/sys/R-4.0.4/work/R-4.0.4/lib -Wl,-O1 -Wl,--as-needed -o foreign.so R_systat.o Rdbfread.o Rdbfwrite.o SASxport.o avl.o dbfopen.o file-handle.o format.o init.o minitab.o pfm-read.o sfm-read.o spss.o stataread.o -L/home/sys/R-4.0.4/work/R-4.0.4/lib -lR
217 make[3]: Leaving directory '/tmp/Rtmpyf37hQ/R.INSTALL6e75db12a27/foreign/src'
218 installing to /home/sys/R-4.0.4/work/R-4.0.4/library/foreign/libs
219 ** R
220 ** inst
221 ** byte-compile and prepare package for lazy loading
222 ** help
223 *** installing help indices
224 ** building package indices
225 ** testing if installed package can be loaded
226 * DONE (foreign)
227 WARNING: ignoring environment value of R_HOME
228 * installing *source* package ?MASS? ...
229 ** package ?MASS? successfully unpacked and MD5 sums checked
230 ** using non-staged installation
231 ** libs
232 make[3]: Entering directory '/tmp/RtmpY6iU2f/R.INSTALL6e078f85fff/MASS/src'
233 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c MASS.c -o MASS.o
234 x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG -fpic -O2 -pipe -c lqs.c -o lqs.o
235 x86_64-pc-linux-gnu-gcc -shared -L/home/sys/R-4.0.4/work/R-4.0.4/lib -Wl,-O1 -Wl,--as-needed -o MASS.so MASS.o lqs.o -L/home/sys/R-4.0.4/work/R-4.0.4/lib -lR
236 make[3]: Leaving directory '/tmp/RtmpY6iU2f/R.INSTALL6e078f85fff/MASS/src'
237 installing to /home/sys/R-4.0.4/work/R-4.0.4/library/MASS/libs
238 ** R
239 ** data
240 *** moving datasets to lazyload DB
241 ** inst
242 ** byte-compile and prepare package for lazy loading
243 ** help
244 *** installing help indices
245 ** building package indices
246 ** testing if installed package can be loaded
247 * DONE (MASS)
248 make[2]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library/Recommended'
249 make[1]: *** [Makefile:39: recommended-packages] Error 2
250 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/src/library/Recommended'
251 make: *** [Makefile:77: stamp-recommended] Error 2
252
253 remove -pipe
254 # ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/R-4.0.4 --htmldir=/usr/share/doc/R-4.0.4/html --with-sysroot=/ --libdir=/usr/lib64 --enable-byte-compiled-packages --enable-R-shlib --disable-R-framework --with-blas=-lblas rdocdir=/usr/share/doc/R-4.0.4 --disable-java --enable-nls --enable-openmp --disable-R-profiling --disable-memory-profiling --enable-static --enable-R-static-lib --without-cairo --without-ICU --with-jpeglib --without-lapack --with-recommended-packages --with-libpng --with-readline --with-libtiff --without-tcltk --without-tk-config --without-tcl-config --with-x CFLAGS="-O2" CXXFLAGS="-O2" FCFLAGS="-O2" FFLAGS="-O2" LDFLAGS="-Wl,-O1 -Wl,--as-needed"
255 ...
256 R is now configured for x86_64-pc-linux-gnu
257
258 Source directory: .
259 Installation directory: /usr
260
261 C compiler: x86_64-pc-linux-gnu-gcc -O2
262 Fortran fixed-form compiler: x86_64-pc-linux-gnu-gfortran -fno-optimize-sibling-calls -O2
263
264 Default C++ compiler: x86_64-pc-linux-gnu-g++ -std=gnu++11 -O2
265 C++14 compiler: x86_64-pc-linux-gnu-g++ -std=gnu++14 -O2
266 C++17 compiler: x86_64-pc-linux-gnu-g++ -std=gnu++17 -O2
267 C++20 compiler:
268 Fortran free-form compiler: x86_64-pc-linux-gnu-gfortran -fno-optimize-sibling-calls -O2
269 Obj-C compiler: x86_64-pc-linux-gnu-gcc -g -O2 -fobjc-exceptions
270
271 Interfaces supported: X11
272 External libraries: pcre2, readline, BLAS(generic), curl
273 Additional capabilities: PNG, JPEG, TIFF, NLS
274 Options enabled: shared R library
275
276 Capabilities skipped: cairo, ICU
277 Options not enabled: shared BLAS, R profiling, memory profiling
278
279 Recommended packages: yes
280
281 # make -j4
282 ...
283 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/tests'
284 you should 'make docs' now ...
285 make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/doc'
286 make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4'
287 WARNING: ignoring environment value of R_HOME
288 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4'
289 WARNING: ignoring environment value of R_HOME
290 WARNING: ignoring environment value of R_HOME
291 Segmentation fault
292 make[1]: *** [Makefile:77: NEWS.3.rds] Error 139
293 make[1]: *** Waiting for unfinished jobs....
294 make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/doc'
295 ...
296
297 Regards,
298 /Karl Hammar

Replies

Subject Author
Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4 Michael Orlitzky <mjo@g.o>