# 6.26.04 build error in Debian Bullseye

**URL:** <https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412>\
**Category:** Newbie\
**Created:** [June 15, 2022, 8:47am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412 "2022-06-15T08:47:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![steffen.aei](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/steffen.aei/32/39189_2.png) [@steffen.aei](https://root-forum.cern.ch/u/steffen.aei)\
**Post date:** [June 15, 2022, 8:47am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/1 "2022-06-15T08:47:42Z")

</div>

Attempting to build ROOT 6.26.04 in a Debian Bullseye pbuilder (sandbox build environment), with only the required packages installed as build dependencies, and cmake run with a minimal set of options (`-Dgnuninstall=ON -Dclad=OFF`) and parallelism `-j 8`, I’m getting

```auto
[81%] Generating G__NetxNG.cxx, ../../lib/NetxNG.pcm                                                                                                                                                                                                                                     
[81%] Generating G__RootAuth.cxx, ../../lib/RootAuth.pcm                                                                                                                                                                                                                                 
[81%] Generating G__SQLIO.cxx, ../../lib/SQLIO.pcm                                                                                                                                                                                                                                       
[81%] Generating G__MultiProc.cxx, ../../lib/MultiProc.pcm                                                                                                                                                                                                                               
/bin/sh: 1: cannot create -I/build/root-cds-6.26.4+sg/net/netxng/inc: Directory nonexistent                                                                                                                                                                                               
make[4]: *** [net/netxng/CMakeFiles/G __NetxNG.dir/build.make:95: net/netxng/G__ NetxNG.cxx] Error 2                                                                                                                                                                                        
make[4]: Leaving directory '/build/root-cds-6.26.4+sg/.build/.python3'                                                                                                                                                                                                                    
make[3]: *** [CMakeFiles/Makefile2:30329: net/netxng/CMakeFiles/G__NetxNG.dir/all] Error 2                                                                                                                                                                                                
make[3]: *** Waiting for unfinished jobs....                                                                                                                                                                                                                                              

```

The directory `/build/root-cds-6.26.4+sg/net/netxng/inc` exists; the `-I` puzzles me though.  
Any suggestions where to look next? Thanks!

_ROOT Version:_ 6.26.04  
_Platform:_ Debian Bullseye amd64  
_Compiler:_ gcc version 10.2.1 20210110 (Debian 10.2.1-6)

* * *

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 15, 2022, 9:05am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/2 "2022-06-15T09:05:14Z")

</div>

Hi @steffen.aei ,

and welcome to the ROOT forum! Shot in the dark, can you try building in a directory the path of which does not contain a `+`?

If that does not help, can you try building with `make VERBOSE=1` or equivalent and post the full compilation log? (`VERBOSE=1` tells `make` to display all commands it runs).

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![steffen.aei](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/steffen.aei/32/39189_2.png) [@steffen.aei](https://root-forum.cern.ch/u/steffen.aei)\
**Post date:** [June 15, 2022, 9:59am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/3 "2022-06-15T09:59:20Z")

</div>

I started with (1) (replace the `+` in the version with a `.`) which miraculously succeeded - although my last attempt (on version 6.20.04) worked despite a `+` in the tree.  
There was no need for (2) (`make VERBOSE=1`).

IMHO `+` somewhere in the path shouldn’t be a special character affecting the build (and apparently only in the NetxGN part? - what’s so special about that one that I could get to 81%?).

Thanks so far - I’ll have to revisit the versioning scheme that was the cause for the `+` sign in the tree…

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 15, 2022, 1:49pm UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/4 "2022-06-15T13:49:55Z")

</div>

Hi @steffen.aei ,

I agree that a `+` in the path should not be a problem. Unfortunately we have seen before that some parts of the build system, sometimes while building ROOT dependencies, special characters like that confuse some part of the logic (e.g. because they are picked up as parts of a regex). Feel free to open a GitHub issue about this.

[Here](https://github.com/root-project/root/issues/7786) is a similar problem with paths that contain `@` 🙃

CC: @bellenot

---

<div class="post-metadata">

**Author:** ![steffen.aei](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/steffen.aei/32/39189_2.png) [@steffen.aei](https://root-forum.cern.ch/u/steffen.aei)\
**Post date:** [June 16, 2022, 10:03am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/5 "2022-06-16T10:03:17Z")

</div>

I’m afraid this time the underlying issue is completely different (no explicit `sed` invocations anymore).  
Here `cmake` features seem to be the culprit.  
Not being a `cmake` guy, I cannot see what would be wrong with `target_include_directories(G__NetxNG SYSTEM PRIVATE ${XROOTD_INCLUDE_DIRS})`, while `target_include_directories(NetxNG SYSTEM PRIVATE ${XROOTD_INCLUDE_DIRS})` seems to be benign (or just had no chance to hit?).

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 16, 2022, 10:49am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/6 "2022-06-16T10:49:32Z")

</div>

Hi,

Yes I did not mean to say that this is the same issue, just that unfortunately such issues sometimes pop up.

I’ll leave it to our build system expert @bellenot to comment on possible fixes on the ROOT side.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [June 17, 2022, 6:57am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/7 "2022-06-17T06:57:03Z")

</div>

I’m not an expert, but I’ll investigate nevertheless

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 5, 2022, 3:07pm UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/8 "2022-07-05T15:07:31Z")

</div>

FYI, a pull request addressing this issue has just been created: [Fix generation of G\_\_NetxNG.cxx in paths with special characters by bellenot · Pull Request #10900 · root-project/root · GitHub](https://github.com/root-project/root/pull/10900#issuecomment-1175166008)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 6, 2022, 10:49am UTC](https://root-forum.cern.ch/t/6-26-04-build-error-in-debian-bullseye/50412/9 "2022-07-06T10:49:52Z")

</div>

This is now fixed in the master and v6-26-00-patches branches
