# Unable to build O2Physics - fortran problem

**URL:** <https://alice-talk.web.cern.ch/t/unable-to-build-o2physics-fortran-problem/1617>\
**Category:** O²\
**Tags:** build\
**Created:** [September 26, 2024, 2:43pm UTC](https://alice-talk.web.cern.ch/t/unable-to-build-o2physics-fortran-problem/1617 "2024-09-26T14:43:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![clotteau](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/c/eb9ed0/32.png) [@clotteau](https://alice-talk.web.cern.ch/u/clotteau)\
**Post date:** [September 26, 2024, 2:43pm UTC](https://alice-talk.web.cern.ch/t/unable-to-build-o2physics-fortran-problem/1617/1 "2024-09-26T14:43:25Z")

</div>

Hello, I’m on a MacOS Sonoma 14.7 and I’m not able to build O2Physics. I tried running the command `aliBuild build O2Physics` but I get the following error in the terminal

```auto
ERROR:O2Physics:pythia6:0: Error while executing /Users/myname/alice/sw/SPECS/osx_x86-64/pythia6/428-alice2-local3/build.sh on `XXXXcensoredXXXX'.
ERROR:O2Physics:pythia6:0: Log can be found in /Users/myname/alice/sw/BUILD/pythia6-latest/log
ERROR:O2Physics:pythia6:0: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR:O2Physics:pythia6:0: Build directory is /Users/myname/alice/sw/BUILD/pythia6-latest/pythia6.

```

In the log file I have:

```auto
The Fortran compiler
"/usr/local/bin/gfortran"
is not able to compile a simple test program.

```

I checked my gfortran version with: `gfortran --version`

```auto
GNU Fortran (Homebrew GCC 14.2.0) 14.2.0

```

I also checked my gcc version with: `gcc --version`

```auto
Apple clang version 16.0.0 (clang-1600.0.26.3)

```

and `gcc -dumpversion`

```auto
16.0.0

```

Please help

---

<div class="post-metadata">

**Author:** ![sherrman](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@sherrman](https://alice-talk.web.cern.ch/u/sherrman)\
**Post date:** [September 27, 2024, 6:30am UTC](https://alice-talk.web.cern.ch/t/unable-to-build-o2physics-fortran-problem/1617/2 "2024-09-27T06:30:50Z")

</div>

[log.log](https://alice-talk.web.cern.ch/uploads/short-url/u0JFgxM3F62zqGo5OkrjPstgwjM.log) (4.1 KB)  
The log is attached here, the main error is

```auto
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/lib/libSystem.tbd' for architecture x86_64

```

---

<div class="post-metadata">

**Author:** ![clotteau](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/c/eb9ed0/32.png) [@clotteau](https://alice-talk.web.cern.ch/u/clotteau)\
**Post date:** [September 27, 2024, 10:28am UTC](https://alice-talk.web.cern.ch/t/unable-to-build-o2physics-fortran-problem/1617/3 "2024-09-27T10:28:29Z")

</div>

Solved !

I had to uninstall conda
