Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERL-1004: Erlang source code compilation has failed with an ERROR (rc.exe not found!) #3831

Closed
OTP-Maintainer opened this issue Jul 17, 2019 · 2 comments
Labels

Comments

@OTP-Maintainer
Copy link

Original reporter: badrirameshkumar
Affected version: OTP-21.3
Component: crypto
Migrated from: https://bugs.erlang.org/browse/ERL-1004


I am compiling the Erlang v21.3 Source code by following the instructions [1].

[1] http://erlang.org/documentation/doc-10.3/doc/installation_guide/INSTALL-WIN32.html

Howeever, *./otp_build boot -a* command gives the below error and compilation has failed. 

Error :
 *make[4]: Entering directory '/cygdrive/d/Erlang/otp-OTP-21.3/erts/emulator'
 GEN    win32/gen_git_version.mk
 CC     obj/win32/opt/smp/erl_main.o
 RC     obj/win32/opt/smp/beams.res
rc.exe not found!
make[4]: *** [win32/Makefile:705: obj/win32/opt/smp/beams.res] Error 1
make[4]: Leaving directory '/cygdrive/d/Erlang/otp-OTP-21.3/erts/emulator'
make[3]: *** [/cygdrive/d/Erlang/otp-OTP-21.3/make/run_make.mk:35: opt] Error 2
make[3]: Leaving directory '/cygdrive/d/Erlang/otp-OTP-21.3/erts/emulator'
make[2]: *** [Makefile:45: opt] Error 2
make[2]: Leaving directory '/cygdrive/d/Erlang/otp-OTP-21.3/erts'
make[1]: *** [Makefile:54: smp] Error 2
make[1]: Leaving directory '/cygdrive/d/Erlang/otp-OTP-21.3/erts'
make: *** [Makefile:481: emulator] Error 2* 

Please find the attached complete log file and snapshot for your reference.
Please help me to resolve this issue.

Thanks.



@OTP-Maintainer
Copy link
Author

rickard said:

{{rc.exe}} should be part of your build environment. You need to make it available in the path before building.

@OTP-Maintainer
Copy link
Author

badrirameshkumar said:

Thanks Rickard for the update

Above issue has been resolved , there was an issue with Visual studio directories.

After that compilation has failed again during this command *./otp_build release –a* with the below error.

*else                                                            \
 if test x = x`grep erts-10.3 "–a/releases/21/installed_application_versions"` ; then \
  echo erts-10.3 >> "–a/releases/21/installed_application_versions" || exit 1;  \
 fi ;                                                           \
fi
make[2]: Leaving directory '/cygdrive/c/Erlang/otp-OTP-21.3/erts'
make[1]: Leaving directory '/cygdrive/c/Erlang/otp-OTP-21.3/erts'
/usr/bin/install -c -m 644 "/cygdrive/c/Erlang/otp-OTP-21.3/OTP_VERSION" "–a/releases/21"
/usr/bin/install: cannot create regular file '–a/releases/21': No such file or directory
make: *** [Makefile:401: release] Error 1*

Can you please tell me what could be the reason for failure ?

Thank in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant