-
Notifications
You must be signed in to change notification settings - Fork 538
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
flex 2.6.3 breaks compiling binutils. #154
Comments
What about 2.6.2? |
2.6.2 lets binutils compile correctly. |
@Hussamt Could you state which version of binutils you're trying to build? I am not able to repeat this issue with binutils-2.25.1, binutils-2.26, or binutils-2.27. I also have not seen it in Gentoo's tracker for this issue (https://bugs.gentoo.org/show_bug.cgi?id=598186) |
Hi nvinson. I compile binutils from 2.27 branch. |
Thanks. I was able to reproduce it now. In syslex.l I see
Which will prevent yywrap from being defined in flex-2.6.3. The source file syslex.c is not regenerated when building from the binutils-2.27 release tarball, which is why I didn't see it in my attempts to reproduce. |
Building Babeltrace 1.5.x fails with a similar error: |
Looks like the same issue as #162; please confirm that you see this fixed for you on master now. |
I can compile binutils again using flex from git master branch. Thank you |
Just wondering if there is an ETA available for a Arch Linux (maybe others?) is distributing |
@jgalar If use Arch linux use flex-git from aur https://aur.archlinux.org/packages/flex-git/ |
I get the following error:
make[2]: Entering directory '/home/hussam/cache/binutils/src/binutils-build/binutils'
gcc -march=x86-64 -mtune=native -O2 -pipe -fstack-protector-strong -Wl,-O1,--sort-common,--as-needed,-z,relro -o sysinfo sysinfo.o syslex_wrap.o
syslex_wrap.o: In function
yylex': syslex_wrap.c:(.text+0xc63): undefined reference to
yywrap'collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1370: sysinfo] Error 1
make[2]: Leaving directory '/home/hussam/cache/binutils/src/binutils-build/binutils'
make[1]: *** [Makefile:3612: all-binutils] Error 2
make[1]: Leaving directory '/home/hussam/cache/binutils/src/binutils-build'
Reverting to 2.6.1 fixes it.
The text was updated successfully, but these errors were encountered: