Closed julienw closed 13 years ago
I just cloned the repository and tried to build it and I got a big error from glibc :
$ make gcc -c -g -O3 -Wall -Werror -Isrc -Ihtml -c -o src/markdown.o src/markdown.c gcc -c -g -O3 -Wall -Werror -Isrc -Ihtml -c -o src/array.o src/array.c gcc -c -g -O3 -Wall -Werror -Isrc -Ihtml -c -o src/buffer.o src/buffer.c gcc -c -g -O3 -Wall -Werror -Isrc -Ihtml -c -o src/autolink.o src/autolink.c gcc -c -g -O3 -Wall -Werror -Isrc -Ihtml -c -o html/html.o html/html.c gcc -c -g -O3 -Wall -Werror -Isrc -Ihtml -c -o html/html_smartypants.o html/html_smartypants.c gcc -g -O3 -Wall -Werror -shared -Wl src/markdown.o src/array.o src/buffer.o src/autolink.o html/html.o html/html_smartypants.o -o libsundown.so.1 *** glibc detected *** /usr/bin/ld: munmap_chunk(): invalid pointer: 0x0976c6a8 *** ======= Backtrace: ========= /lib/i686/cmov/libc.so.6(+0x6aaa1)[0x401b8aa1] /lib/i686/cmov/libc.so.6(+0x6bd1e)[0x401b9d1e] /usr/lib/libbfd-2.21.51-system.20110523.so(objalloc_free+0x2c)[0x400fee0c] ======= Memory map: ======== 08048000-080f4000 r-xp 00000000 08:02 623114 /usr/bin/ld.bfd 080f4000-080f5000 rw-p 000ac000 08:02 623114 /usr/bin/ld.bfd 080f5000-080f6000 rw-p 00000000 00:00 0 09759000-099a5000 rw-p 00000000 00:00 0 [heap] 40000000-4001b000 r-xp 00000000 08:02 799364 /lib/ld-2.13.so 4001b000-4001c000 r--p 0001b000 08:02 799364 /lib/ld-2.13.so 4001c000-4001d000 rw-p 0001c000 08:02 799364 /lib/ld-2.13.so 4001d000-4001e000 r-xp 00000000 00:00 0 [vdso] 4001e000-40024000 rw-p 00000000 00:00 0 40025000-4002b000 rw-p 00000000 00:00 0 4003d000-40125000 r-xp 00000000 08:02 620199 /usr/lib/libbfd-2.21.51-system.20110523.so 40125000-40131000 rw-p 000e8000 08:02 620199 /usr/lib/libbfd-2.21.51-system.20110523.so 40131000-40135000 rw-p 00000000 00:00 0 40135000-40148000 r-xp 00000000 08:02 623183 /usr/lib/libz.so.1.2.3.4 40148000-40149000 rw-p 00013000 08:02 623183 /usr/lib/libz.so.1.2.3.4 40149000-4014a000 rw-p 00000000 00:00 0 4014a000-4014c000 r-xp 00000000 08:02 945046 /lib/i686/cmov/libdl-2.13.so 4014c000-4014d000 r--p 00001000 08:02 945046 /lib/i686/cmov/libdl-2.13.so 4014d000-4014e000 rw-p 00002000 08:02 945046 /lib/i686/cmov/libdl-2.13.so 4014e000-402a1000 r-xp 00000000 08:02 947994 /lib/i686/cmov/libc-2.13.so 402a1000-402a2000 ---p 00153000 08:02 947994 /lib/i686/cmov/libc-2.13.so 402a2000-402a4000 r--p 00153000 08:02 947994 /lib/i686/cmov/libc-2.13.so 402a4000-402a5000 rw-p 00155000 08:02 947994 /lib/i686/cmov/libc-2.13.so 402a5000-402a9000 rw-p 00000000 00:00 0 402c6000-402e2000 r-xp 00000000 08:02 798166 /lib/libgcc_s.so.1 402e2000-402e3000 rw-p 0001b000 08:02 798166 /lib/libgcc_s.so.1 bfe2a000-bfe4b000 rw-p 00000000 00:00 0 [stack] collect2: ld terminated with signal 6 [Abandon] make: *** [libsundown.so.1] Erreur 1
Here is the version of gcc :
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.6.1/lto-wrapper Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.0-10' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.6.1 20110526 (prerelease) (Debian 4.6.0-10)
I tried with gcc 4.5 and it compiles successfully (make CC=gcc-4.5).
make CC=gcc-4.5
It seems like newer gcc are able to catch some errors.
I updated my system and now it compiles correctly.
New GCC version is : gcc version 4.6.1 (Debian 4.6.1-4)
I just cloned the repository and tried to build it and I got a big error from glibc :
Here is the version of gcc :
I tried with gcc 4.5 and it compiles successfully (
make CC=gcc-4.5
).It seems like newer gcc are able to catch some errors.