Skip to content

building fails on Solaris 11 #10

@drook

Description

@drook

Building fails on Solaris 11.
Solaris 11 uses GCC 4.5.2.
I have node.js 0.10.28 build and installed with DTrace support.

Building fails:

[root@elena ~/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed]# npm install
npm http GET https://registry.npmjs.org/dtrace-provider
npm http 304 https://registry.npmjs.org/dtrace-provider

> dtrace-provider@0.2.8 install /root/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed/node_modules/dtrace-provider
> node-gyp rebuild

make: Entering directory `/root/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed/node_modules/dtrace-provider/build'
  ACTION binding_gyp_libusdt_target_build_libusdt .
Building libusdt for x86_64
gmake[1]: Entering directory `/root/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed/node_modules/dtrace-provider/libusdt'
rm -f *.gch
rm -f *.o
rm -f libusdt.a
rm -f test_usdt
rm -f test_usdt32
rm -f test_usdt64
rm -f test_mem_usage
gcc -O2 -fPIC -m64   -c -o usdt.o usdt.c
gcc -O2 -fPIC -m64   -c -o usdt_dof_file.o usdt_dof_file.c
gcc -O2 -fPIC -m64 -o usdt_tracepoints.o -c usdt_tracepoints_x86_64.s
Assembler:
        "usdt_tracepoints_x86_64.s", line 2 : Syntax error
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 2 : Illegal mnemonic
        Near line: " * Copyright (c) 2012, Chris Andrews. All rights reserved."
        "usdt_tracepoints_x86_64.s", line 3 : Syntax error
        Near line: " */"
        "usdt_tracepoints_x86_64.s", line 6 : Syntax error
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 6 : Illegal mnemonic
        Near line: " * Stub functions containing DTrace tracepoints for probes and"
        "usdt_tracepoints_x86_64.s", line 7 : Syntax error
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 7 : Illegal mnemonic
        Near line: " * is-enabled probes. These functions are copied for each probe"
        "usdt_tracepoints_x86_64.s", line 8 : Syntax error
        Near line: " * dynamically created."
        "usdt_tracepoints_x86_64.s", line 8 : Illegal mnemonic
        Near line: " * dynamically created."
        "usdt_tracepoints_x86_64.s", line 8 : Illegal mnemonic
        Near line: " * dynamically created."
Too many errors - Goodbye
gmake[1]: *** [usdt_tracepoints.o] Ошибка 1
gmake[1]: Leaving directory `/root/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed/node_modules/dtrace-provider/libusdt'
make: *** [.] Ошибка 2
make: Leaving directory `/root/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed/node_modules/dtrace-provider/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/node.js-0.10.28/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/usr/local/node.js-0.10.28/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/.npm/stackvis/0.2.0/package/node_modules/manta/node_modules/watershed/node_modules/dtrace-provider
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm WARN optional dep failed, continuing dtrace-provider@0.2.8

However, if *.s are stripped from the comment blocks, building suceeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions