# Installing ioapi-3.2, unsupported architecture

**URL:** <https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706>\
**Category:** Compiling\
**Tags:** smoke, cmaq\
**Created:** [November 11, 2022, 4:48pm UTC](https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706 "2022-11-11T16:48:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 11, 2022, 4:48pm UTC](https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706/1 "2022-11-11T16:48:09Z")

</div>

Dear all,  
I was installing ioapi-3.2 following this tutorial ([Installing --disable-netcdf-4 --disable-dap NEVER works and instructions in CMAQ documentation regarding this seem misleading - #9 by CMAQ\_user](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/9)).

Then I encountered errors in the following step:

 ![1668185245446](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/4/400734283b80ab0dbb73939b469b3c2358eb9f11.png)  
Here is the error after I executed “_make_” in ioapi, would anyone help me with this?

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 11, 2022, 7:09pm UTC](https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706/2 "2022-11-11T19:09:14Z")

</div>

You might try following the actual I/O API Installation Page: see[https://www.cmascenter.org/ioapi/documentation/all\_versions/html/AVAIL.html#build](https://www.cmascenter.org/ioapi/documentation/all_versions/html/AVAIL.html#build) or [https://cjcoats.github.io/ioapi/AVAIL.html#build](https://cjcoats.github.io/ioapi/AVAIL.html#build)

---

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 13, 2022, 6:09am UTC](https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706/3 "2022-11-13T06:09:41Z")

</div>

Thanks! I installed netcdf-3.6.3 instead.

---

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 15, 2022, 3:14am UTC](https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706/4 "2022-11-15T03:14:31Z")

</div>

I followed the guidance, but still failed to install.

```auto
if [! -d /disk2/public/usr_local/ioapi-3.2/Linux2_x86_64ifort]; then mkdir -p /disk2/public/usr_local/ioapi-3.2/Linux2_x86_64ifort; fi
cd /disk2/public/usr_local/ioapi-3.2/Linux2_x86_64ifort; icc -c -DIOAPI_NCF4=1 -O3 -traceback -xHost -DVERSION='3.2-nocpl' /disk2/public/usr_local/ioapi-3.2/ioapi/bufint3.c
icc: remark #10441: The Intel(R) C++ Compiler Classic (ICC) is deprecated and will be removed from product release in the second half of 2023. The Intel(R) oneAPI DPC++/C++ Compiler (ICX) is the recommended compiler moving forward. Please transition to use this compiler. Use '-diag-disable=10441' to disable this message.
In file included from /disk2/public/usr_local/ioapi-3.2/ioapi/bufint3.c(87):
/disk2/public/usr_local/ioapi-3.2/ioapi/iodecl3.h(100): error: #error directive: "Error compiling: unsupported architecture"
  #error "Error compiling: unsupported architecture"
   ^

/disk2/public/usr_local/ioapi-3.2/ioapi/bufint3.c(155): error: #error directive: "Error compiling envgets.c: unsupported architecture"
  #error "Error compiling envgets.c: unsupported architecture"
   ^

compilation aborted for /disk2/public/usr_local/ioapi-3.2/ioapi/bufint3.c (code 2)
make[1]: *** [bufint3.o] Error 2
make[1]: Leaving directory `/disk2/public/usr_local/ioapi-3.2/ioapi'
make: *** [all] Error 2

```

I would appreciate it if you would take the time out of your busy schedule to check out my posts and give suggestions.

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 15, 2022, 1:20pm UTC](https://forum.cmascenter.org/t/installing-ioapi-3-2-unsupported-architecture/3706/5 "2022-11-15T13:20:00Z")

</div>

Basically, that compile-line was:

> `icc -c -DIOAPI_NCF4=1 -O3 -traceback -xHost -DVERSION='3.2-nocpl /disk2/public/usr_local/ioapi-3.2/ioapi/bufint3.c`

whereas instead it should have been something like:

> `icc -c -DAUTO_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR_L=int -DIOAPI_NO_STDOUT=1 -DAVOID_FLUSH=1 -DBIT32=1 -O3 -traceback -xHost -DVERSION='3.2-nocpl' /home/coats/ioapi-3.2/ioapi/bufint3.c`

which in the _Makefile_ came from

> `...cd ${OBJDIR}; $(CC) -c $(CFLAGS) ...`

where in the _Makefile_ above, we have the definitions

> `DEFINEFLAGS = $(ARCHFLAGS) $(PARFLAGS)`  
> …  
> `CFLAGS = $(DEFINEFLAGS) $(COPTFLAGS) $(VFLAG)`

which then uses the definitions from the `INCLUDE`d` Makeinclude.$BIN`:

> `MFLAGS = -traceback -xHost`  
> …  
> `COPTFLAGS = -O3 ${MFLAGS}`  
> …  
> ` ARCHFLAGS = \`  
> `-DAUTO_ARRAYS=1 \`  
> `-DF90=1 -DFLDMN=1 \`  
> `-DFSTR_L=int \`  
> `-DIOAPI_NO_STDOUT=1 \`  
> `-DAVOID_FLUSH=1 -DBIT32=1`  
> …

What happened to those `ARCHFLAGS` ??? **That** is the problem.
