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

Doesn't build on gcc 4.4.7 #25

Open
izobara opened this issue Jan 8, 2018 · 5 comments
Open

Doesn't build on gcc 4.4.7 #25

izobara opened this issue Jan 8, 2018 · 5 comments

Comments

@izobara
Copy link

izobara commented Jan 8, 2018

cc   meltdown.o   -o meltdown
meltdown.o: In function `check':
meltdown.c:(.text+0x803): undefined reference to `__rdtscp'
meltdown.c:(.text+0x81f): undefined reference to `__rdtscp'
meltdown.o: In function `main':
meltdown.c:(.text+0x9da): undefined reference to `__rdtscp'
meltdown.c:(.text+0x9f2): undefined reference to `__rdtscp'
meltdown.c:(.text+0xa1a): undefined reference to `__rdtscp'
meltdown.o:meltdown.c:(.text+0xa35): more undefined references to `__rdtscp' follow
collect2: ld returned 1 exit status
make: *** [meltdown] Error 1

g++ --version
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.```
  
@ykanello
Copy link

ykanello commented Jan 8, 2018

Same here:
cc -O2 -msse2 -c -o meltdown.o meltdown.c
cc meltdown.o -o meltdown
meltdown.o: In function check': meltdown.c:(.text+0x803): undefined reference to __rdtscp'
meltdown.c:(.text+0x81f): undefined reference to __rdtscp' meltdown.o: In function main':
meltdown.c:(.text+0x9da): undefined reference to __rdtscp' meltdown.c:(.text+0x9f2): undefined reference to __rdtscp'
meltdown.c:(.text+0xa1a): undefined reference to __rdtscp' meltdown.o:meltdown.c:(.text+0xa35): more undefined references to __rdtscp' follow
collect2: ld returned 1 exit status
make: *** [meltdown] Error 1

g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)

@pm-cz
Copy link

pm-cz commented Jan 8, 2018

I wonder, did you try the build without RDTSCP? Does it fail as well?

make CFLAGS=-DHAVE_RDTSCP=0 clean all

@miliauskaite
Copy link

Yes it still fails

@gillarda
Copy link

Was not working either.
I ended up installing a newer version of gcc via devtoolset.

@paboldin
Copy link
Owner

Sorry guys, I'm traveling and don't have access to the lab, so can't test & patch.

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

7 participants
@paboldin @miliauskaite @ykanello @pm-cz @gillarda @izobara and others