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

[rt.cpan.org #88936] gcc -g3: final link failed: Memory exhausted

Thread Previous
From:
Reini Urban via RT
Date:
September 24, 2013 15:31
Subject:
[rt.cpan.org #88936] gcc -g3: final link failed: Memory exhausted
Message ID:
rt-4.0.16-18018-1380036662-129.88936-17-0@rt.cpan.org
<URL: https://rt.cpan.org/Ticket/Display.html?id=88936 >

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/Zlib.so  \
/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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About