Build finds diagnostic_list.h from installed Zorba

Bug #1067883 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
High
Chris Hillery

Bug Description

If you have (say) Zorba 2.6 installed on your system, you may have problems building (say) Zorba 2.7, because the build will find diagnostic_list.h from the earlier version. This at least is happening on a Mac when Zorba 2.6 is installed from the package and someone attempts to build Zorba 2.7 from source.

The Zorba build should ensure that all the src/ and build/ directories are FIRST on the include path.

Revision history for this message
Chris Hillery (ceejatec) wrote :

If we set CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE to 1, this may be solved.

Changed in zorba:
importance: Undecided → High
assignee: nobody → Chris Hillery (ceejatec)
milestone: none → 3.0
tags: added: build-scripts
Revision history for this message
Chris Hillery (ceejatec) wrote :

I cannot (anymore?) reproduce this on Linux, but my initial notes say it was found on a mac. Paul, can you try this out and see if there are any problems? If not, close this bug as Invalid.

Changed in zorba:
assignee: Chris Hillery (ceejatec) → Paul J. Lucas (paul-lucas)
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Not sure how this was assigned to me since it's a build problem, i.e., a cmake problem, i.e., a problem for Chris.

Revision history for this message
Chris Hillery (ceejatec) wrote :

Did you read the comment I made when I assigned the bug to you, Paul?

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

OK, I tried this out. I installed Zorba 2.6 from the .pkg file; built the trunk from scratch, and it failed with a compile-time error. I removed the installed Zorba, built the trunk from scratch again, and it worked fine. So, no, it's not fixed.

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :
Changed in zorba:
assignee: Paul J. Lucas (paul-lucas) → Chris Hillery (ceejatec)
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

BTW: The failure was NOT in diagnostic_list.h, but rather include/zorba/util/base64_util.h. The problem isn't specific to a particular header, but rather it's the combination of old and new headers that causes problems. Which header in particular causes a problem is therefore virtually random.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.