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

Error while compiling on FreeBSD #7

Open
Bananzz opened this issue Dec 3, 2010 · 0 comments
Open

Error while compiling on FreeBSD #7

Bananzz opened this issue Dec 3, 2010 · 0 comments

Comments

@Bananzz
Copy link

Bananzz commented Dec 3, 2010

node -v: v0.2.5
uname -a: FreeBSD i01.vm1.DOMAIN.ZONE 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

used gccs:
gcc version 4.2.1 20070719 [FreeBSD]
gcc version 4.4.5 20100706 (prerelease) (GCC)
gcc version 4.6.0 20100703 (experimental) (GCC)

Error comes on 4th step:
[4/6] cxx: hashlib.cc -> build/default/hashlib_2.o
In file included from /usr/include/c++/4.2/cwchar:55,
from /usr/include/c++/4.2/bits/postypes.h:46,
from /usr/include/c++/4.2/iosfwd:49,
from /usr/include/c++/4.2/ios:43,
from /usr/include/c++/4.2/ostream:45,
from /usr/include/c++/4.2/iostream:45,
from ../hashlib.cc:29:
/usr/include/wchar.h:131: error: expected ',' or '...' before numeric constant
/usr/include/wchar.h:137: error: expected ',' or '...' before numeric constant
/usr/include/wchar.h:221: error: expected ',' or '...' before numeric constant
Waf: Leaving directory `/usr2/workspace/build/brainfucker-hashlib-9f1d3fe/build'
Build failed: -> task failed (err #1):
{task: cxx hashlib.cc -> hashlib_2.o}
*** Error code 1

or some other path for wchar.h (if we're using not default gcc)
wchar.h:131: int swprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, ...);
wchar.h:137: int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, __va__list);
wchar.h:221: int wcsncasecmp(const wchar_t *, const wchar_t *, size_t n);

All errors comes on size_t...

brainpicture added a commit that referenced this issue Jul 5, 2011
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