View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003945 | ardour | bugs | public | 2011-04-06 15:35 | 2020-04-19 20:15 |
| Reporter | pablomme | Assigned To | cth103 | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Target Version | 3.0-beta1 | ||||
| Summary | 0003945: Cannot compile with optimize flags using gcc-4.4 if binary 'gcc' is version 4.5 | ||||
| Description | I'm trying to compile Ardour 3 alpha 4 (the bug tracker didn't list that as an option) from source with full optimization to see if it can cope with some heavy sessions the debug build seems to be unable to handle. I'm running Ubuntu 11.04 beta 1. After installing libraries, compiling the latest JACK, etc, I ran into the message: "Version 4.5 of gcc is not ready for use when compiling Ardour with optimization. Please use a different version or re-configure with --debug" I then installed the packages gcc-4.4 and g++-4.4, and tried to configure the waf build with: CC=gcc-4.4 CXX=g++-4.4 \ PKG_CONFIG_PATH=$HOME/software/jack2/lib/pkgconfig \ CPATH=$HOME/software/jack2/include \ ./waf configure --prefix=$HOME/software/ardour3a4-opt --lv2 --freedesktop \ --optimize --fpu-optimization Now, while waf happily uses the environment's CC and CXX, wscript has a version check that uses the binary name 'gcc' explicitly, so the above command prints the same error message as before. Replacing in wscript: -def fetch_gcc_version (): - cmd = "LANG= gcc --version" +def fetch_gcc_version (CC): + cmd = "LANG= " + CC + " --version" and - gcc_versions = fetch_gcc_version() + gcc_versions = fetch_gcc_version( str(conf.env['CC']) ) allows compilation with gcc-4.4. This still fails to consider compilers other than gcc (I understand that icc and suncc are supported), and fails to trap g++ version 4.5, but it's an improvement. Since (I assume) forbidding gcc 4.5 is a temporary measure anyway, could something like the above fix be incorporated into wscript? | ||||
| Tags | No tags attached. | ||||
|
|
Patch applied to SVN #9413. Thanks! |
|
|
Thank you! Why is the check for gcc 4.5, by the way? I've tried it and it seems to work fine. |
|
|
Issue has been closed automatically, by Trigger Close Plugin. Feel free to re-open with additional information if you think the issue is not resolved. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-04-06 15:35 | pablomme | New Issue | |
| 2011-04-06 19:55 | cth103 | cost | => 0.00 |
| 2011-04-06 19:55 | cth103 | Target Version | => 3.0-beta1 |
| 2011-04-23 00:14 | cth103 | Note Added: 0010644 | |
| 2011-04-23 00:14 | cth103 | Status | new => resolved |
| 2011-04-23 00:14 | cth103 | Resolution | open => fixed |
| 2011-04-23 00:14 | cth103 | Assigned To | => cth103 |
| 2011-04-23 00:45 | pablomme | Note Added: 0010646 | |
| 2020-04-19 20:15 | system | Note Added: 0022517 | |
| 2020-04-19 20:15 | system | Status | resolved => closed |