-
Notifications
You must be signed in to change notification settings - Fork 611
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
Harfbuzz 2.3.0 broken on Solaris 10 #1535
Comments
I tried to test an older version, but it's a bit challenging since the autogenerated stuff is missing from the repository:
When using the pregenerated files, there are still some strange things when running configure:
|
@prrace can you help here? |
Hmm we have older than this GCCs, do you think we can have a cross compiler similar to this on a x86-64 machine and preferably put it on some docker image for our CI use? (I mean we need just need a .dockerflie for the compiler in order to fix and always assert work-ability for the environment) |
I just wanted to say that I tested gcc 5.5 on macOS and there it seems to compile just fine. So it cannot be just the compiler version. The same problem can be reproduced on OpenIndiana (version 11, I believe) with gcc 6.4. I don't know enough of C++ to understand what precisely the issue is here. What cross-compiler / host-target OS did you have in mind? (You may also try to ask OpenCSW to set up a buildbot instance to test the builds on Solaris 10 or 11 in their build farm.) |
We at OpenJDK have never used gcc to build on Solaris .. policy has always |
Does using Oracle Studio mean
followed by
But anyway, using that compiler is not an option for us since we compile the full TeX Live at once and there are simply waaaaaay to many libraries that don't build with it, and it's not feasible to request from each one of those project to add support (probably requiring quite extensive patches) for a dying OS. The problematic commit (the one I suspect) was added on the 1st of December. So I would be curious to hear about your results, @prrace. Thanks in advance. (Slightly sad because we need to stick with the super old version on macOS for now.) |
This error reported above : also manifests on Solaris 11 using Oracle Developer Studio 12.6 (the latest version) : |
The Solaris compiler folks say this could (or should) have caused a problem with other compilers too. The hb_is_signed template is specialized for signed char and unsigned char (see hb-dsalgs.hh around line 300). Adding this one line into hb-dsalgs.hh fixes it for me : |
Thank you. I need template <> struct hb_is_signed<char> { enum { value = false }; }; though. The above mentioned suggestion without an argument in |
Sigh .. that text IS there (if you select edit) on my post but markdown swallowed it. |
We never try instantiating that with char though, only with uint8_t and int8_t. I supposed that's why other compilers are fine. Depends on what those types are defined to. |
So, declaring hb_is_signed to return false for char is problematic if char is actually signed and int8_t typedefed to char... I can probably get rid of this thing completely... |
I can, instead, just add specializations for int8_t, uint8_t, etc. |
That makes sense and explains why it is platform-specific and seen with gcc + Oracle Studio compilers on Solaris |
Okay, pushed something. Let's see what bots break. |
Also. I'm going to merge the iter branch soon. It requires C++11 and some advanced use of templates for SFINAE. I really hope we can get that working for all compilers you care about soon. Input from your compiler team would be appreciated. |
1 similar comment
Also. I'm going to merge the iter branch soon. It requires C++11 and some advanced use of templates for SFINAE. I really hope we can get that working for all compilers you care about soon. Input from your compiler team would be appreciated. |
harfbuzz/harfbuzz#1535 git-svn-id: svn://tug.org/texlive/trunk/Build/source@49897 c570f23f-e606-0410-a88d-b1316a301751
harfbuzz/harfbuzz#1535 git-svn-id: svn://tug.org/texlive/trunk/Build/source@49897 c570f23f-e606-0410-a88d-b1316a301751
harfbuzz/harfbuzz#1535 git-svn-id: svn://tug.org/texlive/trunk/Build@49897 c570f23f-e606-0410-a88d-b1316a301751
I noticed the following problem in a TeX Live build immediately after it switched to 2.3.0, the previous version 2.2.0 worked fine. The compiler used was gcc 5.5 from OpenCSW. The same issue is present in a standalone build, on both sparc and i386/x86_64 Solaris:
I wanted to check if it worked immediately before the commit 11d2f49, but I have issues getting autotools to work correctly.
The text was updated successfully, but these errors were encountered: