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

Ubuntu22.04 make err #274

Closed
jason-gideon opened this issue Jul 4, 2024 · 5 comments
Closed

Ubuntu22.04 make err #274

jason-gideon opened this issue Jul 4, 2024 · 5 comments

Comments

@jason-gideon
Copy link

jason-gideon commented Jul 4, 2024

cc -pipe -O2 -fdata-sections -ffunction-sections -fstack-protector -fno-strict-aliasing -fPIC                   -MD -MF libelf_convert.d -MT libelf_convert.o -I. -I/tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf -I/tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf/../common -D_FORTIFY_SOURCE=2           -c -fpic -DPIC libelf_convert.c -o libelf_convert.pico.o
--- libelf_fsize.pico ---
ld -x -r libelf_fsize.pico.o -o libelf_fsize.pico
--- libelf_msize.pico ---
ld -x -r libelf_msize.pico.o -o libelf_msize.pico
--- libelf_convert.pico ---
ld -x -r libelf_convert.pico.o -o libelf_convert.pico
--- libelf.a ---
--- libelf_pic.a ---
--- libelf.a ---
building standard elf library
--- libelf_pic.a ---
building shared object elf library
--- libelf_p.a ---
building profiled elf library
--- libelf.a ---
ranlib libelf.a
--- libelf_pic.a ---
ranlib libelf_pic.a
--- libelf.so.1 ---
building shared elf library (version 1)
cc -pipe -o libelf.so.1 -shared -Wl,"-soname libelf.so.1" -Wl,--whole-archive libelf_pic.a -Wl,--no-whole-archive
--- libelf_p.a ---
ranlib libelf_p.a
--- libelf.so.1 ---
/usr/bin/ld: Error: unable to disambiguate: -soname libelf.so.1 (did you mean --soname libelf.so.1 ?)
collect2: error: ld returned 1 exit status
*** [libelf.so.1] Error code 1

bmake[2]: stopped in /tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf
1 error

bmake[2]: stopped in /tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/libelf
make[1]: *** [/tmp/libiluvatar-container/mk/elftoolchain.mk:45: /tmp/libiluvatar-container/deps/src/elftoolchain-0.7.1/.build_stamp] Error 2
make[1]: Leaving directory '/tmp/libiluvatar-container'
make: *** [Makefile:264: deps] Error 2

@Tumb1eweed
Copy link

I enter the same problem...

@andresriancho
Copy link

Maybe this thread in the archlinux mailing list helps?

@andresriancho
Copy link

Installing bmake from source will fix this.

@todaygood
Copy link

issue still appeared after I installed bmake from source , wierd.

@jason-gideon
Copy link
Author

solved by edit: Makefile
https://bugs.archlinux.org/task/69619

ifeq ($(WITH_LIBELF), no)
	# bmake ld error: stop ld when -soname hit space
	sed -i 's/-soname lib/-soname=lib/g' /usr/share/mk/bsd.lib.mk
	$(MAKE) -f $(MAKE_DIR)/elftoolchain.mk DESTDIR=$(DEPS_DIR) install
endif

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

No branches or pull requests

4 participants