develooper Front page | perl.perl5.porters | Postings from September 2013

[ #88936] gcc -g3: final link failed: Memory exhausted

Thread Previous
Reini Urban via RT
September 24, 2013 15:31
[ #88936] gcc -g3: final link failed: Memory exhausted
Message ID:
<URL: >

With the new Compress-Raw-Zlib-2.062 version in blead
compilation with gcc -g3 (4.7 and 4.8) fails to link with

cc  -shared -g3 -L/usr/local/lib -fstack-protector Zlib.o adler32.o crc32.o infback.o inflate.o uncompr.o compress.o deflate.o inffast.o inftrees.o trees.o zutil.o   -o ../../lib/auto/Compress/Raw/Zlib/  \
/usr/bin/ld: final link failed: Memory exhausted

I have to clean all *.o and recompile with -g to be able to link this.
-g3 stores macros in dwarf.

Maybe there's a new recursive macro. 2.061 worked fine.
A workaround until the real problem is being found is to add a hints file, which checks for -g3 in OPTIMIZE and replaces it with -g

Inspecting core ef379d05f8358 reveils nothing obvious to me, so maybe it's a recent core change, not the 2.062 change.
The last successful blead build with -g3 was at Sep 16, with a2553af6e5f1db5aac7e0bb23db887f37101de35

With git log -p a2553af6e5f1db5aac7e0bb23db887f37101de35...c6ba15252667d61624481a75c7b61acee4e89cb3 -- ..*.h
nothing springs into my eye neither, but there were a lot of perl.h changes.

Reini Urban

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About