-
Notifications
You must be signed in to change notification settings - Fork 16
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
build error #3
Comments
It's very interesting to see this, just curious - do you have xcode installed? |
I do. I recently upgraded to mountain lion. But, I was able to compile and install opus on its own. Hope this helps. I'm very interested to use and maybe help with this project. Cheers Sent from my iPhone On Aug 30, 2012, at 5:04 AM, Fedor Indutny notifications@github.com wrote:
|
@phillyqueso ok, would it be hard for you to pull your |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Custom modes */
/* #undef CUSTOM_MODES */
/* Assertions */
/* #undef ENABLE_ASSERTIONS */
/* Debug fixed-point implementation */
/* #undef FIXED_DEBUG */
/* Compile as fixed-point */
/* #undef FIXED_POINT */
/* Compile as floating-point */
#define FLOATING_POINT /**/
/* Float approximations */
/* #undef FLOAT_APPROX */
/* Fuzzing */
/* #undef FUZZING */
/* Define to 1 if you have the <alloca.h> header file. */
#define HAVE_ALLOCA_H 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `lrint' function. */
#define HAVE_LRINT 1
/* Define to 1 if you have the `lrintf' function. */
#define HAVE_LRINTF 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `__malloc_hook' function. */
/* #undef HAVE___MALLOC_HOOK */
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* This is a build of OPUS */
#define OPUS_BUILD /**/
/* Opus library version string */
#define OPUS_VERSION "1.0.1-rc2-18-gf6c26e0"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION ""
/* The size of `int', as computed by sizeof. */
#define SIZEOF_INT 4
/* The size of `long', as computed by sizeof. */
#define SIZEOF_LONG 8
/* The size of `long long', as computed by sizeof. */
#define SIZEOF_LONG_LONG 8
/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Make use of alloca */
/* #undef USE_ALLOCA */
/* Use C99 variable-size arrays */
#define VAR_ARRAYS /**/
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
# endif
#endif
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
#define restrict __restrict
/* Work around a bug in Sun C++: it does not support _Restrict or
__restrict__, even though the corresponding Sun C compiler ends up with
"#define restrict _Restrict" or "#define restrict __restrict__" in the
previous line. Perhaps some future version of Sun C++ will work with
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
#if defined __SUNPRO_CC && !defined __RESTRICT
# define _Restrict
# define __restrict__
#endif |
Edited your comment just to make it more readable |
Please try installing vock@0.3.6 . I added your config.h for mac os systems. |
I tried vock@0.3.6 and I get the following: > pripub@0.2.0 install /opt/local/lib/node_modules/vock/node_modules/pripub
> node-gyp rebuild
CXX(target) Release/obj.target/pripub/src/pripub.o
In file included from ../src/pripub.cc:1:
../src/pripub.h:55:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif _SRC_PRIPUB_H_
^
//
1 warning generated.
SOLINK_MODULE(target) Release/pripub.node
SOLINK_MODULE(target) Release/pripub.node: Finished
/opt/local/bin/vock -> /opt/local/lib/node_modules/vock/bin/vock
> vock@0.3.6 install /opt/local/lib/node_modules/vock
> node-gyp rebuild
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus.o
In file included from ../deps/opus/opus/src/opus.c:29:
../deps/opus/config/mac/config.h:17:9: warning: 'FIXED_POINT' macro redefined
#define FIXED_POINT */
^
<command line>:5:9: note: previous definition is here
#define FIXED_POINT 1
^
In file included from ../deps/opus/opus/src/opus.c:29:
../deps/opus/config/mac/config.h:20:26: warning: '/*' within block comment [-Wcomment]
/* #undef FLOATING_POINT /**/
^
2 warnings generated.
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus_compare.o
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus_decoder.o
In file included from ../deps/opus/opus/src/opus_decoder.c:29:
../deps/opus/config/mac/config.h:17:9: warning: 'FIXED_POINT' macro redefined
#define FIXED_POINT */
^
<command line>:5:9: note: previous definition is here
#define FIXED_POINT 1
^
In file included from ../deps/opus/opus/src/opus_decoder.c:29:
../deps/opus/config/mac/config.h:20:26: warning: '/*' within block comment [-Wcomment]
/* #undef FLOATING_POINT /**/
^
In file included from ../deps/opus/opus/src/opus_decoder.c:46:
In file included from ../deps/opus/opus/silk/structs.h:32:
In file included from ../deps/opus/opus/silk/SigProc_FIX.h:43:
In file included from ../deps/opus/opus/silk/macros.h:32:
../deps/opus/config/mac/config.h:20:26: warning: '/*' within block comment [-Wcomment]
/* #undef FLOATING_POINT /**/
^
../deps/opus/opus/src/opus_decoder.c:463:25: error: incomplete definition of type 'struct OpusCustomMode'
window = celt_mode->window;
~~~~~~~~~^
../deps/opus/opus/include/opus_custom.h:110:16: note: forward declaration of 'struct OpusCustomMode'
typedef struct OpusCustomMode OpusCustomMode;
^
3 warnings and 1 error generated.
make: *** [Release/obj.target/opus/deps/opus/opus/src/opus_decoder.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Darwin 12.1.0
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/local/lib/node_modules/vock
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok
npm ERR! vock@0.3.6 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the vock@0.3.6 install script.
npm ERR! This is most likely a problem with the vock package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls vock
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.1.0
npm ERR! command "node" "/opt/local/bin/npm" "install" "-g" "vock"
npm ERR! cwd /Users/phillyqueso/projects
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/phillyqueso/projects/npm-debug.log
npm ERR! not ok code 0 |
Hm... lets try upgrading to latest opus... |
Can you please try vock@0.3.7 ? |
A little better... It really doens't like "struct OpusCustomMode". Is that maybe lack of a compilation flag? > pripub@0.2.1 install /opt/local/lib/node_modules/vock/node_modules/pripub
> node-gyp rebuild
CXX(target) Release/obj.target/pripub/src/pripub.o
SOLINK_MODULE(target) Release/pripub.node
SOLINK_MODULE(target) Release/pripub.node: Finished
/opt/local/bin/vock -> /opt/local/lib/node_modules/vock/bin/vock
> vock@0.3.7 install /opt/local/lib/node_modules/vock
> node-gyp rebuild
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus.o
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus_compare.o
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus_decoder.o
../deps/opus/opus/src/opus_decoder.c:463:25: error: incomplete definition of type 'struct OpusCustomMode'
window = celt_mode->window;
~~~~~~~~~^
../deps/opus/opus/include/opus_custom.h:110:16: note: forward declaration of 'struct OpusCustomMode'
typedef struct OpusCustomMode OpusCustomMode;
^
1 error generated.
make: *** [Release/obj.target/opus/deps/opus/opus/src/opus_decoder.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Darwin 12.1.0
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/local/lib/node_modules/vock
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok
npm ERR! vock@0.3.7 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the vock@0.3.7 install script.
npm ERR! This is most likely a problem with the vock package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls vock
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.1.0
npm ERR! command "node" "/opt/local/bin/npm" "install" "-g" "vock"
npm ERR! cwd /Users/phillyqueso/projects
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/phillyqueso/projects/npm-debug.log
npm ERR! not ok code 0 |
Can you run |
fizbo:vock phillyqueso$ CC -v |
Would it be hard for you to switch to g++? It seems to be a compiler bug. |
I symlinked CC -> g++, temporarily. This is the output:
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus.o |
fizbo:vock phillyqueso$ g++ -v |
Can you please try doing clean checkout, i.e. |
/opt/local/bin/node-gyp -> /opt/local/lib/node_modules/node-gyp/bin/node-gyp.js |
Can you try moving this line: https://github.com/indutny/vock/blob/master/deps/opus/opus/src/opus_decoder.c#L40 before |
That doesn't fix anything. I get the same result. |
Hi, I'm looking forward to playing with this project. I tried installing, and got the following compile error:
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus.o
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus_compare.o
CC(target) Release/obj.target/opus/deps/opus/opus/src/opus_decoder.o
In file included from ../deps/opus/opus/src/opus_decoder.c:43:
../deps/opus/opus/celt/float_cast.h:123:10: warning: "Don't have the functions lrint() and lrintf ()." [-W#warnings]
#warning "Don't have the functions lrint() and lrintf ()."
^
../deps/opus/opus/celt/float_cast.h:124:10: warning: "Replacing these functions with a standard C cast." [-W#warnings]
#warning "Replacing these functions with a standard C cast."
^
../deps/opus/opus/src/opus_decoder.c:463:25: error: incomplete definition of type 'struct OpusCustomMode'
window = celt_mode->window;
~~~~~~~~~^
../deps/opus/opus/include/opus_custom.h:110:16: note: forward declaration of 'struct OpusCustomMode'
typedef struct OpusCustomMode OpusCustomMode;
^
2 warnings and 1 error generated.
make: *** [Release/obj.target/opus/deps/opus/opus/src/opus_decoder.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Darwin 12.1.0
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/phillyqueso/projects/vock
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.6.7
gyp ERR! not ok
npm ERR! vock@0.3.5 install:
node-gyp rebuild
npm ERR!
sh "-c" "node-gyp rebuild"
failed with 1npm ERR!
npm ERR! Failed at the vock@0.3.5 install script.
npm ERR! This is most likely a problem with the vock package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls vock
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.1.0
npm ERR! command "node" "/opt/local/bin/npm" "install" "."
npm ERR! cwd /Users/phillyqueso/projects/vock
npm ERR! node -v v0.8.8
npm ERR! npm -v 1.1.59
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/phillyqueso/projects/vock/npm-debug.log
npm ERR! not ok code 0
The text was updated successfully, but these errors were encountered: