GithubHelp home page GithubHelp logo

Comments (6)

vathpela avatar vathpela commented on May 27, 2024

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.

perfect7gentleman avatar perfect7gentleman commented on May 27, 2024

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.

vathpela avatar vathpela commented on May 27, 2024

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.

perfect7gentleman avatar perfect7gentleman commented on May 27, 2024
# 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.

perfect7gentleman avatar perfect7gentleman commented on May 27, 2024

or

make libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" V=1 -j1

from efivar.

floppym avatar floppym commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.