Tiny Core Base > Release Candidate Testing
Core v11.0beta1
GNUser:
Thanks, Rich. I'll investigate that. However, note that in the commands above I didn't use the makefile.
GNUser:
Rich, I added a bunch of symlinks, but no joy.
I found this build script: http://tinycorelinux.net/5.x/x86_64/tcz/src/fluff/fluff_build.sh
Compiling and linking in one step as shown in the script works, but the binary segfaults:
--- Code: ---bruno@box:~/Downloads/fluff_1_0_7_src$ tce-load -i fltk-1.3-dev compiletc Xorg-7.7-dev
bruno@box:~/Downloads/fluff_1_0_7_src$ g++ -mtune=generic -Os -fno-exceptions -fno-rtti -fpic -Wno-narrowing -L/usr/lib -lfltk -lfltk_images -lfltk_forms -lpng -o fluff fluff.cpp
fluff.cpp: In member function ‘void Manage_Associations_Window::update()’:
fluff.cpp:2361:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2361 | cmd_list_p->data(n, (void*)i);
| ^
fluff.cpp: In member function ‘void Manage_Filetypes_Window::update()’:
fluff.cpp:2532:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2532 | hint_list_p->data(n, (void*)fh);
| ^~
bruno@box:~/Downloads/fluff_1_0_7_src$ ./fluff
Segmentation fault
--- End code ---
Perhaps there is some code in fluff.cpp that relies on functions that are no longer available in the new fltk library? Alas, I have no experience with fltk.
Rich:
Hi GNUser
--- Quote from: GNUser on January 30, 2020, 12:28:14 PM --- ... Compiling and linking in one step as shown in the script works, but the binary segfaults:
--- Code: ---bruno@box:~/Downloads/fluff_1_0_7_src$ g++ -mtune=generic -Os -fno-exceptions -fno-rtti -fpic -Wno-narrowing -L/usr/lib -lfltk -lfltk_images -lfltk_forms -lpng -o fluff fluff.cpp
--- End code ---
--- End quote ---
I just tried that under TC10 x86. It compiled with no errors and runs.
GNUser:
I just tried it in TC10 x86. It compiles without errors but segfaults when I try to run it. Mysterious.
Since you cannot reproduce my issue, I may have to throw in the towel here. I would have liked to help :'(
Rich:
Hi GNUser
--- Quote from: GNUser on January 30, 2020, 01:50:24 PM ---I just tried it in TC10 x86. It compiles without errors but segfaults when I try to run it.
--- End quote ---
Try it like this:
--- Code: ---g++ -march=i486 -mtune=i686 -Os -fno-exceptions -fno-rtti -fpic -Wno-narrowing -L/usr/lib -lfltk -lfltk_images -lfltk_forms -lpng -o fluff fluff.cpp
--- End code ---
Maybe the -mtune=generic is causing some goofy behavior from your 64 bit processor.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version