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 402
    • Issues 402
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2201
Closed
Open
Created Mar 16, 2012 by Jaroslav Sýkora@jsaGuest

stdlib fails to compile on a system without SDL2

Bugzilla Link 933
Created on Mar 16, 2012 14:56
Resolution FIXED
Resolved on Mar 16, 2012 15:24
Version svn
OS Linux
Architecture PC

Extended Description

Starting from r1609 the stdlib won't compile on a system without SDL2 installed. The configure process does not properly detect this situation.
Expected outcome: detect SDL2 presence in configure and enable it only iff it is available.
System: CentOS release 5.8 (Final)
sdl-config --version: 1.2.10
cd world/stdio/lib/..; sac2c -v0 -g -O3 -linksetsize 0   SDL2.sac -o lib
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
gcc: -ldl: linker input file unused because linking not done
gcc: -lpthread: linker input file unused because linking not done
ar: src/SDL2/close.o: No such file or directory
ABORT: System failed to execute shell command
ABORT: ar cr lib/libSDL2Mod.a /tmp/SAC_87AUmA/fun*_nonpic.o
ABORT: /tmp/SAC_87AUmA/globals_nonpic.o  src/SDL2/close.o src/SDL2/draw.o
ABORT: src/SDL2/extent.o src/SDL2/line.o src/SDL2/color.o src/SDL2/select.o
ABORT: src/SDL2/rect.o src/SDL2/pixel.o src/SDL2/window.o src/SDL2/resize.o
ABORT: src/SDL2/update.o src/SDL2/title.o src/SDL2/setup.o src/SDL2/sem.o
ABORT: src/SDL2/names.o src/SDL2/mouse.o src/SDL2/invert.o src/SDL2/init.o
ABORT: src/SDL2/event.o src/SDL2/display.o src/SDL2/data.o
ABORT: with exit code 1
*** Compilation failed ***
*** Exit code 372 (Creating binary code)
*** 1 Error(s), 0 Warning(s)
make[1]: *** [world/stdio/lib/libSDL2Tree.so] Error 116
make: *** [fast] Error 2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking