[cfe-dev] [libcxx] compilation problems with 'long long'

Eli Friedman eli.friedman at gmail.com
Wed Feb 1 14:17:28 PST 2012


On Wed, Feb 1, 2012 at 1:58 PM, Lenny Maiorani <lenny at colorado.edu> wrote:
> Hello,
>
> I am trying to switch my project (based on FreeBSD7.3) to compile using Clang with the modern libc++. In order to do this, I need to get libc++ compiled. However there are a few problems. I am using the Clang from TOT which was built with GCC 4.2.1.
>
> Below is an excerpt from the failed compilation. What I am doing wrong here?
>
> Thanks,
> -Lenny
>
>
>
> [lenny at tahiti ~/bt/libcxx/lib]$ ./buildit
> + clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2 -Wstrict-overflow=4 -nostdinc++ -I../include ../src/algorithm.cpp
> In file included from ../src/algorithm.cpp:10:
> In file included from ../include/algorithm:596:
> ../include/cstdlib:96:9: error: no member named 'lldiv_t' in the global namespace
> using ::lldiv_t;
>      ~~^
> ../include/cstdlib:100:9: error: no member named 'atoll' in the global namespace
> using ::atoll;
>      ~~^
> ../include/cstdlib:105:9: error: no member named 'strtoll' in the global namespace
> using ::strtoll;
>      ~~^
> ../include/cstdlib:107:9: error: no member named 'strtoull' in the global namespace
> using ::strtoull;
>      ~~^
> ../include/cstdlib:124:9: error: no member named 'llabs' in the global namespace
> using ::llabs;
>      ~~^
> ../include/cstdlib:127:9: error: no member named 'lldiv' in the global namespace
> using ::lldiv;
>      ~~^

This indicates libc++ is expecting your C library to export symbols
which it apparently doesn't export.  If you aren't interested in
hacking the code, I'd suggest trying something newer than FreeBSD 7.3

-Eli




More information about the cfe-dev mailing list