NHDaly / ApplicationBuilder.jl

[deprecated] Compile, bundle, and release julia software
MIT License
168 stars 15 forks source link

error: Erreur du bus #50

Open nodrygo opened 5 years ago

nodrygo commented 5 years ago

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 commented 5 years ago

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! :)