Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with Clang 3.4 on ArchLinux #4

Closed
almostalive opened this issue Jan 27, 2014 · 1 comment
Closed

Fails to build with Clang 3.4 on ArchLinux #4

almostalive opened this issue Jan 27, 2014 · 1 comment

Comments

@almostalive
Copy link
Contributor

tyrquake fails to build with clang 3.4 on ArchLinux because of -fweb and -frename-registers inside of Makefile.libretro. This is the error

$ CC=clang CXX=clang++ make -f Makefile.libretro
clang -I. -INQ -Iinclude -O3 -ffast-math -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ -DINLINE=inline -DNQ_HACK -DQBASEDIR=. -DTYR_VERSION=0.62 -fomit-frame-pointer -Wall -fweb -frename-registers -DNDEBUG=1 -fPIC -DFRONTEND_SUPPORTS_RGB565 -c -o NQ/cl_input.o NQ/cl_input.c
clang: error: unknown argument: '-fweb'
clang: error: unknown argument: '-frename-registers'
Makefile.libretro:248: recipe for target 'NQ/cl_input.o' failed
make: *** [NQ/cl_input.o] Error 1

removing -fweb and -frename-registers allows it to build with both clang and gcc, and they both work as far as I can tell. I would of done a pull request for this but since I have no clue what those two things are for, I figured I would let you know and you can decide to get rid of them or change them or whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant