Forum Discussion
sopc-create-header-files is a bash script so needs to be run on linux or WSL.
There looks to be something wrong with your WSL environment because it is missing many basic linux commands such as `rm` `uname` `tr`. You should be able to execute these in your WSL shell
Once you have fixed your WSL setup, you need to add `quartus/sopc_builder/bin` to your path (inside WSL), because it relies on sopcinfo2swinfo being on your path, and then it should work
PATH=$PATH:$QUARTUS_ROOTDIR/sopc_builder/binedit: I tested this on a Linux installation that I remoted into via WSL, not a windows installation, so this might not be accurate for windows
- DLiu55 days ago
New Contributor
Dear Sir,
Thanks for the reply.
How can I fix this first?
terasic@DESKTOP-G0MQNOG:/mnt/c/altera_pro/25.1.1/quartus/sopc_builder/bin$ sopc-create-header-files /mnt/c/my_de25_nano_workplace/my_first_qsys_system/qsys_top/qsys_top.sopcinfo --output-dir pd_headers
Failed writing output file to /tmp/sopc-create-header-files.38.tmp.swinfo sopc-
create-header-files: sopcinfo2swinfo.exe --input=c:/my_de25_nano_workplace/my_first_qsys_system/qsys_top/qsys_top.sopcinfo --output=/tmp/sopc-create-header-files.38.tmp.swinfo failed
Did you really test the sopc-create-header-files in the Windows WSL? As I usually meet different errors or failure.
Thanks,
Doreen
- PixelPusher4 days ago
New Contributor
Apologies, I wasn't actually testing it using a windows installed Quartus version. I was using a Linux Quartus 25.3.1 installation which I was remoting into from windows using SSH, so my advice may not be accurate for the windows version. I don't have a windows installation to test this on (I am a community member not support)
Someone else ran into a similar issue here with the failing to write to that tmp file, maybe take a look on that thread? Looks like it could be related to file permissions issues to that tmp folder
- DLiu54 days ago
New Contributor
Thanks for your reply! I did read the link:sopc-create-header-files: Failed writing output file to /tmp/sopc-create-header-files.206.tmp.swinfo | Altera Community - 275326 , and I tried, but it still report the same failed result:
Failed writing output file to /sopc-create-header-files.38.tmp.swinfo sopc-
create-header-files: sopcinfo2swinfo.exe --input=c:/my_de25_nano_workplace/my_first_qsys_system/qsys_top/qsys_top.sopcinfo --output=/sopc-create-header-files.38.tmp.swinfo failed