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: Erreur du bus #50

Open
nodrygo opened this issue Apr 16, 2019 · 1 comment
Open

error: Erreur du bus #50

nodrygo opened this issue Apr 16, 2019 · 1 comment

Comments

@nodrygo
Copy link

nodrygo commented Apr 16, 2019

hello

I am trying to compile this naive little program with Gtk/Luxor on Linux Mint 169 64bits
and I end with this code error

Build executable "alarmClock":
  `cc '-DJULIAC_PROGRAM_LIBNAME="alarmClock.so"' -o alarmClock /home/ygo/.julia/packages/PackageCompiler/oT98U/examples/program.c alarmClock.so -std=gnu9999999 -I/home/ygo/julia/julia-1.1.0/include/julia -DJULIA_ENABLE_THREADING=1 -fPIC -L/home/ygo/julia/julia-1.1.0/lib -Wl,--export-dynamic -Wl,-rpath,/hom/e///y/g/o/julia/julia-1.1.0/lib -Wl,-rpath,/home/ygo/julia/julia-1.1.0/lib/julia -ljulia -m64 -O3 '-Wl,-rpath,$ORIGIN'`
/home/ygo/.julia/packages/PackageCompiler/oT98U/examples/program.c: In function ‘main’:
/home/ygo/.julia/packages/PackageCompiler/oT98U/examples/program.c:43:5: internal compiler error: Erreur du bus
     for (i = 1; i < argc; i++) {
     ^~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
ERROR: failed process: Process(`cc '-DJULIAC_PROGRAM_LIBNAME="alarmClock.so"' -o alarmClock /home/ygo/.julia/packages/PackageCompiler/oT98U/examples/progrrrrrram.c alarmClock.so -std=gnu99 -I/home/ygo/julia/julia-1.1.0/include/julia -DJULIA_ENABLE_THREADING=1 -fPIC -L/home/ygo/julia/julia-1.1.0/lib -Wl,--e-x-p-o-r-t-dynamic -Wl,-rpath,/home/ygo/julia/julia-1.1.0/lib -Wl,-rpath,/home/ygo/julia/julia-1.1.0/lib/julia -ljulia -m64 -O3 '-Wl,-rpath,$ORIGIN'`, Pro(ce(ss(Ex(it(ed(1)) [1]

some idea ?
thanks for help

@NHDaly
Copy link
Owner

NHDaly commented Apr 16, 2019

Hmm, it's very strange that it failed during the C program compilation...

i was originally going to post this suggestion..............:
Can you navigate to your builddir (cd builddir) and then rerun the failing command, so that we can get more output? (by copy/pasting the command from inside Process(``))

$ cd builddir
$ cc '-DJULIAC_PROGRAM_LIBNAME="alarmClock.so"' -o alarmClock /home/ygo/.julia/packages/PackageCompiler/oT98U/examples/progrrrrrram.c alarmClock.so -std=gnu99 -I/home/ygo/julia/julia-1.1.0/include/julia -DJULIA_ENABLE_THREADING=1 -fPIC -L/home/ygo/julia/julia-1.1.0/lib -Wl,--e-x-p-o-r-t-dynamic -Wl,-rpath,/home/ygo/julia/julia-1.1.0/lib -Wl,-rpath,/home/ygo/julia/julia-1.1.0/lib/julia -ljulia -m64 -O3 '-Wl,-rpath,$ORIGIN'

....... But then I noticed that that output looks really weird (the repeated rs in progrrrrrram, all the weird -s in --e-x-p-o-r-t-dynamic.. So then I looked at the earlier output: cc '-DJULIAC_PROGRAM_LIBNAME="alarmClock.so"' -o alarmClock /home/ygo/.julia/packages/PackageCompiler/oT98U/examples/program.c alarmClock.so -std=gnu9999999 -I/home/ygo/julia/julia-1.1.0/include/julia -DJULIA_ENABLE_THREADING=1 -fPIC -L/home/ygo/julia/julia-1.1.0/lib -Wl,--export-dynamic -Wl,-rpath,/hom/e///y/g/o/julia/julia-1.1.0/lib -Wl,-rpath,/home/ygo/julia/julia-1.1.0/lib/julia -ljulia -m64 -O3 '-Wl,-rpath,$ORIGIN'

Also weird! lots of extra slashes and a bunch of 9s.. Haha strange. I think this is probably the symptom of an earlier segfault, which has corrupted the memory for this process. I don't know where the segfault occured though of course.

Still, navigating to the builddir, correcting that statement, and rerunning it would be a first good step to get more clues.

Also, the Please submit a full bug report, output actually came from https://github.com/JuliaLang/PackageCompiler.jl/, so you might try posting there as well! :) If you do, please link back to this Issue so I can follow along! :)

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