Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

libcaca doesn't compile with --use-clang #9727

Closed
tetherit opened this issue Jan 22, 2012 · 3 comments
Closed

libcaca doesn't compile with --use-clang #9727

tetherit opened this issue Jan 22, 2012 · 3 comments

Comments

@tetherit
Copy link

libcaca doesn't compile normally or with --use-clang. It does however compile fine with --use-gcc

➜  ~  brew install libcaca --use-clang
==> Downloading http://caca.zoy.org/files/libcaca/libcaca-0.99.beta17.tar.gz
File already downloaded in /Users/hackeron/Library/Caches/Homebrew
==> ./configure --disable-debug --prefix=/usr/local/Cellar/libcaca/0.99b17 --mandir=/usr/local/Cellar/libcaca/0.99b17/share/man --disable-imlib2 --disable-doc --disable-slang --disable-java --disable-csharp 
==> make install
Making install in kernel
test -z "/usr/local/Cellar/libcaca/0.99b17/lib" || ../.auto/install-sh -c -d "/usr/local/Cellar/libcaca/0.99b17/lib"
make[2]: Nothing to be done for `install-data-am'.
Making install in caca
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H -I. -I..  -I.. -DPLUGINDIR=\"\"     -D__LIBCACA__ -I/usr/local/Cellar/gettext/0.18.1.1/include   -O3 -w -pipe -march=native -Xclang -target-feature -Xclang -aes -g -O2 -fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libcaca_la-caca.lo `test -f 'caca.c' || echo './'`caca.c
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I.. -DPLUGINDIR=\"\" -D__LIBCACA__ -I/usr/local/Cellar/gettext/0.18.1.1/include -O3 -w -pipe -march=native -Xclang -target-feature -Xclang -aes -g -O2 -fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c caca.c  -fno-common -DPIC -o .libs/libcaca_la-caca.o
clang: warning: argument unused during compilation: '-fno-strength-reduce'
caca.c:474:38: error: only weak aliases are supported on darwin
char const * cucul_get_version(void) CACA_ALIAS(caca_get_version);
                                     ^
./caca.h:649:52: note: instantiated from:
#       define CACA_ALIAS(x) __attribute__ ((weak, alias(#x)))
                                                   ^
1 error generated.
make[1]: *** [libcaca_la-caca.lo] Error 1
make: *** [install-recursive] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/libcaca.rb#L31
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 03a4f011b2c625537935d62c20c6c7128711fe51
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: 8-core 64-bit nehalem
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.2.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2336
Clang: 3.0 build 211
MacPorts or Fink? false
X11 installed? true
==> Build Flags
"--use-clang" was specified
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -O3 -w -pipe -march=native -Xclang -target-feature -Xclang -aes
CXXFLAGS: -O3 -w -pipe -march=native -Xclang -target-feature -Xclang -aes
CPPFLAGS: -I/usr/local/Cellar/gettext/0.18.1.1/include
LDFLAGS: -L/usr/local/Cellar/gettext/0.18.1.1/lib
PKG_CONFIG_PATH: /usr/local/Cellar/gettext/0.18.1.1/lib/pkgconfig

Here is my brew doctor output:

➜   brew doctor
Your system is raring to brew.
@adamv
Copy link
Contributor

adamv commented Jan 22, 2012

Please report this issue upstream to the libcaca project too, thanks.

@tetherit
Copy link
Author

Already reported: http://caca.zoy.org/ticket/90

@bishiboosh
Copy link
Sponsor

The patch proposed in the issue works perfectly, could anybody modify the formula to use this patch ?

(or point me to how to do it, I'm kind of new to git and ruby)

jappievw pushed a commit to jappievw/homebrew that referenced this issue Feb 14, 2012
Fixes Homebrew#9727.
Closes Homebrew#10078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
Fixes Homebrew#9727.
Closes Homebrew#10078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
Fixes Homebrew#9727.
Closes Homebrew#10078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants