mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[GH-ISSUE #18] Ultimate++ on Illumos/OpenIndiana #9
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hoper-a11y on GitHub (Jun 17, 2020).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/18
I could compile Ultimate++ just fine with the system's gcc 7.5.0 but it failed at linking. Please note that the ld binary we should use is call gld, the ld in /usr/bin/ld is the old linker from Sun so it doesn't support the options Ultimate++ used. Please fix the makefile. C++ IDE is very lacked on this system. So having Ultimate++ and TheIDE worked on it is awesome.
@mirek-fidler commented on GitHub (Jun 17, 2020):
Afaik, we are not calling ld directly....
BTW: Are you using Makefile from git, or posix installation from sf.net?
Either way, have you managed to fix the makefile? I think linking commands
are at the beginning of Makefile...
Mirek
On Wed, Jun 17, 2020 at 8:54 AM hoper-a11y notifications@github.com wrote:
@hoper-a11y commented on GitHub (Jun 17, 2020):
I downloaded upp-posix-14603.tar.xz.
It's obviously a problem with ld. The error message is here:
ld: fatal: unrecognized option '-O'
ld: fatal: unrecognized option '--gc-sections'
ld: fatal: use the -z help option for usage information
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:256: theide] Error 1
When I use the dirty trick: mv /usr/bin/ld /usr/bin/ld.old && cp /usr/bin/gld /usr/bin/ld it give the following error message:
/usr/gcc/7/lib/gcc/i386-pc-solaris2.11/7.5.0/../../../libgcc-unwind.map: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:256: theide] Error 1
I think the fault is of OpenIndiana's toolchain, not upp. So the best thing I could do now is to close this issue. Thank you for spending time to help me.
@mirek-fidler commented on GitHub (Jun 18, 2020):
If the problem is with --gc-sections, then that part is definitely not
essential.
I think that if you replace
CFLAGS = -O3 -ffunction-sections -fdata-sections
CXXFLAGS = -O3 -ffunction-sections -fdata-sections -std=c++14
LDFLAGS = -Wl,--gc-sections $(LINKOPTIONS)
with
CFLAGS = -O3
CXXFLAGS = -O3 -std=c++14
LDFLAGS = $(LINKOPTIONS)
then it should compile I think.
Mirek
On Wed, Jun 17, 2020 at 6:34 PM hoper-a11y notifications@github.com wrote:
@ghost commented on GitHub (Jul 2, 2020):
Then where to edit it then? First I changed in uMakefile, it didn't have any effect to the build process. Still unknown -O option. Then I changed in Makefile, again didn't have any effect to the build process at all, still unknown -O option. Each time I applied the change, I ran gmake clean to make sure everything was cleaned. So it took me almost an hour without archive anything.
Solaris/Illumos is an annoying target. Since the proprietary bits still left there. e.g: the proprietary Sun's ld linker. If they used the gnu linker, it's much better.
@ghost commented on GitHub (Jul 2, 2020):
No. I don't think the problems lie in --gc-sections. It's something in your $(LINKOPTION) indeed.
@ghost commented on GitHub (Jul 2, 2020):
It's weirded that the error message always said unknown option, check help with ld -z. But when I actually run ld -z, it said -z is an unknown option. How weirded!
@mirek-fidler commented on GitHub (Jul 6, 2020):
Is it possible you are still using install script?
Makefile is for make, install script uses different procedure to build it all. It should eventually be possible to fix that as well, but a bit more complicated.
BTW, is there some reasonable VirtualBox image of OpenIndiana?
Mirek
@ghost commented on GitHub (Jul 6, 2020):
Here you are: https://1drv.ms/u/s!Auwd9nlwFHRmakDesevGPpKC1Ac?e=AiVZ8X
Note: If you want to browse the web on OpenIndiana and Firefox is not stable enough you could use Pale Moon. IMHO, Pale Moon is more stable on OpenIndiana than Firefox so I included it in the Downloads directory.
@ghost commented on GitHub (Jul 9, 2020):
Hope you could solve this issue. I will keep the VirtualBox image above for a while before removing it, since I'm using the free plan of OneDrive and it's used almost all of my storage space.
@ghost commented on GitHub (Jul 13, 2020):
I deleted the image. Hope you already got it. Please let me know about your progress. Thanks.
@klugier commented on GitHub (Aug 13, 2020):
Please try our latest nightly builds it seems that Mirek added support for OpenIndiana. https://www.ultimatepp.org/www$uppweb$nightly$en-us.html (U++ for Linux/FreeBSD).