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

warning: argument unused during compilation: '-stdlib=libc++' #129

Closed
cpsievert opened this issue Jul 6, 2023 · 0 comments · Fixed by #130
Closed

warning: argument unused during compilation: '-stdlib=libc++' #129

cpsievert opened this issue Jul 6, 2023 · 0 comments · Fixed by #130

Comments

@cpsievert
Copy link
Contributor

cpsievert commented Jul 6, 2023

CRAN has requested the following warning be fixed (this is essentially duplicate of #120)

(Changes should be verified with https://mac.r-project.org/macbuilder/submit.html)

* checking whether package ‘sass’ can be installed ... [63s/63s] WARNING
Found the following significant warnings:
   clang: warning: argument unused during compilation: '-stdlib=libc++'
[-Wunused-command-line-argument]

from

clang -falign-functions=8 -g -O2 -Wall -pedantic -Wconversion
-Wno-sign-conversion -Wstrict-prototypes  -O2 -I ./include
-stdlib=libc++ -fPIC -c -o src/cencode.o src/cencode.c
clang: warning: argument unused during compilation: '-stdlib=libc++'
[-Wunused-command-line-argument]

-stdlib-libc++ is (obviously) a C++ option, and the latest Apple Clang
is objecting to its being passed to the C compiler.  You have

sass/src/libsass/Makefile:

ifeq ($(UNAME),Darwin)
         CFLAGS += -stdlib=libc++
         CXXFLAGS += -stdlib=libc++
         LDFLAGS += -stdlib=libc++
endif

where CFLAGS is plainly wrong, and the rest are unneeded for Apple
clang, and potentially wrong if someone chose to use GCC (which has been
done, e.g. by HomeBrew).
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

Successfully merging a pull request may close this issue.

1 participant