Error: operand size mismatch for `vpsubw` - c

The vpsubw AVX2 instruction is being used normally (the number of operands and the width of operands are not problematic), but the following error still occurs:
Error: operand size mismatch for vpsubw
If all the instructions about vpsubw in the code are commented out, the error will still be reported, which is very strange.
vpsubw %ymm13,(%rsp),%ymm13 # f0[0]*g0[0]
vpsubw %ymm9,%ymm1,%ymm9 # f0[0]*g0[1]
vpsubw %ymm3,%ymm14,%ymm3 # f0[1]*g0[0]
vpsubw %ymm10,%ymm2,%ymm10 # f0[1]*g0[1]
vpsubw %ymm4,%ymm15,%ymm4 # f1[0]*g1[0]
vpsubw %ymm11,%ymm5,%ymm11 # f1[0]*g1[1]
vpsubw %ymm7,%ymm0,%ymm7 # f1[1]*g1[0]
vpsubw %ymm12,%ymm6,%ymm12 # f1[1]*g1[1]
I've tried multiple methods, but none of them seem to work. Any ideas?
I've tried commenting out all the vpsubw instructions, but it still doesn't work.

Related

How do you load the math libraries to be used with jq?

According to the manual, all the standard math libraries should be available to me for jq. But, not even the simple functions are available.
How do I add the math libraries on Ubuntu or include them when I run jq?
jq -n 'pow(2,4)'
returns
jq: error: pow/1 is not defined at <top-level>, line 1: pow(2,4) jq: 1 compile error
The error message gives it away:
pow/1 is not defined […]
huh, but you are calling it with 2 arguments – why does it try to call the unary function? Nope, you are not. jq uses semicolons to separate call arguments. commas separate the elements in a stream.
jq -n 'pow(2;4)'
This will call pow/2 which you are after.
Then where do commas come into play? Consider:
$ jq -n 'pow(2,3;4,5)'
16 # 2**4 or pow(2;4)
81 # 3**4 or pow(3;4)
32 # 2**5 or pow(2;5)
243 # 3**5 or pow(3;5)

React-planner complies but produces no output

Description of how I arrived at the issue: Whilst relatively new to react I have some years experience with Node.js, so I would expect to be able to get a library working.
Installation tripped a couple of times in the catalogue, one of the mtl files referenced a png when the file was a jpg - this was changed and seems successful.
And another file has
import ImageFul from './imageful';
which had to be changed to
import ImageFul from './imageful.jsx';
which I changed but does this mean that I am missing some part of the toolchain?
The main (Github) page does not mention any prerequisites in terms of libraries or loaders (I had to set up and configure babel-plugin-import-glob) what so I am asking myself what other npm dependencies are not installed with react-planner?
Anyway having gone through a painful process, the package finally compiled - but shows nothing and gives this set of errors in the Chrome console:
react_devtools_backend.js:6 [BABEL] Note: The code generator has deoptimised the styling of "http://planner.appl/js/dist/main.js" as it exceeds the max of "500KB".
r # react_devtools_backend.js:6
i # babel.min.js:10
t # babel.min.js:10
t.default # babel.min.js:10
n.generate # babel.min.js:2
n.transform # babel.min.js:2
(anonymous) # babel.min.js:14
n.wrap # babel.min.js:2
e.transform # babel.min.js:14
s # babel.min.js:1
r # babel.min.js:24
i # babel.min.js:24
r # babel.min.js:24
e.src.n..l.content # babel.min.js:24
n.onreadystatechange # babel.min.js:24
XMLHttpRequest.send (async)
s # babel.min.js:24
(anonymous) # babel.min.js:24
o # babel.min.js:24
u # babel.min.js:24
f # babel.min.js:1
(anonymous) # babel.min.js:1
main.js:1 Uncaught TypeError: e.substr is not a function
at $a.load (:1:417556)
at ts.load (:1:418437)
at Module. (:45:1223858)
at n (:1:356)
at :1:1198
at :1:1210
at i (babel.min.js:24)
at r (babel.min.js:24)
at e.src.n..l.content (babel.min.js:24)
at XMLHttpRequest.n.onreadystatechange (babel.min.js:24)
load # main.js:1
load # main.js:1
(anonymous) # main.js:53
n # main.js:1
(anonymous) # main.js:1
(anonymous) # main.js:1
i # babel.min.js:24
r # babel.min.js:24
e.src.n..l.content # babel.min.js:24
n.onreadystatechange # babel.min.js:24
XMLHttpRequest.send (async)
s # babel.min.js:24
(anonymous) # babel.min.js:24
o # babel.min.js:24
u # babel.min.js:24
f # babel.min.js:1
(anonymous) # babel.min.js:1
[object%20Module]:1 GET {application url}[object%20Module] 404 (Not Found)
Any advice gratefully received.

What does this line of code mean in Julia Programming Language

function commence(args::Vector{String})
What I would like to know is, what does this line mean? Particularly, what does the argument of commence, "(args::Vector{String})" mean?
The line indicates the definition of a function named commence which takes a single argument args. The ::Vector{String} bit specifies that only vectors of strings, i.e. objects of type Vector{String}, will be accepted by the function. See the following demonstration:
julia> function commence(args::Vector{String})
#show args
nothing
end
commence (generic function with 1 method)
julia> commence([1,2,3])
ERROR: MethodError: no method matching commence(::Array{Int64,1})
Closest candidates are:
commence(::Array{String,1}) at REPL[1]:2
Stacktrace:
[1] top-level scope at REPL[2]:1
julia> commence("asd","test")
ERROR: MethodError: no method matching commence(::String, ::String)
Stacktrace:
[1] top-level scope at REPL[3]:1
julia> commence(["asd","test"]) # works, since typeof(args) == Vector{String}
args = ["asd", "test"]
I recommend you read through the manual, in particular this part, to learn more about functions in Julia.
:: means enforce the type similar to typeassert().
Also see https://docs.julialang.org/en/v1/base/punctuation/ [Julia Puntuation][1]

socket.io shows dependency warnings when installing using npm

I am trying to install socket.io using npm, however whenever I run
npm run build:dll
I get the warnings/errors:
Building the Webpack DLL...
Hash: e4aec7398e03ac59c7bf
Version: webpack 3.5.5
Time: 3456ms
Asset Size Chunks Chunk Names
reactBoilerplateDeps.dll.js 4.55 MB 0 [emitted] [big] reactBoilerplateDeps
chunk {0} reactBoilerplateDeps.dll.js (reactBoilerplateDeps) 3.84 MB [entry] [rendered]
WARNING in ./node_modules/socket.io/lib/index.js
108:11-32 Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/ws/lib/BufferUtil.js
Module not found: Error: Can't resolve 'bufferutil' in '/Users/***/node_modules/ws/lib'
# ./node_modules/ws/lib/BufferUtil.js 35:21-42
# ./node_modules/ws/lib/Sender.js
# ./node_modules/ws/index.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/ws/lib/Validation.js
Module not found: Error: Can't resolve 'utf-8-validate' in '/Users/***/node_modules/ws/lib'
# ./node_modules/ws/lib/Validation.js 10:22-47
# ./node_modules/ws/lib/Receiver.js
# ./node_modules/ws/index.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_46.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_46.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_47.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_47.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_48.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_48.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_51.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_51.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_darwin_57.node
Module parse failed: /Users/***/node_modules/uws/uws_darwin_57.node Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_46.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_46.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_47.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_47.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_48.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_48.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_linux_51.node
Module parse failed: /Users/***/node_modules/uws/uws_linux_51.node Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_win32_48.node
Module parse failed: /Users/***/node_modules/uws/uws_win32_48.node Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
WARNING in ./node_modules/uws/uws_win32_51.node
Module parse failed: /Users/***/node_modules/uws/uws_win32_51.node Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./node_modules/uws ^\.\/uws_.*$
# ./node_modules/uws/uws.js
# ./node_modules/engine.io/lib/server.js
# ./node_modules/engine.io/lib/engine.io.js
# ./node_modules/socket.io/lib/index.js
# dll reactBoilerplateDeps
ERROR in ./node_modules/socket.io/lib/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/***/node_modules/socket.io/lib'
# ./node_modules/socket.io/lib/index.js 7:11-24 9:13-26
# dll reactBoilerplateDeps
I have tired adding node: { fs: 'empty' } to my webpack conf, and deleting and node_modules folder, however it doesnt fix it. This issue has now also appeared on one of my old projects which I have updated.
I have found people with similar issues, however none of the fixes have worked.
"socket.io": "^2.0.4",
"webpack": "3.5.5",
I tired installing socket.io-client and I get even more errors (edit: I seem to need both for a react app).
My webpack config is the same as the react boilerplates. Using a Mac and Webstorm if this helps.
I found that I had used:
node: {
fs: 'empty',
}
In the wrong place and needed to add:
noParse: /ws/,
externals: ['ws'],
to webpack.base.babel
This cleared up all of the errors
use Webpack node modules externals to ignore all modules from node_module dir and built-in modules
var nodeExternals = require('webpack-node-externals');
...
module.exports = {
...
target: 'node', // in order to ignore built-in modules like path, fs, etc.
externals: [nodeExternals()], // in order to ignore all modules in node_modules folder
...
};

Unable to create the database using rake db:create

sahil#sahil:~/sites/QandA$ rake db:create
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/version.rb:4: warning: already initialized constant MAJOR
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/version.rb:6: warning: already initialized constant BUILD
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/version.rb:3: warning: already initialized constant NUMBERS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/version.rb:9: warning: already initialized constant VERSION
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake.rb:26: warning: already initialized constant RAKEVERSION
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/application.rb:28: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/task_arguments.rb:73: warning: already initialized constant EMPTY_TASK_ARGS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/dsl_definition.rb:143: warning: already initialized constant Commands
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake.rb:64: warning: already initialized constant FileList
/home/sahil/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake.rb:65: warning: already initialized constant RakeFileUtils
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method QandASite::Application#task called at /home/sahil/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.1/lib/rails/application.rb:214:in `initialize_tasks'
rake aborted!
stack level too deep
i m using
sahil#sahil:~/sites/QandA$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux
sahil#sahil:~/sites/QandA$ rails -v
Rails 3.0.1
sahil#sahil:~/sites/QandA$ rvm -v
rvm 1.8.0 by Wayne E. Seguin (wayneeseguin#gmail.com) [https://rvm.beginrescueend.com/]
gem file
source 'http://rubygems.org'
gem 'rails', '3.0.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'rake'
gem 'mysql2','0.2.7'
gem 'heroku'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end
Try running
bundle exec rake db:create
Sometimes that fixes weird issues.

Resources