Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1828
Closed
Open
Created Jun 03, 2010 by Robert Bernecky@rbeDeveloper

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.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking