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

Nix build is failing #2

Open
JuanCabre opened this issue Nov 18, 2022 · 1 comment
Open

Nix build is failing #2

JuanCabre opened this issue Nov 18, 2022 · 1 comment

Comments

@JuanCabre
Copy link

We are a group of researchers from the Communication Networks group at TU Dresden in Germany, and we are very interested in your code. Unfortunately, we are currently unable to build the environment using Nix. The problem seems to arise when compiling NUPACK. At some point in the installation, there is this error:

mkdir -p ../../../bin
gcc -DNUPACK_SAMPLE  -std=c99 -O3 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../.>
  read_command_line.o -o ../../../bin/design -lm \
  ../../../lib/libdesign_pfunc_utils.a ../../../lib/libpfunc.a ../../../lib/libmt19937.a ../.>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_utils.o:(.bss+0x820)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_utils.o:(.bss+0x1e0)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_utils.o:(.bss+0x40):>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_utils.o:(.bss+0x10):>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_utils.o:(.bss+0xc): >
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_utils.o:(.bss+0x8): >
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x24)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x2c)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x94)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x90)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x80)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x20)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x28)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x34)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x30)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x98)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0xa8)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x280>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x8c0>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0xa4)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x8):>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x10)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x18)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x38)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x40)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x50)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x60)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x70)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0x9c)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0xa0)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0xb0)>
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: design_engine.o:(.bss+0xe0)>
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:52: design] Error 1
make[2]: Leaving directory '/build/nupack3.0.6/src/design/single-complex'
make[1]: *** [Makefile:67: design/single-complex] Error 2
make[1]: Leaving directory '/build/nupack3.0.6/src'
make: *** [Makefile:10: all] Error 2
@cgevans
Copy link
Member

cgevans commented Jun 30, 2023

This is most likely because recent versions of gcc require -fcommon for that version of nupack to compile.

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

2 participants