Comments (6)
What's the series of make commands that cause this to happen? I can't make it happen with the current makefiles, only with the pre-july ones.
from efivar.
i tried to build with -j1. This error didn't appear, but
gcc -O2 -g -Werror -Wall -Wsign-compare -Wstrict-aliasing -std=gnu11 -fshort-wchar -fPIC -flto -fvisibility=hidden -D_GNU_SOURCE -I/home//Downloads/efivar/src/include/efivar/ -Wmaybe-uninitialized -fno-merge-constants -Wl,--fatal-warnings,--no-allow-shlib-undefined,--default-symver -Wl,-O2 -Wl,--no-undefined-version -L. -o efivar efivar.c -lefivar -ldl -lpopt
/tmp/ccWDp7qS.ltrans0.ltrans.o: In function `main':
/home//Downloads/efivar/src/efivar.c:335: undefined reference to `efi_well_known_guids_end'
/home//Downloads/efivar/src/efivar.c:335: undefined reference to `efi_well_known_guids'
collect2: error: ld returned 1 exit status
/home//Downloads/efivar/Make.rules:13: recipe for target 'efivar' failed
make[1]: *** [efivar] Error 1
rm include/efivar/efivar-guids.h guid-symbols.S
make[1]: Leaving directory '/home//Downloads/efivar/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2
x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2 -pipe -fno-stack-protector -Werror -Wall -Wsign-compare -Wstrict-aliasing -std=gnu11 -fshort-wchar -fPIC -flto -fvisibility=hidden -D_GNU_SOURCE -I/tmp/portage/sys-libs/efivar-9999/work/efivar-9999/src/include/efivar/ -Wl,-O1 -Wl,--as-needed -L. -o efivar efivar.c -lefivar -ldl -lpopt
/tmp/portage/sys-libs/efivar-9999/temp/ccxvgVdg.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x353): undefined reference to `efi_well_known_guids_end'
<artificial>:(.text.startup+0x35a): undefined reference to `efi_well_known_guids'
collect2: error: ld returned 1 exit status
/tmp/portage/sys-libs/efivar-9999/work/efivar-9999/Make.rules:13: recipe for target 'efivar' failed
make[1]: *** [efivar] Error 1
rm include/efivar/efivar-guids.h guid-symbols.S
make[1]: Leaving directory '/tmp/portage/sys-libs/efivar-9999/work/efivar-9999/src'
Makefile:10: recipe for target 'all' failed
make: *** [all] Error 2
* ERROR: sys-libs/efivar-9999::pg_007 failed (compile phase)
from efivar.
This implies that the version of libefivar.so you're linking against is not the one built from this tree, or the code checked out for guid.o wasn't right when it was linked. I have no idea what could cause that. Can you show the full history of make commands you've run since the last "make clean"?
from efivar.
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/efivar/efivar-0.20.ebuild,v 1.1 2015/06/29 01:18:43 floppym Exp $
EAPI=5
inherit git-r3 multilib toolchain-funcs
DESCRIPTION="Tools and library to manipulate EFI variables"
HOMEPAGE="https://github.com/rhinstaller/efivar"
EGIT_REPO_URI="https://github.com/rhinstaller/efivar.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86"
RDEPEND="dev-libs/popt"
DEPEND="${RDEPEND}"
src_configure() {
tc-export CC
export MAKEOPTS=-j1
export libdir="/usr/$(get_libdir)"
unset LIBS # Bug 562004
}
from efivar.
or
make libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" V=1 -j1
from efivar.
I'm hitting this parallel make issue with current master.
make -j6
make[1]: Entering directory '/home/floppym/src/efivar/src'
gcc -O2 -g -I/home/floppym/src/efivar/src/include/efivar/ -specs=/home/floppym/src/efivar/gcc.specs -DEFIVAR_BUILD_ENVIRONMENT -o makeguids makeguids.c guid.c -ldl
gcc -O2 -g -I/home/floppym/src/efivar/src/include/efivar/ -specs=/home/floppym/src/efivar/gcc.specs -fPIE -c -o dp.static.o dp.c
gcc -O2 -g -I/home/floppym/src/efivar/src/include/efivar/ -specs=/home/floppym/src/efivar/gcc.specs -fPIE -c -o dp-acpi.static.o dp-acpi.c
gcc -O2 -g -I/home/floppym/src/efivar/src/include/efivar/ -specs=/home/floppym/src/efivar/gcc.specs -fPIE -c -o dp-hw.static.o dp-hw.c
gcc -O2 -g -I/home/floppym/src/efivar/src/include/efivar/ -specs=/home/floppym/src/efivar/gcc.specs -fPIE -c -o dp-media.static.o dp-media.c
gcc -O2 -g -I/home/floppym/src/efivar/src/include/efivar/ -specs=/home/floppym/src/efivar/gcc.specs -fPIE -c -o dp-message.static.o dp-message.c
In file included from dp-acpi.c:23:0:
/home/floppym/src/efivar/src/include/efivar/efivar.h:39:26: fatal error: efivar-guids.h: No such file or directory
compilation terminated.
from efivar.
Related Issues (20)
- Clarify SPDX License Identifier
- efivar-38: ld.lld: error: unable to insert .data after .data HOT 1
- makeguids Your linker is not supported guids.txt guid-symbols.c include/efivar/efivar-guids.h guids.lds HOT 1
- ld.lld: error: undefined symbol: efi_error_set
- Cant compile with musl HOT 2
- OsIndications variable disappeared after writing to it
- Build fails on musl HOT 2
- <linux/fs.h> conflicts with <sys/mount.h>
- 38: trying use groff use instead mandoc HOT 3
- -march=native results in non-reproducible binaries HOT 1
- cross compile linking issues. HOT 1
- Invalid libefivar.so generated when building with clang-15. HOT 1
- Cross compile build fails with uClibc
- Updating libefivar & efibootmgr for Android-x86 or BlissOS
- How to build efivar? HOT 1
- Rename docs/efisecdb.1.mdoc to docs/efisecdb.1
- empty value of printing variable from --import
- 38 + 90e88b22: test suite is failing
- efivar 39 with efibootmgr 0ca99d4 fails to compile HOT 1
- features are not really documented properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efivar.