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

Error in building from source #6438

Closed
acnologia000 opened this issue Nov 6, 2022 · 8 comments
Closed

Error in building from source #6438

acnologia000 opened this issue Nov 6, 2022 · 8 comments
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@acnologia000
Copy link

Describe the bug
when i am trying to building erlang from source on my machine, build process throws error

To Reproduce
follow build from source instructions (./configure && make && make install ), fails at make
Expected behavior
successful build ready to be used
but following build error comes up :

 CC	obj/x86_64-pc-linux-gnu/opt/emu/erl_atom_table.o
 CC	obj/x86_64-pc-linux-gnu/opt/emu/erl_bif_table.o
 CC	obj/x86_64-pc-linux-gnu/opt/emu/erl_bif_ddll.o
 CC	obj/x86_64-pc-linux-gnu/opt/emu/erl_bif_guard.o
make[4]: *** No rule to make target 'x86_64-pc-linux-gnu/opt/emu/erl_compile_flags.h', needed by 'obj/x86_64-pc-linux-gnu/opt/emu/erl_bif_info.o'.  Stop.
make[4]: Leaving directory '/home/hridyanshthakur/langs/otp_src_25.1.2/erts/emulator'
make[3]: *** [/home/hridyanshthakur/langs/otp_src_25.1.2/make/run_make.mk:35: opt] Error 2
make[3]: Leaving directory '/home/hridyanshthakur/langs/otp_src_25.1.2/erts/emulator'
make[2]: *** [Makefile:45: opt] Error 2
make[2]: Leaving directory '/home/hridyanshthakur/langs/otp_src_25.1.2/erts'
make[1]: *** [Makefile:60: emu] Error 2
make[1]: Leaving directory '/home/hridyanshthakur/langs/otp_src_25.1.2/erts'
make: *** [Makefile:503: emulator] Error 2
[hridyanshthakur@fedora otp_src_25.1.2]$ 

Affected versions
The OTP versions that are affected by this bug: Erlang/OTP 25.1.2

Additional context
i am not sure if i am missing some build instructions but i have been having this issue for sometime now ( i used to get successful builds before )

@acnologia000 acnologia000 added the bug Issue is reported as a bug label Nov 6, 2022
@mikpe
Copy link
Contributor

mikpe commented Nov 6, 2022

That file is generated by a perl script, so please verify that you have perl and that the ./configure and make steps don't have any complaints about perl.

@acnologia000
Copy link
Author

i do have perl installed and following is the grep output of the ./configure

[hridyanshthakur@fedora otp_src_25.1.2]$ cat out.txt | grep perl*
checking for perl5... no
checking for perl... /usr/bin/perl
checking if we should add -fno-tree-copyrename to CFLAGS for computed gotos to work properly... no
checking if sbrk()/brk() wrappers can track malloc()s core memory use... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for perl... perl
checking for perl... perl

@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Nov 7, 2022
@bjorng bjorng changed the title Error in building from souce Error in building from source Dec 6, 2022
@bjorng
Copy link
Contributor

bjorng commented Dec 6, 2022

Do you see any errors from the script make_compiler_flags?

What are your versions of perl and make?

@acnologia000
Copy link
Author

 hridyansh  ~  make -v
GNU Make 4.3
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 hridyansh  ~  perl -v

This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-linux-thread-multi

Copyright 1987-2022, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.

i am not sure what do you mean by make_compiler_flags

@bjorng
Copy link
Contributor

bjorng commented Dec 6, 2022

Thanks! Those versions should be fine.

I mean the script erts/emulator/utils/make_compiler_flags. It is the script that is supposed to generate the file x86_64-pc-linux-gnu/opt/emu/erl_compile_flags.h that seems to be missing.

You wrote that you have built OTP before. Was that the same release of OTP as you are trying to build now? Have you done any upgrades to your computer system recently? New Linux version?

@bjorng
Copy link
Contributor

bjorng commented Dec 6, 2022

Are you building in a clean source tree that you have not built in earlier?

Are you building in a git repository or in a source directory extracted from a tar file?

Have you tried rebuilding in a clean directory? (In a git repository, do git clean -dXfq and rebuild; if you used a tar file, re-download it, extract the files, and build.)

@acnologia000
Copy link
Author

Are you building in a clean source tree that you have not built in earlier?

Are you building in a git repository or in a source directory extracted from a tar file?

Have you tried rebuilding in a clean directory? (In a git repository, do git clean -dXfq and rebuild; if you used a tar file, re-download it, extract the files, and build.)

I'm building from tar, let me try rebuild I'll share complete output

@acnologia000
Copy link
Author

@bjorng i tried build otp 25.1.2, build was successful this time

@bjorng bjorng closed this as completed Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

4 participants