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

No such file or directory #202

Closed
haydenflinner opened this issue Jan 31, 2018 · 2 comments
Closed

No such file or directory #202

haydenflinner opened this issue Jan 31, 2018 · 2 comments

Comments

@haydenflinner
Copy link

haydenflinner commented Jan 31, 2018

┌─[✗]─[hayden@nirnroot]─[~/advos/advos-p1/gtthreads]
└──╼ $bear -vvvv -- make -B
bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', '--', 'make', '-B']
bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['--', 'make', '-B'], cc='cc', cdb='compile_commands.json', cxx='c++', libear='/usr/local/lib/bear/libear.so', verbose=4)
bear: DEBUG: run_build: run build ['--', 'make', '-B'], in environment: {'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/hayden', 'XDG_CURRENT_DESKTOP': 'i3', 'XDG_SESSION_TYPE': 'x11', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-VLjgVj', 'LOGNAME': 'hayden', 'USER': 'hayden', 'HOME': '/home/hayden', 'XDG_VTNR': '7', 'PATH': '/home/hayden/.local/share/umake/bin:/home/hayden/bin:/home/hayden/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/idea/bin', 'DISPLAY': ':0', 'SSH_AGENT_PID': '1611', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'XAUTHORITY': '/home/hayden/.Xauthority', 'LANGUAGE': 'en_US', 'SHLVL': '1', 'QT_LINUX_ACCESSIBILITY_ALWAYS_ON': '1', 'MANDATORY_PATH': '/usr/share/gconf/i3.mandatory.path', 'TERMINATOR_UUID': 'urn:uuid:801b3948-3a5c-4c1c-a001-4de232735e5a', 'DERBY_HOME': '/usr/lib/jvm/java-8-oracle/db', 'QT_ACCESSIBILITY': '1', 'WINDOWID': '12582916', 'ORBIT_SOCKETDIR': '/tmp/orbit-hayden', 'JAVA_HOME': '/usr/lib/jvm/java-8-oracle', 'GTK2_MODULES': 'overlay-scrollbar', 'XDG_SESSION_DESKTOP': 'i3', 'XDG_RUNTIME_DIR': '/run/user/1000', 'SSH_AUTH_SOCK': '/tmp/ssh-z2uW99ZjLA4B/agent.1524', 'J2SDKDIR': '/usr/lib/jvm/java-8-oracle', 'GDMSESSION': 'i3', 'IBUS_DISABLE_SNOOPER': '1', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'XDG_SESSION_ID': 'c1', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '_': '/usr/local/bin/bear', 'GTK_MODULES': 'gail:atk-bridge', 'LD_PRELOAD': '/usr/local/lib/bear/libear.so', 'DESKTOP_SESSION': 'i3', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-i3:/etc/xdg', 'DEFAULTS_PATH': '/usr/share/gconf/i3.default.path', 'PYTHONSTARTUP': '/home/hayden/.pythonstartup', 'OLDPWD': '/home/hayden/advos/advos-p1', 'GDM_LANG': 'en_US', 'XDG_DATA_DIRS': '/usr/share/i3:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PWD': '/home/hayden/advos/advos-p1/gtthreads', 'COLORTERM': 'gnome-terminal', 'J2REDIR': '/usr/lib/jvm/java-8-oracle/jre', 'XDG_SEAT': 'seat0'}
bear: ERROR: wrapper: Internal error.
Traceback (most recent call last):
  File "/usr/local/bin/bear", line 225, in wrapper
    return function(*args, **kwargs)
  File "/usr/local/bin/bear", line 250, in intercept_build
    exit_code, current = capture(args)
  File "/usr/local/bin/bear", line 274, in capture
    exit_code = run_build(args.build, env=environment)
  File "/usr/local/bin/bear", line 149, in run_build
    exit_code = subprocess.call(command, *args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
bear: ERROR: wrapper: Please report this bug and attach the output to the bug report

I can share the project that this is happening in, but it will have to be through PM as it's a school assignment and I don't want future students to find it. Doing a make -B without going through bear causes no error, as does bear make -B

@rizsotto
Copy link
Owner

rizsotto commented Feb 1, 2018

Thanks for the report. From the log you've sent I see the problem is that Bear thinks that the build command is: -- make -B. (And the "No such file or directory" is about the --.)

Could you re-run it as bear -vvvv make -B and send the output?

@haydenflinner
Copy link
Author

Worked great!

bear: DEBUG: parse_args_for_intercept_build: Raw arguments ['/usr/local/bin/bear', '-vvvv', 'make', '-B']
bear: DEBUG: parse_args_for_intercept_build: Parsed arguments: Namespace(append=False, build=['make', '-B'], cc='cc', cdb='compile_commands.json', cxx='c++', libear='/usr/local/lib/bear/libear.so', verbose=4)
bear: DEBUG: run_build: run build ['make', '-B'], in environment: {'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/hayden', 'XDG_CURRENT_DESKTOP': 'i3', 'XDG_SESSION_TYPE': 'x11', 'INTERCEPT_BUILD_TARGET_DIR': '/tmp/intercept-ZhEV3T', 'LOGNAME': 'hayden'
...
bear: DEBUG: run_build: build finished with exit code: 0
bear: DEBUG: parse_exec_trace: parse exec trace file: /tmp/intercept-ZhEV3T/execution.8sljy4
bear: DEBUG: _split_command: input...

Guess this is what I get for copying how to use it off of someone else's website, although maybe using -- to signify end of options was supported when that article was written.

@rizsotto rizsotto closed this as completed Feb 2, 2018
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

2 participants