compiling with -static crashes unless you use -nophm
|
|
Bugzilla Link |
717 |
Created on |
Jun 03, 2010 19:54 |
Resolution |
WONTFIX |
Resolved on |
Sep 26, 2015 17:30 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
Compilation with -static in sac2crc LDFLAGS dies this way:
sac2c -O3 loopisAKD.sac -o loopisAKD.asterix.O3
/usr/lib/gcc/i586-suse-linux/4.3/../../../libc.a(malloc.o): In function `__libc_free':
/usr/src/packages/BUILD/glibc-2.11.1/malloc/malloc.c:3692: multiple definition of `free'
/home/rbe/sac2c/lib//libsacphm.seq.a(malloc.p.seq.o):/home/rbe/sac2c/src/libsacphm/compat/malloc.c:201: first defined here
/usr/lib/gcc/i586-suse-linux/4.3/../../../libc.a(malloc.o): In function `__libc_malloc':
/usr/src/packages/BUILD/glibc-2.11.1/malloc/malloc.c:3615: multiple definition of `malloc'
/home/rbe/sac2c/lib//libsacphm.seq.a(malloc.p.seq.o):/home/rbe/sac2c/src/libsacphm/compat/malloc.c:91: first defined here
/usr/lib/gcc/i586-suse-linux/4.3/../../../libc.a(malloc.o): In function `__libc_realloc':
/usr/src/packages/BUILD/glibc-2.11.1/malloc/malloc.c:3748: multiple definition of `realloc'
/home/rbe/sac2c/lib//libsacphm.seq.a(malloc.p.seq.o):/home/rbe/sac2c/src/libsacphm/compat/malloc.c:284: first defined here
collect2: ld returned 1 exit status
I worked around the crash by compiling with -nophm, but papi does
not report any output at all.Whether that is due to -nophm or -static,
or 32-bit vs. 64-bit binaries, I do not know.