Opened 14 years ago
Closed 10 years ago
#381 closed defect (wontfix)
IZ2112: compilation pains and solutions on fedora core 6
Reported by: | hintak | Owned by: | dlove |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | sge | Version: | 6.0u9 |
Severity: | minor | Keywords: | build Linux install |
Cc: |
Description
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2112]
Issue #: 2112 Platform: Other Reporter: hintak (hintak) Component: gridengine OS: Linux Subcomponent: install Version: 6.0u9 CC: [_] opoplawski [_] Remove selected CCs Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: dom (dom) QA Contact: dom URL: * Summary: compilation pains and solutions on fedora core 6 Status whiteboard: Attachments: Date/filename: Description: Submitted by: Thu Nov 9 13:27:00 -0700 2006: config.sub config.sub from automake 1.9 ; please replace the config.sub in source/3rdparty/qtcsh and source/3rdparty/qmake. (text/plain) hintak Tue Nov 21 09:07:00 -0700 2006: qmon-noWerror.patch patch to remove all -Werror (text/plain) hintak Tue May 27 13:52:00 -0700 2008: warnings Current warnings compiling on Fedora 10 (text/plain) opoplawski Issue 2112 blocks: Votes for issue 2112: Opened: Thu Nov 9 12:23:00 -0700 2006 ------------------------ I have encountered some problems building 60u9 (and 60u8, 60u4) on fedora core 6, and managed to fixed most of them, so I am going to detail it here. (1) why the *&^%$£ is the default compiler switch in aimk contains both -Werror and -Wno-error? Earlier gcc seems to think if you specify both, it means no (or the last one take effect) - gcc 4.1 on fc6 seems to believe it is the opposite - if you specify both, it means aborts on any warnings. I have to strip out the -Werror's from aimk. (2) "config.sub" in source/3rdparty/qtcsh and source/3rdparty/qmake are too old to recognise "x86_64-unknown-linux-gnu" on kernel 2.6 as a valid platform. You need to copy this file from a more recent automake/autoconf/libtool. On my box many of these are the same and in any case, more up to date that V60u9 is carrying: /usr/lib/rpm/config.sub /usr/lib/rpm/redhat/config.sub /usr/lib64/php/build/config.sub /usr/share/apps/kapptemplate/admin/config.sub /usr/share/automake-1.4/config.sub /usr/share/automake-1.5/config.sub /usr/share/automake-1.6/config.sub /usr/share/automake-1.7/config.sub /usr/share/automake-1.9/config.sub /usr/share/libtool/config.sub /usr/share/libtool/libltdl/config.sub (3) There wasn't any instructions about using the platform version of ssl and crypto (which fedora ships). I had to do something quite ugly like this: perl -pi -e \ 's(^set SECLIBS_STATIC.+)(set SECLIBS_STATIC = " -lssl -lcrypto ")' source/aimk I don't have a static version of those libraries around. (most linux users don't!). (4) same thing with autodetecting the location of the openssl and includes. I have to do: perl -pi -e 's(/vol.+?\$buildarch)(/usr);' source/aimk.site (3), (4) can be fixed and routinely done automatically by many open-source software with autoconf, etc. ok, at least they can be detailed in README.BUILD for manual editing. (1) and (2) is just plain-broken. BTW, the dependency checking also does not seem to work reliably. often e.g. aimk -only-qmon does not works after aimk depend (dies from not being able to find some files), sometimes it requires a manual "aimk -only-core" or some others in the middle. The problem seems intermittent. ------- Additional comments from hintak Thu Nov 9 13:27:58 -0700 2006 ------- Created an attachment (id=85) config.sub from automake 1.9 ; please replace the config.sub in source/3rdparty/qtcsh and source/3rdparty/qmake. ------- Additional comments from hintak Fri Nov 17 11:34:16 -0700 2006 ------- The first issue apparently is well-known to the oscar project people - this is in the SRPMS of sge-V60u8 they ship: (http://svn.oscar.openclustergroup.org/oscar/branches/branch-5-0/packages/sge/SRPMS) # The following patch (aimk.patch) removes all "-Werror" # from the aimk script. Otherwise, the SGE build fails # after warnings (not errors) when built against # recent versions of glibc - Babu Sundaram, 04/13/06 Patch4: aimk.patch ------- Additional comments from hintak Tue Nov 21 09:07:29 -0700 2006 ------- Created an attachment (id=90) patch to remove all -Werror ------- Additional comments from opoplawski Tue May 27 13:51:06 -0700 2008 ------- I have to strip -Werror as well from my Fedora rpm builds. I'll attach a list of all of the warnings I currently get during compilation. ------- Additional comments from opoplawski Tue May 27 13:52:31 -0700 2008 ------- Created an attachment (id=174) Current warnings compiling on Fedora 10 ------- Additional comments from opoplawski Tue May 27 13:53:57 -0700 2008 ------- Add myself to CC
Attachments (3)
Change History (6)
Changed 10 years ago by dlove
Changed 10 years ago by dlove
Changed 10 years ago by dlove
comment:1 Changed 10 years ago by dlove
- Keywords build added; removed
- Owner set to dlove
- Severity set to minor
- Status changed from new to assigned
comment:2 Changed 10 years ago by dlove
- Summary changed from IZ2112: ion pains and solutions on fedora core 6 to IZ2112: compilation pains and solutions on fedora core 6
comment:3 Changed 10 years ago by dlove
- Resolution set to wontfix
- Status changed from assigned to closed
Apparently only the configure issue still outstanding, and only in qmake.
It doesn't stop the build and is best addressed by #832.
Note: See
TracTickets for help on using
tickets.
Fixed apart from the config.sub.
Should replace qmake and qtcsh sources with current version plus
SGE patch.