[LU-1821] build errors with newer gcc Created: 04/Sep/12 Updated: 18/Apr/13 Resolved: 03/Oct/12 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.3.0, Lustre 2.4.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Peng Tao | Assignee: | Keith Mannthey (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Severity: | 3 |
| Rank (Obsolete): | 4455 |
| Description |
|
newer gcc checks stricter about C99 VLA and set-but-unused variables. |
| Comments |
| Comment by Peng Tao [ 04/Sep/12 ] |
|
VLA error: drivers/incore/fs_incore.c:340:54: error: variably modified $gcc --version |
| Comment by Peng Tao [ 04/Sep/12 ] |
|
patch submitted: |
| Comment by Peng Tao [ 06/Sep/12 ] |
|
Another error after rebasing my code... make[3]: Entering directory `/home/bergwolf/src/linux-2.6' WARNING: Symbol version dump /home/bergwolf/src/linux-2.6/Module.symvers CC [M] /home/bergwolf/rpmbuild/BUILD/lustre-2.3.50/lustre/osc/osc_request.o $gcc --version patch submitted to |
| Comment by James A Simmons [ 06/Sep/12 ] |
|
This is the same problem we seen on SLES11 SP2. Please take a look at http://review.whamcloud.com/#change,3734 for jira ticket |
| Comment by Peng Tao [ 06/Sep/12 ] |
|
|
| Comment by James A Simmons [ 06/Sep/12 ] |
|
Look at the |
| Comment by Peng Tao [ 06/Sep/12 ] |
|
I agree. I'll just abandon http://review.whamcloud.com/#change,3884 and reduce http://review.whamcloud.com/#change,3856 to just fix VLA error. There is no need to depend on patch from |
| Comment by Peter Jones [ 03/Oct/12 ] |
|
Landed for 2.3 |
| Comment by James A Simmons [ 08/Oct/12 ] |
|
Found another problem. Could we reopen and keep this ticket around? We will continue to have gcc build errors from time to time. |
| Comment by Peter Jones [ 08/Oct/12 ] |
|
James It makes it much easier to track which fix is in which release if we have one ticket per issue rather than reused tickets (and I bet it takes less time to open a new ticket than to find the existing one to reuse Peter |
| Comment by James A Simmons [ 08/Oct/12 ] |
|
Okay. Its under |